Skip to content

Is there any way to query from a zipped(*.vcf.gz) and indexed(*.vcf.gx.tbi) file with chr,position,ref and alt("chr2:9452897_AT_T)") #1627

Answered by lindenb
amirul99 asked this question in Q&A
Discussion options

You must be logged in to vote

use a VCFFileReader + query https://samtools.github.io/htsjdk/javadoc/htsjdk/htsjdk/variant/vcf/VCFFileReader.html#query-java.lang.String-int-int- , and loop over the iterator/Variant

I need a specific output row with mathced chr,position,ref and alt.

this is then just basic programming...

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@amirul99
Comment options

@lbergelson
Comment options

@amirul99
Comment options

@lindenb
Comment options

@lbergelson
Comment options

Answer selected by lbergelson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants