From: Diane Trout Date: Sat, 29 May 2010 00:08:02 +0000 (+0000) Subject: Do not insert anything into the header if there is no flowcell info. X-Git-Tag: 0.4.3~13 X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=1a89a1b2800cbf5c94702c2826b216e4a5d30102 Do not insert anything into the header if there is no flowcell info. (Previously there was a spurious _) --- diff --git a/scripts/qseq2fastq b/scripts/qseq2fastq index 6967b1e..03970dd 100755 --- a/scripts/qseq2fastq +++ b/scripts/qseq2fastq @@ -20,7 +20,7 @@ class Qseq2Fastq(object): self.nopass_destination = pass_destination self.fastq = True - self.flowcell_id = '' + self.flowcell_id = None self.trim = slice(None) self.reportFilter = False @@ -28,7 +28,10 @@ class Qseq2Fastq(object): """ Return formatted flowcell ID """ - return self.flowcell_id+"_" + if self.flowcell_id is not None: + return self.flowcell_id+"_" + else: + return "" def _convert_illumina_quality(self, illumina_quality): """ @@ -135,7 +138,7 @@ def make_parser(): parser = OptionParser(usage) parser.add_option('-a', '--fasta', default=False, action="store_true", help="produce fasta files instead of fastq files") - parser.add_option('-f', '--flowcell', default='', + parser.add_option('-f', '--flowcell', default=None, help="Set flowcell ID for output file") parser.add_option('-i', '--infile', default=None, help='source tar file (if reading from an archive instead of a directory)')