aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2021-03-26 19:43:47 +0000
committerzsloan2021-03-26 19:43:47 +0000
commitc079bdd969b4e5f18815fad7c9939edab3522866 (patch)
treebeabd7fd58ac4535978f18824c096db0b7dcdbc5
parent0daaa41adafdfbfed10c0dca27ef5eef008441da (diff)
downloadgenenetwork2-c079bdd969b4e5f18815fad7c9939edab3522866.tar.gz
Split rat RRID by _ in order to pull out just the ID number, since the number is needed for the links
-rw-r--r--wqflask/wqflask/show_trait/SampleList.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/show_trait/SampleList.py b/wqflask/wqflask/show_trait/SampleList.py
index 112298a1..857e4456 100644
--- a/wqflask/wqflask/show_trait/SampleList.py
+++ b/wqflask/wqflask/show_trait/SampleList.py
@@ -78,7 +78,7 @@ class SampleList(object):
sample.extra_attributes['rrid'].append(webqtlConfig.RRID_MOUSE_URL % the_rrid)
elif self.dataset.group.species == "rat":
if len(str(sample.extra_attributes['rrid'])):
- the_rrid = sample.extra_attributes['rrid']
+ the_rrid = sample.extra_attributes['rrid'].split("_")[1]
sample.extra_attributes['rrid'] = [sample.extra_attributes['rrid']]
sample.extra_attributes['rrid'].append(webqtlConfig.RRID_RAT_URL % the_rrid)