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

list index out of range with srst2.py #113

Open
anuravi1234 opened this issue Oct 29, 2018 · 3 comments
Open

list index out of range with srst2.py #113

anuravi1234 opened this issue Oct 29, 2018 · 3 comments

Comments

@anuravi1234
Copy link

Hello, I am trying to run the getmlst.py script. This is the command I am using:
python2 /mnt/volume_2/srst2/scripts/srst2.py --input_se 669_EF_MAG_EF_MAG.fastq --output 582_mlst --log --mlst_db /mnt/volume_2/srst2/Enterococcus_faecium.fasta --mlst_definitions /mnt/volume_2/srst2/efaecium.txt --read_type q

The sam output and bowtie files were created but when i got this error in the last step of the process, I am not sure how to solve it.
Traceback (most recent call last):
File "/mnt/volume_2/srst2/scripts/srst2.py", line 1773, in
main()
File "/mnt/volume_2/srst2/scripts/srst2.py", line 1717, in main
mlst_report, mlst_results = run_srst2(args, fileSets, args.mlst_db, "mlst")
File "/mnt/volume_2/srst2/scripts/srst2.py", line 1264, in run_srst2
db_results_list, fasta)
File "/mnt/volume_2/srst2/scripts/srst2.py", line 1327, in process_fasta_db
results,gene_list, db_report, cluster_symbols, max_mismatch)
File "/mnt/volume_2/srst2/scripts/srst2.py", line 1429, in map_fileSet_to_db
size_allele, next_to_del_depth_allele, run_type,unique_gene_symbols, unique_allele_symbols)
File "/mnt/volume_2/srst2/scripts/srst2.py", line 510, in score_alleles
unique_gene_symbols,unique_allele_symbols)
File "/mnt/volume_2/srst2/scripts/srst2.py", line 931, in group_allele_dict_by_gene
gene_name = get_allele_name_from_db(allele,run_type,args,unique_allele_symbols,unique_cluster_symbols)[component_ind]
File "/mnt/volume_2/srst2/scripts/srst2.py", line 900, in get_allele_name_from_db
allele_name = gene_name[1]
IndexError: list index out of range

Thank you for helping!

Anu

@josemunozc
Copy link

Same problem here

@sazal-mib
Copy link

same problem :(

@thomasmulvaney
Copy link

Depending on MLST scheme, you might need to specify the delimiter with -mlst_delimiter. For example I had to use -mlst_delimiter '_' for S. pneumoniae. That seemed to fix the issue for me.

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

4 participants