Skip to content

IndexError in the annotate step #10

@housw

Description

@housw

Hi Zohaib,
I got the following error while running the annotate step:

Traceback (most recent call last):
  File "scripts/annotate_count_table_v1.py", line 330, in <module>
    annotate_eggNOG(tabfile = inputdir+"/"+inputfile, outfile = outputdir+"/"+outputfile)
  File "scripts/annotate_count_table_v1.py", line 170, in annotate_eggNOG
    x=infile[i][infile[i].index("\t"):infile[i].index("LevelI__")]+"LevelI__"+levelI[list_values[0]]+infile[i][infile[i].index("; LevelII__"):]
IndexError: list index out of range

Here I printed out some values for debugging:

inheritenceII: ['elII__Secondary metabolites biosynthesis, transport and catabolism', 'Chromatin structure and dynamics']
list_values: []
ID: COG0123_1
infile[i]: COG0123	71	80	45	60	69	55	55	52	0	48	51	39	27	71	DB__COG; LevelI__INFORMATION STORAGE AND PROCESSING..METABOLISM; LevelII__Secondary metabolites biosynthesis, transport and catabolism..Chromatin structure and dynamics; LevelIII__Deacetylases, including yeast histone deacetylase and acetoin utilization protein; LevelIV__; LevelV__; LevelVI__

It seems the list_values is empty, any idea?

Thanks,
Shengwei

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