Closed jungminchoilab closed 5 years ago
you could probably do this by annotating the query with itself and setting score=. for every variant. then only those that match in your test.bed.gz would be overridden. vcfanno annotates in the order given in the conf file so you can annotate with your vcf first and then with the test.bed.gz.
Thank you @brentp for the prompt response. This is a great idea. I was wondering if there is a way to annotate the query with itself without generating differently conf files. I am trying to incorporate this script into a pipeline that could be applicable to other query files without changing a config file every time I run it.
you'd have to programmatically set the query file.
I guess you could also do it with a [[postannotation]] block that uses lua to return '.' if the value is undefined and return the value otherwise.
thank you! very helpful.
Best, Jungmin
Happy new year!
I have test.bed.gz with:
chr1 500 1000 95.0
and a conf with:
and a query with:
vcfanno would add nothing but would it be possible to add "score=." like below?
Thank you so much for sharing this tool. Jungmin