Skip to content

Error in DIAMOND_analysis_counter.py  #74

@McKSal

Description

@McKSal

Hello, I am having issues with DIAMOND_analysis_counter.py script
I am getting a similar error as in this previous post #57

command:
python Diamond_analysis_counter2.py -I BMRNA2_other_nr.daa_viewable -D /media/scratch/2022_diamond_nr_db/nr -O BMRNA2_other_nr_organism

error:
Now reading through the m8 results infile.

Analysis of BMRNA2_other_nr.daa_viewable complete.
Number of total lines: 426637
Number of unique sequences: 422738
Time elapsed: 0.5995767116546631 seconds.

Starting database analysis now.
Traceback (most recent call last):
File "Diamond_analysis_counter2.py", line 151, in
if split_db_org[1] == "sp.":
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "Diamond_analysis_counter2.py", line 157, in
db_org = split_db_org[1]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "Diamond_analysis_counter2.py", line 162, in
db_org = split_db_org[1] + " " + split_db_org[2]
IndexError: list index out of range

From post linked above:
"the parsing script doesn't do well when there are multiple instances of square brackets in the line."

When I go in and look at the line (151) all I see is the string of AA's:
TREFEAFEAGRRYANTAYLVDLQEMQGDNLLRELVRITAQMNWQLNDLKEQIRQGNVISGQQLALTARQYYEKQLGSLEK

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions