Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Annotation header Ex. SnpEffVersion #140

Open
raonyguimaraes opened this issue Mar 21, 2021 · 5 comments
Open

Annotation header Ex. SnpEffVersion #140

raonyguimaraes opened this issue Mar 21, 2021 · 5 comments

Comments

@raonyguimaraes
Copy link

raonyguimaraes commented Mar 21, 2021

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"]
@brentp
Copy link
Owner

brentp commented Mar 21, 2021

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"]

@C-Gouveia
Copy link

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

brentp added a commit that referenced this issue Oct 26, 2021
@brentp
Copy link
Owner

brentp commented Oct 26, 2021

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

@C-Gouveia
Copy link

Awesome! Thank you

@raonyguimaraes
Copy link
Author

thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants