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

[BUG] Error while running a SARS-CoV-2 analysis #426

Closed
Addicted-to-coding opened this issue Jun 7, 2020 · 6 comments
Closed

[BUG] Error while running a SARS-CoV-2 analysis #426

Addicted-to-coding opened this issue Jun 7, 2020 · 6 comments
Labels
bug Something isn't working

Comments

@Addicted-to-coding
Copy link

Hi,
I'm trying to run a SARS-CoV-2 analysis for sequences only from Wuhan. I tried doing this by downloading the data from GISAID and then running the command
sed -n 40701,40909p metadata.tsv > COVID_Research/ncov/data/metadata.tsv
sed -n 81400,81816p sequences.fasta > COVID_Research/ncov/data/sequences.fasta
to extract only the sequences from Wuhan

When I run the command snakemake --profile profiles/default, I get the error

WARNING: only one state found for discrete state reconstruction: ['China']
Traceback (most recent call last):
File "/home/vs/anaconda3/envs/nextstrain/bin/augur", line 8, in
sys.exit(main())
File "/home/vs/anaconda3/envs/nextstrain/lib/python3.6/site-packages/augur/main.py", line 10, in main
return augur.run( argv[1:] )
File "/home/vs/anaconda3/envs/nextstrain/lib/python3.6/site-packages/augur/init.py", line 74, in run
return args.command.run(args)
File "/home/vs/anaconda3/envs/nextstrain/lib/python3.6/site-packages/augur/traits.py", line 175, in run
mugration_states[node.name][column+'_confidence'] = node.getattribute(column+'_confidence')
AttributeError: 'Clade' object has no attribute 'country_exposure_confidence'
[Sun Jun 7 17:35:21 2020]
Error in rule traits:
jobid: 14
output: results/global/traits.json
log: logs/traits_global.txt (check log file(s) for error message)
shell:

    augur traits             --tree results/global/tree.nwk             --metadata data/metadata.tsv             --output results/global/traits.json             --columns country_exposure             --confidence             --sampling-bias-correction 2.5 2>&1 | tee logs/traits_global.txt
    
    (one of the commands exited with non-zero exit code; note that snakemake uses bash strict mode!)

How can I fix this?

@Addicted-to-coding Addicted-to-coding added the bug Something isn't working label Jun 7, 2020
@Addicted-to-coding Addicted-to-coding changed the title [BUG] [BUG] Error while running a SARS-CoV-2 analysis Jun 7, 2020
@rneher
Copy link
Member

rneher commented Jun 15, 2020

this is something that we will need to fix in augur. there is no immediate solution to this other disabling trait reconstruction (or including a sequence that is not from China)

@XPHenry
Copy link

XPHenry commented Jun 18, 2020

What do we do to disable trait reconstruction?

@jameshadfield
Copy link
Member

You can disable trait reconstruction by not running the augur traits step. It should be enough to remove / comment out this line which will remove the step from the snakemake graph of jobs needed to run.

@XPHenry
Copy link

XPHenry commented Jun 18, 2020

oh ok cool thanks for the quick reply!

@rneher
Copy link
Member

rneher commented Jun 26, 2020

I opened in issue in augur (see above) and will close here. thanks for raising this.

@rneher rneher closed this as completed Jun 26, 2020
@livia-wllr
Copy link

You can disable trait reconstruction by not running the augur traits step. It should be enough to remove / comment out this line which will remove the step from the snakemake graph of jobs needed to run.

Is it possible that you link that again ? Because the link you mentioned is broken

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

5 participants