WouterDeCoster Thank you for very nice code. I am trying to run thi code but still it failed. My syntax:
python anotate.py input.tsv path/to/chr/directory
And I have error message:
File "anotate.py", line 57 addrefnucl(key) ^ IndentationError: expected an indented block
Please if you have any idea what I am doing wrong. Thank you so much.
Do you know a bit of Python? I have a script which almost does what you want.
Thank you for reply. I am scripting more in bash and awk.. But maybe I would understand..
How big is your file? Wondering whether to do everything in memory or stream.
It could be about 500000 rows and about 20 MB.