Entering edit mode
5.6 years ago
ShahiRB
▴
30
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
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
code
option) 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.