Entering edit mode
2.5 years ago
ThunderPhoenix
•
0
Hello! So, lets say I have a sorted, indexed (tabix) VCF file, and wanted to make a new subsetted VCF file out of the that contains only a specific region from chr1. In that case, I know that tabix chr1.vcf.gz:<start>-<end>
will give you the raw subsetted genotype data. How do I create a valid VCF file out of this? Thanks!
Actually I just used bcftools view and subset the specified chromosome. I'd imagine subsetting via vcftools would be equivalently good.
Please accept their answer to mark the post as solved.