This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Separating a region of the VCF file

Hi Dear All,

I'm trying to separate 5Mb to 10Mb region of my VCF file with vcftools. But when I get the output, it only contains a header??

What is the best idea?

Codes I run:

 vcftools --vcf My_Chr20.vcf --chr 20 --from-bp 5000000 --to-bp 10000000 --recode --out My_Output

or 

 vcftools --vcf My_Chr20.vcf --chr 20 --from-bp 5000000 --to-bp 10000000 --recode  --recode-INFO-all --out My_Output

Best Regard

snp vcftools

1 answer

Use tabix and please use the search function next time:

Extract Sub-Set Of Regions From Vcf File

Log in to answer this question.