From 47c6c7c0e81f0cfbad37dc6119816f3f5935e813 Mon Sep 17 00:00:00 2001 From: Rami Rauch Date: Mon, 4 May 2009 23:12:19 +0000 Subject: [PATCH] fixed: read correctly the Lanes attribute in Track tag for multiple lanes --- htswfrontend/htswfrontend/htsw_reports/libinfopar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htswfrontend/htswfrontend/htsw_reports/libinfopar.py b/htswfrontend/htswfrontend/htsw_reports/libinfopar.py index 8c5f0c5..67e8066 100644 --- a/htswfrontend/htswfrontend/htsw_reports/libinfopar.py +++ b/htswfrontend/htswfrontend/htsw_reports/libinfopar.py @@ -52,8 +52,8 @@ class LibInfoHandlerByFlowCell(ContentHandler): if name == 'Track' and attrs.get('Flowcell',"") == self.searchTerm: self.LanesCount += len(attrs.get('Lane',"")) self.ReadsCount += int(attrs.get('Count',"")) - self.LaneReadsCount[int(attrs.get('Lane',""))-1] += int(attrs.get('Count',"")) - + # this loop is to separate between multiple lanes in one Lane attrbute of a Track tag + for l in attrs.get('Lane',""): self.LaneReadsCount[int(l)-1] += int(attrs.get('Count',"")) except: self.Msg = 'failed parsing xml file' return -- 2.30.2