From a805c821dfd78c3a79bc2da689625e778bff1258 Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Mon, 12 Jul 2010 18:23:39 +0000 Subject: [PATCH] Report if a lane was on a paired end flowcell from the library json structure. --- htsworkflow/frontend/samples/tests.py | 4 ++-- htsworkflow/frontend/samples/views.py | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/htsworkflow/frontend/samples/tests.py b/htsworkflow/frontend/samples/tests.py index 6f5182b..4478d51 100644 --- a/htsworkflow/frontend/samples/tests.py +++ b/htsworkflow/frontend/samples/tests.py @@ -94,12 +94,12 @@ class SampleWebTestCase(TestCase): # some specific tests if lib.id == '10981': # test a case where there is no known status - lane_set = {u'status': u'Unknown', u'lane_number': 1, u'flowcell': u'303TUAAXX', u'status_code': None} + lane_set = {u'status': u'Unknown', u'paired_end': True, u'read_length': 75, u'lane_number': 1, u'flowcell': u'303TUAAXX', u'status_code': None} self.failUnlessEqual(len(d['lane_set']), 1) self.failUnlessEqual(d['lane_set'][0], lane_set) elif lib.id == '11016': # test a case where there is a status - lane_set = {'status': 'Good', 'lane_number': 5, 'flowcell': u'303TUAAXX', 'status_code': 2} + lane_set = {u'status': 'Good', u'paired_end': True, u'read_length': 75, u'lane_number': 5, u'flowcell': u'303TUAAXX', u'status_code': 2} self.failUnlessEqual(len(d['lane_set']), 1) self.failUnlessEqual(d['lane_set'][0], lane_set) diff --git a/htsworkflow/frontend/samples/views.py b/htsworkflow/frontend/samples/views.py index 20b6837..e63cf4d 100644 --- a/htsworkflow/frontend/samples/views.py +++ b/htsworkflow/frontend/samples/views.py @@ -513,6 +513,8 @@ def library_dict(library_id): for lane in lib.lane_set.all(): lane_info.append( {'flowcell':lane.flowcell.flowcell_id, 'lane_number': lane.lane_number, + 'paired_end': lane.flowcell.paired_end, + 'read_length': lane.flowcell.read_length, 'status_code': lane.status, 'status': LANE_STATUS_MAP[lane.status]} ) -- 2.30.2