This is a test version of Biostars. For the public version, visit https://www.biostars.org.
is it possible to subset samples and reheader a vcf in a single step?

In terms of speed, is there any faster way than doing this?

bcftools view -S samples.list my_vcf.vcf.gz |  bcftools reheader -s reheader.list -Oz > new_vcf.vcf.gz
bcftools

0 answers

No answers yet.

Log in to answer this question.