Skip to content
Snippets Groups Projects
Commit fcf63867 authored by Laros's avatar Laros
Browse files

Made the description generation slightly more insightful.

git-svn-id: https://humgenprojects.lumc.nl/svn/mutalyzer/trunk@593 eb6bd6ab-9ccd-42b9-aceb-e2899b4a52f1
parent cabd73ed
No related branches found
No related tags found
No related merge requests found
......@@ -212,6 +212,9 @@ class RawVar(models.RawVar) :
return 4 # Start position, '>' and end position.
#descriptionLength
def putHGVS(self):
self.hgvs = self.description()
#RawVar
def alleleDescription(allele) :
......@@ -226,8 +229,8 @@ def alleleDescription(allele) :
"""
if len(allele) > 1 :
return "[%s]" % ';'.join(map(lambda x : x.description(), allele))
return allele[0].description()
return "[%s]" % ';'.join(map(lambda x : x.hgvs, allele))
return allele[0].hgvs
#alleleDescription
def alleleDescriptionLength(allele) :
......@@ -434,6 +437,7 @@ def describeDNA(original, mutated) :
description = DNA_description(M, s1, s2, lcp, s1_end, lcp, s2_end)
for i in description:
i.hgvs = i.description()
i.putHGVS()
return description
#describeDNA
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment