vcf-consensus with more than one alternative alleles
1
0
Entering edit mode
9.9 years ago
iraun 6.2k

Hi all,
If I have a vcf file, and some variants have more than one alternative alleles, like:

#CHROM    POS    ID    REF    ALT    QUAL    FILTER    INFO    FORMAT
Chr_3.1    124358    .    G    GCCCC,GCC    32.2    .    INDEL;IS=2,0.200000;DP=10;VDB=6.695005e-02;AF1=1;AC1=2;DP4=0,0,1,2;MQ=60;FQ=-40.5    GT:PL:DP:GQ    1/1:104,39,33,69,0,66:3:10

How can I know which one is adding vcf-consensus to the new reference?

Thanks in advance.

vcf-consensus vcf • 2.7k views
ADD COMMENT
2
Entering edit mode
9.9 years ago

it uses the first ALT: http://sourceforge.net/p/vcftools/code/HEAD/tree/trunk/perl/vcf-consensus

$alt = ($idx=index($$vline[4],','))==-1 ? $$vline[4] : substr($$vline[4],0,$idx);
ADD COMMENT
0
Entering edit mode

Hi Pierre! Thanks! Do you know if it adds the first one because the vcf file always put in the first position the "best" alt or... "by chance"?

ADD REPLY
0
Entering edit mode

the spec doesn't say anything about the order: http://samtools.github.io/hts-specs/VCFv4.2.pdf

ADD REPLY
0
Entering edit mode

Ok...so...I don't understand why vcf-consensus chooses the first alt to insert into de reference... I mean, maybe the second one is the "most representative" allele... but..thanks for the links and useful information!

ADD REPLY

Login before adding your answer.

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