This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to add info to the sample columns of a VCF?

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

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

I have a tab delimited file

 sample_name      snp CHR        SNP pos          value

but I can put it in a different format.

Yes, saw my mistake and edited it

0 answers

No answers yet.

Log in to answer this question.