bcftools FORMAT/FOO annotation to specific sample in multiple sample VCF
Hi,
I wonder what do we have to modify in this command "bcftools annotate -a annots.tsv.gz -h annots.hdr -c CHROM,FROM,TO,FMT/FOO,BAR in.vcf" if we want to annotate FMT/FOO to SAMPLE2 (let's say the in.vcf has two samples) but not to SAMPLE1.
I did like this "bcftools annotate -s SAMPLE2 -a annots.tsv.gz -h annots.hdr -c CHROM,FROM,TO,FMT/FOO,BAR in.vcf" but it again annotated FMT/FOO to SAMPLE1 instead of SAMPLE2.
KR, Rajendra
• 3,118 views
•
link
1 answer
Developer/s told me (https://github.com/samtools/bcftools/issues/998) that the bug mentioned above is fixed in the latest version.
• 0 views
•
link
Log in to answer this question.
not clear, provide an example of input/ouput.
Hi @Pierre Lindenbaum,
I think these steps [A-E] will help to illustrate more. (SAMPLE2 that has to be annotated with "FooValue1" and "FooValue2", see in bold)
A].
B].
C].
D]. command:
E].
Thanx,
Hello ShahiRB ,
Please use the formatting bar (especially the

codeoption) to present your post better. I've done it for you this time.Thank you!
is "E" here (
in_annoted.vcf) the expected output, or the output currently given by the program?Its expected output and if you run the latest bcftools you will get the output in that format.