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

Error in assign_internalids.py #1

Open
pamonlan opened this issue Jan 21, 2022 · 0 comments
Open

Error in assign_internalids.py #1

pamonlan opened this issue Jan 21, 2022 · 0 comments

Comments

@pamonlan
Copy link

I am not sure if is an error by the new version of HMDB, but when you need to run

python assign_internalids.py megadb.txt HMDB.txt

You get the following error:
Traceback (most recent call last): File "assign_internalids.py", line 51, in <module> inchi=col[0] IndexError: list index out of range
To solve the error you need to replace the line:
col = line.split("\t")
by
col = line.split("\\t") du the header now is
['1\tInChI\tsmiles\tmass\tchem_f\tInChIKey\n']

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