Convert reads to an integer, if if it was a float in the xml.
authorDiane Trout <diane@ghic.org>
Fri, 20 Mar 2015 23:31:53 +0000 (16:31 -0700)
committerDiane Trout <diane@ghic.org>
Fri, 20 Mar 2015 23:31:53 +0000 (16:31 -0700)
Some versions of the pipeline include a trailing .0 for read length,
this made python 3s parser unhappy. so convert to a float and then
truncate to work around the type issue.

htsworkflow/pipelines/eland.py

index 3298ae4bf87080314642e1b20dfe3f05519d18ae..39030fad842f3415d8f29cc3f4ed463a630d0d78 100644 (file)
@@ -620,7 +620,7 @@ class SequenceLane(ResultLane):
             elif tag == END.lower():
                 self.end = int(element.text)
             elif tag == READS.lower():
-                self._reads = int(element.text)
+                self._reads = int(float(element.text))
             elif tag == SequenceLane.SEQUENCE_TYPE.lower():
                 self.sequence_type = lookup_sequence_type.get(element.text, None)
             else: