Change ID of input vcf for ID of another vcf

26 views
Skip to first unread message

Joel Lafond Lapalme

unread,
Apr 11, 2017, 1:39:37 PM4/11/17
to vcfanno
Hi,

Is it possible with vcfanno to change the ID of the input vcf for the ID from another vcf like dbsnp ? 

Thank you
Joël

Brent Pedersen

unread,
Apr 11, 2017, 2:10:01 PM4/11/17
to vcfanno
Yes, see this block of annotation: https://github.com/brentp/vcfanno#postannotation

and there is also an example in the gnomad example: https://github.com/brentp/vcfanno/blob/master/example/gnomad.conf#L102

note that you annotate the INFO using "ID" first and then you set the ID in a [[postannotation]] block. You can also use the setid() lua function here: https://github.com/brentp/vcfanno/blob/master/example/custom.lua#L128

I plan to make this so you don't need lua, but for now, this works.

let me know if you have any questions.

-Brent 
Reply all
Reply to author
Forward
0 new messages