Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Out of date spades may be causing errors with assemblies #109

Open
cahuparo opened this issue Nov 4, 2024 · 2 comments
Open

Out of date spades may be causing errors with assemblies #109

cahuparo opened this issue Nov 4, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@cahuparo
Copy link
Contributor

cahuparo commented Nov 4, 2024

Description of the bug

Traceback (most recent call last):
  File "/nfs7/BPP/Chang_Lab/paradarc/ps_pipeline_validation/scripts/pathogensurveillance/work/conda/spades-ca8fa9996df717ef1077978990e85dd1/bin/spades.py", l>
    import support
  File "/nfs7/BPP/Chang_Lab/paradarc/ps_pipeline_validation/scripts/pathogensurveillance/work/conda/spades-ca8fa9996df717ef1077978990e85dd1/share/spades/spad>
    from distutils.version import LooseVersion
ModuleNotFoundError: No module named 'distutils'

Spades keep throwing this error. I checked and the conda environment is out of date (bioconda::spades=3.15.5) when compared to the one in nf-core tools: (bioconda::spades=4.0.0)

Command used and terminal output

No response

Relevant files

No response

System information

No response

@cahuparo cahuparo added the bug Something isn't working label Nov 4, 2024
@cahuparo cahuparo changed the title Out of data spades may be causing errors with assemblies Out of date spades may be causing errors with assemblies Nov 5, 2024
@zachary-foster
Copy link
Contributor

Could it be a failed conda environemnt build? If it is consistent after remaking the env, can you try updating the conda env and seeing if that fixes the problem?

@cahuparo
Copy link
Contributor Author

cahuparo commented Nov 5, 2024

I updated spades conda to 4.0.0 in the yml file. It works for a while but I got a new error:

Caused by:
  Process `PATHOGENSURVEILLANCE:GENOME_ASSEMBLY:FILTER_ASSEMBLY (pinf_mx_P6634)` terminated with an error exit status (1)


Command executed:

  gzip -dc pinf_mx_P6634.scaffolds.fa.gz > pinf_mx_P6634_unzipped.fasta
  
  process_spades_assem.py \
      --verbose \
      --summary pinf_mx_P6634.summary \
      --cov_cutoff 1 --len_cutoff 100 \
      pinf_mx_P6634_unzipped.fasta > pinf_mx_P6634_filtered.fasta
  
  cat <<-END_VERSIONS > versions.yml
  "PATHOGENSURVEILLANCE:GENOME_ASSEMBLY:FILTER_ASSEMBLY":
      python: $(python --version | sed 's/Python //g')
  END_VERSIONS

Command exit status:
  1

Command output:
  (empty)

Command error:
  Traceback (most recent call last):
    File "/nfs7/BPP/Grunwald_Lab/home/paradarc/crispr_dx/pinf/scripts/pathogensurveillance/bin/process_spades_assem.py", line 3, in <module>
      from Bio import SeqIO
  ModuleNotFoundError: No module named 'Bio'

Work dir:
  /nfs7/BPP/Grunwald_Lab/home/paradarc/crispr_dx/pinf/scripts/pathogensurveillance/work/c7/fc91e79d9f5fad890c9c3ad80dbbb6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants