Question: Bcftools merge sample order
0
gravatar for Chadi Saad
12 months ago by
Chadi Saad60
France
Chadi Saad60 wrote:

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

?

ADD COMMENTlink modified 12 months ago by paolo002150 • written 12 months ago by Chadi Saad60
0
gravatar for paolo002
12 months ago by
paolo002150
paolo002150 wrote:

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 COMMENTlink written 12 months ago by paolo002150
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 2361 users visited in the last hour