From 3654a0b9fd43f12bcead1502f814f964a4918ba3 Mon Sep 17 00:00:00 2001 From: Kat Holt Date: Thu, 26 Sep 2013 13:59:34 +1000 Subject: [PATCH] fix forward and reverse matching --- scripts/srst2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/srst2.py b/scripts/srst2.py index 67428ee..eb1e31d 100644 --- a/scripts/srst2.py +++ b/scripts/srst2.py @@ -781,13 +781,13 @@ def read_file_sets(args): m=re.match("(.*)(_S.*)(_L.*)(_R.*)(_.*)", file_name_before_ext) if m==None: # not default Illumina file naming format, expect simple/ENA format - m=re.match("(.*)("+args.forward+")",file_name_before_ext) + m=re.match("(.*)("+args.forward+")$",file_name_before_ext) if m!=None: # store as forward read (baseName,read) = m.groups() forward_reads[baseName] = fastq else: - m=re.match("(.*)("+args.reverse+")",file_name_before_ext) + m=re.match("(.*)("+args.reverse+")$",file_name_before_ext) if m!=None: # store as reverse read (baseName,read) = m.groups()