From c079bdd969b4e5f18815fad7c9939edab3522866 Mon Sep 17 00:00:00 2001 From: zsloan Date: Fri, 26 Mar 2021 19:43:47 +0000 Subject: Split rat RRID by _ in order to pull out just the ID number, since the number is needed for the links --- wqflask/wqflask/show_trait/SampleList.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3