Am having trouble with this annotation. Earlier I did not require it but now am trying to annotate the output of fpfilter back to original VCF file but somehow it is not being written properly.
My fpfilter out looks like this
#CHROM POS REF VAR DEPTH RAF VAF FILTER FILTER_DETAILS
chr1 1267350 C A 69 0.9420 0.0580 PASS .
chr1 1289256 C A 85 0.9529 0.0471 Strandedness Ref=0.83,Var=1.00,MinMax=[0.01,0.99]
chr1 1424646 C A 42 0.9048 0.0952 Strandedness Ref=0.82,Var=1.00,MinMax=[0.01,0.99]
chr1 1886772 C A 43 0.9302 0.0698 Strandedness Ref=0.85,Var=1.00,MinMax=[0.01,0.99]
chr1 3044509 G T 63 0.9048 0.0952 Strandedness Ref=0.91,Var=1.00,MinMax=[0.01,0.99]
I used the commands below to zip and annotate it
bzip S_313_T_mutect_snvs.fpfilter
tabix -s 1 -b 2 -e 2 S_313_T_mutect_snvs.fpfilter.gz
The original VCF file looks like below . Am not giving the first 124 lines of VCF format below
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT IPS_S7996 N_S8981
chr1 1563396 . C A . PASS SOMATIC;VT=SNP GT:AD:BQ:DP:FA:SS 0/1:94,4:35:98:0.041:2 0:124,0:.:124:0.00:0
chr1 1686753 . C A . PASS SOMATIC;VT=SNP GT:AD:BQ:DP:FA:SS 0/1:157,6:36:164:0.037:2 0:329,0:.:329:0.00:0
chr1 3712349 . C A . PASS SOMATIC;VT=SNP GT:AD:BQ:DP:FA:SS 0/1:34,4:35:38:0.105:2 0:44,0:.:44:0.00:0
chr1 7309616 . G T . PASS SOMATIC;VT=SNP GT:AD:BQ:DP:FA:SS 0/1:145,6:35:151:0.040:2 0:294,0:.:294:0.00:0
chr1 8390429 . G T . PASS SOMATIC;VT=SNP GT:AD:BQ:DP:FA:SS 0/1:89,4:34:93:0.043:2 0:158,0:.:158:0.00:0
I'm using the command
cat mutect_S_313soma_t_ex_flt.vcf | \
vcf-annotate -a S_313_T_mutect_snvs.fpfilter.gz \
-d key=INFO,ID=ANN,Number=1,Type=String,Description='FP filter annotation' \
-c FILTER,INFO/ANN > S_313_T_mutect_snvs.fpfilter.vcf
But this does not give me the way I want. The -c handler should be the column of the annotation file which is in in zipped format but it is not writing in the desired column. Am getting confused. Am I doing wrong in the tabix command. Since the fpfilter output is not having TO column so the tabix column should be fine, it should have the same column for POS from fpfilter output. Then where am I getting wrong. I want to write the column FILTER of fpfilter out having "PASS" in the original VCF in the INFO key adding a ID "ANN" . How will I modify the command. I tried different ways but to no avail. Any help would be appreciated. May be its naive but somehow am not being able to figure it out.