vcfanno icon indicating copy to clipboard operation
vcfanno copied to clipboard

Annotation header Ex. SnpEffVersion

Open raonyguimaraes opened this issue 3 years ago • 5 comments

Hi Brent,

I am wondering how I could keep certain vcf header values after using vcfanno for example:

##SnpEffVersion and ##SnpEffCmd

After using vcfanno to merge this vcf with a VEP(ed) vcf I don't see these fields anymore.

Is there a way to include these headers in the output?

Here is my config.toml

[[annotation]]
file="/home/raony/dev/pynnotator/pynnotator/tests/ann_sample.100.hg38/snpeff/snpeff.output.vcf.gz"
fields = ["ANN"]
names = ["snpeff_eff"]
ops=["first"]

[[annotation]]
file="/home/raony/dev/pynnotator/pynnotator/tests/ann_sample.100.hg38/vep/vep.output.sorted.vcf.gz"
fields = ["CSQ"]
names = ["vep_csq"]
ops=["first"]

raonyguimaraes avatar Mar 21 '21 10:03 raonyguimaraes

I see the utility in this. I might accept a PR for this. But you can see how it could get unwieldy to handle everything. If you just allow headers like this, it could be something like:

[[annotation]]
file="/home/raony/dev/pynnotator/pynnotator/tests/ann_sample.100.hg38/vep/vep.output.sorted.vcf.gz"
fields = ["CSQ"]
names = ["vep_csq"]
ops=["first"]
headers=["SnpEffVersion", "SnpEffCmd"]

brentp avatar Mar 21 '21 14:03 brentp

Hi Brent,

Regarding this, is there anyway of adding a new line to the header of the annotated file where the vcfanno version is specified?

Thank you

C-Gouveia avatar Oct 26 '21 14:10 C-Gouveia

@C-Gouveia this is now implemented and in release v0.3.3

brentp avatar Oct 26 '21 14:10 brentp

Awesome! Thank you

C-Gouveia avatar Oct 26 '21 15:10 C-Gouveia

thank you!

raonyguimaraes avatar Oct 27 '21 06:10 raonyguimaraes