How to add info to the sample columns of a VCF?
0
0
Entering edit mode
8.1 years ago
Niek De Klein ★ 2.6k

Is there a tool that can add information to the sample columns of a VCF file, similar to bcftools --annotations but instead of changing the INFO column the FORMAT column + all the sample information? So if I have the line

20  14370   rs6054257 G   A    29   PASS   NS=3;DP=14;AF=0.5;DB;H2     GT:GQ:DP:HQ 0|0:48:1:51,51 1|0:48:8:51,51 1/1:43:5:.,.

I would like to add sample info :I with a number:

20  14370   rs6054257 G   A   29   PASS   NS=3;DP=14;AF=0.5;DB;H2      GT:GQ:DP:HQ:I 0|0:48:1:51,51:3 1|0:48:8:51,51:4 1/1:43:5:.,.:6

With a different number for each of the samples.

bcftools vcf • 3.3k views
ADD COMMENT
0
Entering edit mode

what would be your input for the 'I', another VCF ?

ADD REPLY
0
Entering edit mode

I have a tab delimited file

 sample_name      snp CHR        SNP pos          value

but I can put it in a different format.

ADD REPLY
0
Entering edit mode

for ALL the positions ?

ADD REPLY
0
Entering edit mode

Yes, saw my mistake and edited it

ADD REPLY

Login before adding your answer.

Traffic: 1673 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