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

IndexError in the annotate step #10

Open
housw opened this issue Apr 30, 2021 · 0 comments
Open

IndexError in the annotate step #10

housw opened this issue Apr 30, 2021 · 0 comments

Comments

@housw
Copy link

housw commented Apr 30, 2021

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

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

1 participant