Skip to content
Snippets Groups Projects
Commit e23b4d09 authored by Vermaat's avatar Vermaat
Browse files

Position converter now tells you if no transcripts could be found in the

mutation region.



git-svn-id: https://humgenprojects.lumc.nl/svn/mutalyzer/trunk@185 eb6bd6ab-9ccd-42b9-aceb-e2899b4a52f1
parent 9b090a1e
No related branches found
No related tags found
No related merge requests found
......@@ -500,7 +500,7 @@ class PositionConverter:
if build and variant:
converter = Mapper.Converter(build, C, O)
#Conver chr accNo to NC number
#Convert chr accNo to NC number
variant = converter.correctChrVariant(variant)
if variant :
......@@ -513,11 +513,13 @@ class PositionConverter:
if ":c." in variant:
# Do the c2chrom dance
variant = converter.c2chrom(variant)
attr["gName"] = variant
if variant and ":g." in variant:
# Do the g2c dance
variants = converter.chrom2c(variant, "dict")
if variants:
attr["gName"] = variant
output = ["%-10s:\t%s" % (key[:10], "\n\t\t".join(value))\
for key, value in variants.items()]
attr["cNames"].extend(output)
......
......@@ -52,6 +52,7 @@
<br>
<b>Chromosomal Variant:</b><br>
<pre><div tal:replace = "structure string:${gName}<br>"></div></pre>
<b tal:condition = "not:cNames">No transcripts found in mutation region</b><br><br>
</div>
<div tal:condition = "cNames">
......
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