Entering edit mode
5.7 years ago
PedroBarbosa
▴
20
Hello,
I'm struggling to get the tabix index on a simple 3 columns bgzipped txt file:
#chr pos score
1 1 0.061011
1 2 0.061011
1 3 0.061011
...
Oddly, the indexing step is really fast (like 2 seconds), considering the file size (9Gb) and when a query a position I get no result without any warning. Has anyone faced a similar issue ?
tabix -s1 -b2 file.txt.bgz
tabix file.txt.bgz 1:2-3 -> empty result
Thanks in advance,
Pedro
This works for me. Some troubleshooting questions:
bgzip
?fin swimmer
Indeed, it worked for my little example. I'm now running a large sort on the file (
sort -V -k1,1 -k2,2
) to see if this was the problem. Although I wasn't expecting that as I zcatted all chromosome files in the proper order, and in theory I donwloaded them already sorted.Thanks for the suggestions, i'll let you know how it went.
@finswimmer, it didn't work, unfortunately.
These are my full commands, if you see any possible source of error let me know. This "wrong" index takes 2 seconds to be created. Never happened before.