Bcftools merge sample order
1
0
Entering edit mode
6.0 years ago
Chadi Saad ▴ 110

Does the sample names order in the multisample vcf file respect the input files order ?

for exemple: >> bcftools merge sample1.vcf sample2.vcf sample3.vcf

will always produce -->

CHROM  POS     ID      REF     ALT     QUAL    FILTER  INFO    FORMAT  sample1       sample2       sample3

?

vcf dna multisample bcftools htslib • 2.5k views
ADD COMMENT
0
Entering edit mode
6.0 years ago
paolo002 ▴ 160

If you merge various vcf files into a single large vcf, the merged file will show the sample IDs names in the header in increasing order. The information in the hearder will follow the same order as in the separated files you provided as input. However, I guess be careful if there are not unique individuals and about the number of SNPs you have in the single vcf files in the input during your merging.

ADD COMMENT

Login before adding your answer.

Traffic: 1854 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6