-
Notifications
You must be signed in to change notification settings - Fork 20
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
Populate INFO column with VariantAnnotation::writeVcf #61
Comments
Have you tried running your example, but preceding this with
to get clues as to why the INFO data are lost? Please consider making a PR if you find the answer. |
Hey Vince! Tried to look into this but can't seem to install the 1.99.3+ version of Rhtslib on mac, have you come across this issue? But from what I can tell without getting into the details of Variantannotation, when writeVcf is called on a VRanges object I believe it's the below function the one that's called from here:
Then the call VariantAnnotation:::.makeVcfMatrix uses the line
The issue is that VRanges don't have a slot(x, "header") value so I don't think it would ever pick it up? Unless I misinterpreted the function calls here? |
Wait I figured a way around it:
Just converting to VCF class yourself and specifying the column to go into info in the writeVcf call works |
Thank you for persevering. If you see a documentation enhancement that will prevent other users from hitting your problem please make a PR. I think we should leave this open for now. |
Hi ,
I'm the creator of the MungeSumstats Bioconductor package in which we use VariantAnnotation::writeVcf as an output options for the formatted sumstats. I want to align the formatting of our sumstats to IEU OpenGWAS VCF, part of which means adding the RSIDs to the INFO column in the VCF. However, I can't seem to populate INFO with VariantAnnotation::writeVcf. Is there any way to do this?
An example:
The text was updated successfully, but these errors were encountered: