simroux / VirSorter2_to_Anvio

Draft script to generate Anvi'o-compatible annotation files from VirSorter2 output, for visualization of VS2 results in Anvi'o
0 stars 0 forks source link

Issue running Virsorter2_to_anvio parser #2

Open lexikazen opened 8 months ago

lexikazen commented 8 months ago

I tried to run the Virsorter2_to_Anvio parser and I got this error. I'm not really sure if I did something wrong or if there's an issue with my Virsorter2 output that would have caused this? The virsorter_collection.txt and virsorter_additional_info.txt are still generated so there's just a problem with the annotations file.

VirSorter2_to_Anvio/virsorter_to_anvio.py -i phageomics/vs2-pass2-combined/ -s splits_basic_info_combined.txt -n all_gene_calls_combined.txt -d /hpc/refdata/virsorter/2.2.3/ -A virsorter_additional_info.txt -C virsorter_collection.txt -F virsorter_annotations.txt

######################## Reading all relevant VirSorter2 data ######################## Printing collection file and additional data file Traceback (most recent call last): File "/scratch/u/al59331/VirSorter2_to_Anvio/virsorter_to_anvio.py", line 254, in nb_genes = info_contigs[split_parent][prophage]['nb_genes'] KeyError: 'nb_genes'