diff options
author | zsloan | 2021-03-26 19:43:47 +0000 |
---|---|---|
committer | zsloan | 2021-03-26 19:43:47 +0000 |
commit | c079bdd969b4e5f18815fad7c9939edab3522866 (patch) | |
tree | beabd7fd58ac4535978f18824c096db0b7dcdbc5 /wqflask | |
parent | 0daaa41adafdfbfed10c0dca27ef5eef008441da (diff) | |
download | genenetwork2-c079bdd969b4e5f18815fad7c9939edab3522866.tar.gz |
Split rat RRID by _ in order to pull out just the ID number, since the number is needed for the links
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/show_trait/SampleList.py | 2 |
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) |