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

issue with genes.to.kronaTable.py to get COG.tab file #18

Open
smeeta opened this issue Aug 19, 2022 · 0 comments
Open

issue with genes.to.kronaTable.py to get COG.tab file #18

smeeta opened this issue Aug 19, 2022 · 0 comments

Comments

@smeeta
Copy link

smeeta commented Aug 19, 2022

Hi,

I tried to run the COG from the script :

genes.to.kronaTable.py -i PROKKA.$SAMPLE.cog -m ~/mg-workshop/reference_db/cog/cog.to.cat -H ~/mg-workshop/reference_db/cog/cat.hierarchy -n $SAMPLE -c $SAMPLE.coverage -o $SAMPLE.krona.COG.tab

I get the following error :

$ python genes.to.kronaTable.py \

--infile ~/GROUP/sm/PROKKA.sm.cog
--mapfile ~/GROUP/sm/metagenomics-workshop-master/reference_db/cog/cog.to.cat
--hierarchy ~/GROUP/sm/metagenomics-workshop-master/reference_db/cog/cat.hierarchy
--outfile ~/GROUP/sm/sm.krona.COG.tab
Traceback (most recent call last):
File "genes.to.kronaTable.py", line 200, in
if name == "main": main()
File "genes.to.kronaTable.py", line 157, in main
annotations = ReadMap(args.infile) ## Read annotations the same way as above, then get length of the list for counts
File "genes.to.kronaTable.py", line 30, in ReadMap
ann = row[1]
IndexError: list index out of range

Any help could be really appreciated.

regards
Smeeta

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