3373: split-fastq: Fix regex again
authorPeter Amstutz <peter.amstutz@curoverse.com>
Fri, 8 Aug 2014 20:45:45 +0000 (16:45 -0400)
committerPeter Amstutz <peter.amstutz@curoverse.com>
Fri, 8 Aug 2014 20:45:45 +0000 (16:45 -0400)
crunch_scripts/split-fastq.py

index e2421027771de54787d2261a96f4f2cc45eb3df9..8b80adf6359e34a2ebab9c01442832ba78034333 100755 (executable)
@@ -88,7 +88,7 @@ def splitfastq(p):
             if count % 10000 == 0:
                 print >>sys.stderr, "Record %s at %s" % (count, p[i]["end"])
 
-prog = re.compile(r'(.*?)(_12)?\.fastq(\.gz)?$')
+prog = re.compile(r'(.*?)(_[12])?\.fastq(\.gz)?$')
 
 # Look for fastq files
 for s in inp.all_streams():