Edit protein sequence given HGVS.p

16 views
Skip to first unread message

Dario Beraldi

unread,
Jun 30, 2019, 7:19:43 AM6/30/19
to hgvs-discuss
Hello,

As per title, I need to edit a protein sequence according to a HGVS.p tag.  For example:

>ENSP00000454338
FPIEAGDSRGLAAAPESQDSPEAVATEHNPVSGPCRASISPGRFVAALDATA

Given:

ENSP00000454338.1:p.Ala37Thr

Return the input with Ala at position 37 changed to Thr:

>ENSP00000454338
FPIEAGDSRGLAAAPESQDSPEAVATEHNPVSGPCRTSISPGRFVAALDATA 


I came across the HGVS package and I'm wondering whether it could be used for this task. 


This is what I have so far but then I'm sort of stuck. Any help much appreciated!


import hgvs.parser

import hgvs.dataproviders.uta

import hgvs.assemblymapper


hgvsparser = hgvs.parser.Parser()

var = hgvsparser.parse_hgvs_variant('ENSP00000454338.1:p.Ala37Thr')

hdp = hgvs.dataproviders.uta.connect()

vm = hgvs.assemblymapper.AssemblyMapper(hdp, assembly_name='GRCh38', alt_aln_method='splign')

 

Dario

Reece Hart

unread,
Aug 5, 2019, 2:08:08 AM8/5/19
to hgvs-discuss
Hi Dario-

Sorry, this query was lost during my vacation.

The hgvs package doesn't have a way to generate the sequence that results from applying a variant. Sorry.

Please consider adding an issue if you'd like to see this implemented.

-Reece

--
You received this message because you are subscribed to the Google Groups "hgvs-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hgvs-discuss...@googlegroups.com.
To post to this group, send email to hgvs-d...@googlegroups.com.
Visit this group at https://groups.google.com/group/hgvs-discuss.
To view this discussion on the web visit https://groups.google.com/d/msgid/hgvs-discuss/8f9bdfaf-3cce-49c1-966d-c59115c894bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages