Skip to content

Commit

Permalink
additional value check for comma-delimited 'empty' lines in samplesheet
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkinsc committed Oct 24, 2016
1 parent a67ebc9 commit 38b9f30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion illumina.py
Expand Up @@ -528,7 +528,7 @@ def _detect_and_load_sheet(self, infile):
row['row_num'] = str(row_num)
if (self.only_lane is not None and row.get('lane') and self.only_lane != row['lane']):
continue
if row['sample'] and row['barcode_1']:
if ('sample' in row and row['sample']) and ('barcode_1' in row and row['barcode_1']):
self.rows.append(row)
# go back and re-shuffle miseq columns if use_sample_name applies
if (self.use_sample_name and 'sample_name' in header and all(row.get('sample_name') for row in self.rows)):
Expand Down

0 comments on commit 38b9f30

Please sign in to comment.