-
Notifications
You must be signed in to change notification settings - Fork 21
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
writeVCF not implemented. I wrote some implementation #32
Comments
Thanks for your contribution but If you think this implementation is lacking some of the features, please report them. We can improve the implementation. |
It is only stub. Not working! 25.09.2019, 19:48, "Muhammed Hasan" <notifications@github.com>:Thanks for your contribution but writeVCF is already implemented.
https://github.com/gagneurlab/MMSplice/blob/7f4aeb8bfa6cd460bccc5db593c066d1691bf1f6/mmsplice/mmsplice.py#L193
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.
-- С уважением,Н.С. Бескоровайный
|
thanks @beskns. @MuhammedHasan maybe we put it in the utils.py and import to the first level in the init.py file for the next release. |
Are there any news regarding the WriteVcf functionality. |
This function is now implemented in mmsplice.utils.writeVCF MMSplice_MTSplice/mmsplice/utils.py Line 353 in dd91265
New version is on pypi and can be installed with pip. Thanks @beskns for sharing your implementation. I did some modifications based on that. After writing the predictions as vcf file, you can read the output file into a pandas DataFrame with mmsplice.utils.read_vep MMSplice_MTSplice/mmsplice/utils.py Line 164 in dd91265
Hopefully, this works for your use case @tstohn. I close the issue for now, please feel free to reopen if there is further question or request. |
Hey Jun, |
columns = [
'gene_name',
'transcript_id',
'exons',
'ref_exon',
'alt_exon',
'ref_donor',
'alt_donor',
'ref_acceptor',
'alt_acceptor',
'ref_acceptorIntron',
'alt_acceptorIntron',
'ref_donorIntron',
'alt_donorIntron',
'delta_logit_psi',
'pathogenicity',
'efficiency'
]
def writeVCF(vcf_in, vcf_out, predictions):
from cyvcf2 import VCF, Writer
vcf = VCF(vcf_in)
vcf.add_info_to_header({
'ID': 'mmsplice',
'Description': 'MMSplice splice variant effect. Format:' + '|'.join(columns),
'Type': 'Character',
'Number': '.'
})
w = Writer(vcf_out, vcf)
The text was updated successfully, but these errors were encountered: