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

Error with running SPAdes: == Error == exception caught: <class 'AttributeError'> #345

Open
3 tasks
oddguyeee opened this issue Aug 24, 2024 · 9 comments
Open
3 tasks

Comments

@oddguyeee
Copy link

First check

  • I used the GitHub search to find a similar issue or discussion and didn't find it.
  • I searched GetOrganelle.wiki context, especially the FAQ and browsed the examples to confirm it is unexpected to happen.
  • I have updated GetOrganelle to the latest released version GitHub release

Please ask questions in the Question in GitHub Discussions unless it is a feature request or bug report.

Hi,

I am trying use HiFi reads to assembly plastid genome, and encountered the error:

# get_org.log.txt
...
2024-08-22 18:28:54,304 - INFO: Setting '-k 21,45,65,85,105'
2024-08-22 18:28:54,304 - INFO: Assembling using SPAdes ...
2024-08-22 18:28:54,354 - INFO: spades.py -t 20  --phred-offset 33 --s1 PF_CP_D01/extended_1.fq -k 21,45,65,85,105 -o PF_CP_D01/extended_spades
2024-08-23 20:24:53,099 - ERROR: Error with running SPAdes: == Error ==  exception caught: <class 'AttributeError'>
2024-08-23 20:24:53,205 - ERROR: Assembling failed.

# spades.log
...
===== Assembling started.

'dict' object has no attribute 'add'
Traceback (most recent call last):
  File "/nfs_fs/nfs3/jiezhang/miniconda3/envs/getorganelle/bin/spades.py", line 881, in main
    used_K = spades_logic.run_spades(tmp_configs_dir, bin_home, spades_cfg, dataset_data, ext_python_modules_home, log)
  File "/nfs_fs/nfs3/jiezhang/miniconda3/envs/getorganelle/share/spades-3.13.1-0/share/spades/spades_pipeline/spades_logic.py", line 307, in run_spades
    run_iteration(configs_dir, execution_home, cfg, log, K, None, False)
  File "/nfs_fs/nfs3/jiezhang/miniconda3/envs/getorganelle/share/spades-3.13.1-0/share/spades/spades_pipeline/spades_logic.py", line 184, in run_iteration
    dir_util.copy_tree(os.path.join(configs_dir, "debruijn"), dst_configs, preserve_times=False)
  File "/nfs_fs/nfs3/jiezhang/miniconda3/envs/getorganelle/lib/python3.8/site-packages/setuptools/_distutils/dir_util.py", line 146, in copy_tree
    mkpath(dst, verbose=verbose)
  File "/nfs_fs/nfs3/jiezhang/miniconda3/envs/getorganelle/lib/python3.8/site-packages/setuptools/_distutils/dir_util.py", line 82, in mkpath
    _path_created.add(abs_head)
AttributeError: 'dict' object has no attribute 'add'


== Error ==  exception caught: <class 'AttributeError'>

In case you have troubles running SPAdes, you can write to [email protected]
or report an issue on our GitHub repository github.com/ablab/spades
Please provide us with params.txt and spades.log files from the output directory.

I am not sure that this error was caused by data or environment incompatible, and I add the main logs and the cmd below, thank you very much!

get_organelle_from_reads.py -u ../PF_HiFi_fa/PF_hifi_read_D01.fastq.gz -t 20 -o PF_CP_D01 -R 15 -k 21,45,65,85,105 -F embplant_pt

get_org.log.txt
params.txt
spades.log

@HannahRH98
Copy link

I have had the same error so any help would be appreciated!

@booknary
Copy link

booknary commented Sep 3, 2024

same as yours! idk what happened to it

@oddguyeee
Copy link
Author

@HannahRH98 @booknary:

The problem is still existing, I guess it is related with data type. Because It is well work when I run same cmd with NGS data, but not well done with HiFi reads.

If you find the solution would be appreciated!

@HannahRH98
Copy link

I am using NGS data too and it's not working. It seems to be SPAdes error.

@oddguyeee
Copy link
Author

@HannahRH98 ,

Maybe you can try re-install the getorganelle and it's dependency.

@HannahRH98
Copy link

Already tried that. Unfortunately, it didn't work.

@yoyootato
Copy link

I also have the same problem!

@HannahRH98
Copy link

Hopefully, it can get sorted soon!

@SadiaKamalMysha
Copy link

Same thing happened to me! I tried assembling the genome of L. wurdemanni the following error keeps showing...

Checking seed reads and parameters ...
The automatically-estimated parameter(s) do not ensure the best choice(s).
If the result graph is not a circular organelle genome,
you could adjust the value(s) of '-w'/'-R' for another new run.
Pre-assembling mapped reads ...
Retrying with more reads ..
ERROR: Error with running SPAdes: == Error == exception caught: <class 'AttributeError'>
2024-09-19 22:02:08,322 - WARNING: Pre-assembling failed. The estimations for animal_mt-hitting base-coverage and word size may be misleading.
Estimated animal_mt-hitting base-coverage = 69.25
Estimated word size(s): 141
Setting '-w 141'
Setting '--max-extending-len inf'
Checking seed reads and parameters finished.
...............
Separating extended fastq file ...
Setting '-k 21,55,85,115'
Assembling using SPAdes ...
spades.py -t 11 --phred-offset 33 -1 Lysmata.mitogenome4/extended_1_paired.fq -2 Lysmata.mitogenome4/extended_2_paired.fq --s1 Lysmata.mitogenome4/extended_1_unpaired.fq --s2 Lysmata.mitogenome4/extended_2_unpaired.fq -k 21,55,85,115 -o Lysmata.mitogenome4/extended_spades
ERROR: Error with running SPAdes: == Error == exception caught: <class 'AttributeError'>
ERROR: Assembling failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants