vg icon indicating copy to clipboard operation
vg copied to clipboard

Variant IDs in the vcf file

Open JD12138 opened this issue 3 years ago • 1 comments

Hi, I have two fastq files. I map them to a same graph and then genotype them use vg call in the same parameters. So I get two vcf files. I want to know if the third column (the variant id) in the vcf file is share between the two vcf files? I mean , if there are same ids in the two files , are they same variants? Thank you!

JD12138 avatar Mar 25 '22 09:03 JD12138

They are the same site, and the reference allele [0] would be consistent. But the alt alleles could be different. Ex you could have something like A->AA,AT in one and A->AA,AG in the other (so allele 2 is AT in one file and AG in the other).

If you run calling with vg call -a then put the results through bcftools merge I think you shuold get a consistent file.

glennhickey avatar Mar 28 '22 18:03 glennhickey