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

modify VCF header #237

Open
aude-darracq opened this issue Mar 23, 2022 · 1 comment
Open

modify VCF header #237

aude-darracq opened this issue Mar 23, 2022 · 1 comment

Comments

@aude-darracq
Copy link

Hello,

I would like to know if it is possible to modify the header of a vcf.

Functions "add_info_to_header" and "update" allow to add a new INFO line to the VCF header but I didn't find a way to modify an existing one.
For example, I would like to change the type of my custom info field from string to character.
{u'HeaderType': u'INFO', u'Description': u'"Custom field"', u'Type': u'String', u'Number': u'1', u'ID': u'CUST'}

Thanks

@brentp
Copy link
Owner

brentp commented Mar 24, 2022

Hi, that's currently not supported.
I think the way to do it is to remove the old header, then add a new one. But, remove is not implemented. I'd accept a PR that exposed bcf_hdr_remove.

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

2 participants