aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2022-08-12 14:43:54 +0000
committerzsloan2022-12-21 13:04:07 -0600
commitfe74f5a07bd99cc8f5f80d45075a24d9475c1ef8 (patch)
treee0631253b9577e3044649065c36ba1377a5aff95 /wqflask
parent2f3a7be180ae62bd3417055a96801b66909e14ab (diff)
downloadgenenetwork2-fe74f5a07bd99cc8f5f80d45075a24d9475c1ef8.tar.gz
Replace a couple other instances of hg38 with query
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/marker_regression/display_mapping_results.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/wqflask/wqflask/marker_regression/display_mapping_results.py b/wqflask/wqflask/marker_regression/display_mapping_results.py
index 434db19d..9425e1f3 100644
--- a/wqflask/wqflask/marker_regression/display_mapping_results.py
+++ b/wqflask/wqflask/marker_regression/display_mapping_results.py
@@ -1381,17 +1381,13 @@ class DisplayMappingResults:
elif (geneStartPix < xLeftOffset):
geneStartPix = xLeftOffset # clip the first in-range gene
- # color the gene based on SNP density
- # found earlier, needs to be recomputed as snps are added
- # always apply colors now, even if SNP Track not checked - Zach 11/24/2010
-
myColor = BLACK
outlineColor = myColor
fillColor = myColor
- TITLE = f"hg38: Chr {hg38_chr} from {hg38_start:.3f} to {hg38_end:.3f} Mb"
- HREF = f"http://genome.ucsc.edu/cgi-bin/hgTracks?db=hg38&position=chr{hg38_chr}:{int(hg38_start * 1000000)}-{int(hg38_end * 1000000)}"
+ TITLE = f"hg38: Chr {query_chr} from {query_start:.3f} to {query_end:.3f} Mb"
+ HREF = f"http://genome.ucsc.edu/cgi-bin/hgTracks?db=hg38&position=chr{query_chr}:{int(query_start * 1000000)}-{int(query_end * 1000000)}"
# Draw Genes
geneYLocation = yPaddingTop + \
@@ -1422,7 +1418,7 @@ class DisplayMappingResults:
for xCoord in range(0, genePixRange):
if (xCoord % self.EACH_GENE_ARROW_SPACING == 0 and xCoord + self.EACH_GENE_ARROW_SPACING < geneEndPix - geneStartPix) or xCoord == 0:
- if hg38_strand == "+":
+ if query_strand == "+":
im_drawer.line(
xy=((geneStartPix + xCoord, geneYLocation),
(geneStartPix + xCoord + self.EACH_GENE_ARROW_WIDTH,