Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Using the option --write-index together with bcltools view makes it possible to automatically create an index-file. Currenlty the default ouput (at least for a vcf.gz file) is a csi-file and I would like to have the possibility of having a tbi files as output.
I have been looking into adding the possibility of specifying output type for a vcf.gz index (csi or tbi) but got stuck trying to understand the code.
bcftools/version.c
Lines 116 to 141 in 95c1fb6
If I understand the code correctly the function will look for occurrences of HTS_IDX_DELIM (##idx##) in the name of the file that we are trying to index, which I never will have in my filename.
Feels like I have misunderstood the code. Is the idea that the function should get the filename of the indexed-file, ex nam.vcf.gz.tbi as input? And then using some kind of regex (which isn't ##idx##) find the files that should get a tbi filetype?
Beta Was this translation helpful? Give feedback.
All reactions