Skip to content

Commit

Permalink
ensure read_structure override works for CheckIlluminaDirectory (#1007)
Browse files Browse the repository at this point in the history
ensure read_structure override works for CheckIlluminaDirectory during demux; error out if check fails
  • Loading branch information
tomkinsc authored Mar 27, 2020
1 parent e758b89 commit e144969
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions illumina.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def main_illumina_demux(args):
tools.picard.CheckIlluminaDirectoryTool().execute(
illumina.get_BCLdir(),
args.lane,
runinfo.get_read_structure(),
read_structure,
link_locs=link_locs
)
except subprocess.CalledProcessError as e:
Expand All @@ -159,9 +159,11 @@ def main_illumina_demux(args):
tools.picard.CheckIlluminaDirectoryTool().execute(
illumina.get_BCLdir(),
args.lane,
runinfo.get_read_structure(),
read_structure,
link_locs=link_locs
)
else:
log.error("CheckIlluminaDirectory failed for %s", illumina.get_BCLdir())

multiplexed_samples = True if 'B' in read_structure else False

Expand Down

0 comments on commit e144969

Please sign in to comment.