Skip to content

Commit

Permalink
fix forward and reverse matching
Browse files Browse the repository at this point in the history
  • Loading branch information
katholt committed Sep 26, 2013
1 parent 3afab4e commit 3654a0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/srst2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 3654a0b

Please sign in to comment.