aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBonfaceKilz2020-10-19 16:24:56 +0300
committerBonfaceKilz2020-10-19 16:24:56 +0300
commit3b5355dec882a636b2e02e41333e9dbf0dce641a (patch)
tree104197ed5e7a55dc15d152c1e670f5cd6ec73a50
parent4d1cc4be5ee49d9eaffb0114dad876d7cb2b9bb1 (diff)
downloadgenenetwork2-3b5355dec882a636b2e02e41333e9dbf0dce641a.tar.gz
Update snpString link
* wqflask/wqflask/marker_regression/display_mapping_results.py: Replace "%" strings with f-strings. Also, replace old "Href" with new htmlgen "Link" method.
-rw-r--r--wqflask/wqflask/marker_regression/display_mapping_results.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/wqflask/wqflask/marker_regression/display_mapping_results.py b/wqflask/wqflask/marker_regression/display_mapping_results.py
index 377f58b6..ca430e8d 100644
--- a/wqflask/wqflask/marker_regression/display_mapping_results.py
+++ b/wqflask/wqflask/marker_regression/display_mapping_results.py
@@ -2806,9 +2806,17 @@ class DisplayMappingResults(object):
geneIdString = 'http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?db=gene&cmd=Retrieve&dopt=Graphics&list_uids=%s' % theGO["GeneID"]
if theGO["snpCount"]:
- snpString = HT.Href(url="http://genenetwork.org/webqtl/main.py?FormID=snpBrowser&chr=%s&start=%s&end=%s&geneName=%s&s1=%d&s2=%d" % (theGO["Chromosome"],
- theGO["TxStart"], theGO["TxEnd"], theGO["GeneSymbol"], self.diffCol[0], self.diffCol[1]),
- text=theGO["snpCount"], target="_blank", Class="normalsize")
+ snpString = HT.Link(
+ (f"http://genenetwork.org/webqtl/main.py?FormID=snpBrowser&"
+ f"chr={theGO['Chromosome']}&"
+ f"start={theGO['TxStart']}&"
+ f"end={theGO['TxEnd']}&"
+ f"geneName={theGO['GeneSymbol']}&"
+ f"s1={self.diffCol[0]}&s2=%d"),
+ theGO["snpCount"] # The text to display
+ )
+ snpString.set_blank_target()
+ snpString.set_attribute("class", "normalsize")
else:
snpString = 0