This is a test version of Biostars. For the public version, visit https://www.biostars.org.
extracting one snp position from a vcd file

Hello,

Is there a way to extract one SNP by POS from a large vcf file.

Thank you!

snp

you asked many questions on this site. it would be nice if you could validate the correct answers (green ticks on the left).

1 answer

tabix, see the example in the manual: http://www.htslib.org/doc/tabix.html

Essentially you compress the file with bgzip, then index with tabix and then use tabix your.vcf.gz chr:start-end for retrieval.

Log in to answer this question.