Skip to content

Commit 1666516

Browse files
committed
sample_id_column
1 parent b27e7d6 commit 1666516

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/sequence_processing_pipeline/NuQCJob.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,15 @@ def _process_sample_sheet(self):
379379
raise PipelineError(s)
380380

381381
sample_ids = []
382+
# long_reads use the Sample_Name as the main sample identifier,
383+
# everything else uses Sample_ID; we might want to change this
384+
# in the future for everything to use Sample_Name
385+
sample_id_column = 'Sample_ID'
386+
if self.read_length == 'long':
387+
sample_id_column = 'Sample_Name'
382388
for sample in sheet.samples:
383-
sample_ids.append((sample['Sample_ID'], sample['Sample_Project']))
389+
sample_ids.append(
390+
(sample[sample_id_column], sample['Sample_Project']))
384391

385392
bioinformatics = sheet.Bioinformatics
386393

0 commit comments

Comments
 (0)