Closed jgugliel closed 5 months ago
Ok if I understand correctly, the distance matrix and NJ tree are based on the "cgMLST100" set of loci. In my case there are none, hence the message "cgMLST is composed of 0 loci".
So I tried with the --light option and got a new error.
Traceback (most recent call last): File "/opt/gensoft/exe/chewBBACA/3.3.5/bin/chewie", line 33, in
sys.exit(load_entry_point('chewBBACA==3.3.5', 'console_scripts', 'chewie')()) File "/opt/gensoft/exe/chewBBACA/3.3.5/venv/lib/python3.8/site-packages/chewBBACA-3.3.5-py3.8.egg/CHEWBBACA/chewBBACA.py", line 1469, in main functions_info[process][1]() File "/opt/gensoft/exe/chewBBACA/3.3.5/venv/lib/python3.8/site-packages/chewBBACA-3.3.5-py3.8.egg/CHEWBBACA/utils/process_datetime.py", line 146, in wrapper func(*args, kwargs) File "/opt/gensoft/exe/chewBBACA/3.3.5/venv/lib/python3.8/site-packages/chewBBACA-3.3.5-py3.8.egg/CHEWBBACA/chewBBACA.py", line 693, in run_evaluate_calls evaluate_calls.main(vars(args)) File "/opt/gensoft/exe/chewBBACA/3.3.5/venv/lib/python3.8/site-packages/chewBBACA-3.3.5-py3.8.egg/CHEWBBACA/AlleleCallEvaluator/evaluate_calls.py", line 492, in main "presence_absence": pa_data, UnboundLocalError: local variable 'pa_data' referenced before assignment
Hello @jgugliel,
Thank you for your interest in chewBBACA. The traceback you shared in your second comment is due to a bug in the AlleleCallEvaluator module when using the --light
, --no-pa
, and --no-dm
options. I've added some changes that should fix this issue. We will release chewBBACA v3.3.6 soon and expect it to solve the issue so that you can proceed with the analysis.
Regarding the issue with the cgMLST composed of 0 loci, the most common cause is single or multiple samples with low quality in the dataset used to perform allele calling (e.g. highly fragmented genome assemblies, contamination). I advise checking the quality of the 792 genome assemblies if you haven't already.
We will let you know when chewBBACA v3.3.6 is available.
Best regards,
Rafael
Greetings @jgugliel,
We've released chewBBACA v3.3.6. It should fix the issue when using the --light
option. If the cgMLST is composed of 0 loci, it should also skip the steps that compute the distance matrix, the MSA, and the tree. This way, it will create the report but not display the components that depend on cgMLST > 0. Please let us know if you can retry and if it works.
Best regards,
Rafael
Thanks a lot Rafael! I will try this new version as soon as possible and let you know if it worked.
The distance matrix, MSA and tree computations are indeed skipped, so everything is working as expected.
Thanks a lot!
Bests
Hello!
I am getting a weird error with AlleleCallEvaluator (chewBBACA version 3.3.5) I performed an AlleleCall as usual. No error, the output files look perfectly normal. Then I run AlleleCallEvaluator and get this
And then this error
I never got this. I do not understand how chewie thinks that the cgMLST is composed of 0 loci. I had issues with this analysis and it was related to file names and contig names, so I renamed everything to be sure but the error persists.
Do you know what might cause this?