Skip to content

Commit 2b3a656

Browse files
authored
Merge pull request #1095 from fls-bioinformatics-core/make_fastqs-10x-use-illumina-indexes
'make_fastqs': enable `10x_chromium_sc` and `10x_visium` Fastq generation protocols to use sample sheets with Illumina indexes
2 parents b86e4a8 + 7e1fa3a commit 2b3a656

7 files changed

Lines changed: 741 additions & 406 deletions

File tree

auto_process_ngs/bcl2fastq/pipeline.py

Lines changed: 207 additions & 225 deletions
Large diffs are not rendered by default.

auto_process_ngs/pipeliner.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
#
33
# pipeliner.py: utilities for building simple pipelines of tasks
4-
# Copyright (C) University of Manchester 2017-2023 Peter Briggs
4+
# Copyright (C) University of Manchester 2017-2025 Peter Briggs
55
#
66
"""
77
Module providing utility classes and functions for building simple
@@ -1927,8 +1927,13 @@ def rank_tasks(self):
19271927
# lists of the required task ids as values
19281928
required = dict()
19291929
for task_id in self.task_list():
1930-
required[task_id] = [t.id()
1931-
for t in self.get_task(task_id)[1]]
1930+
try:
1931+
required[task_id] = [t.id()
1932+
for t in self.get_task(task_id)[1]]
1933+
except KeyError as ex:
1934+
raise PipelineError(f"Error ranking tasks: task with ID "
1935+
f"'{task_id}' wasn't added to the "
1936+
f"pipeline?")
19321937
# Rank the task ids
19331938
ranks = list()
19341939
while required:

auto_process_ngs/test/bcl2fastq/pipeline/test_10x_atac.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ def test_makefastqs_10x_atac_protocol_120(self):
3636
Adapter,CTGTCTCTTATACACATCT
3737
3838
[Data]
39-
Sample_ID,Sample_Name,Sample_Plate,Sample_Well,I7_Index_ID,index,Sample_Project,Description
40-
smpl1,smpl1,,,A001,SI-NA-A1,10xGenomics,
41-
smpl2,smpl2,,,A005,SI-NA-B1,10xGenomics,
39+
Sample_ID,Sample_Name,Sample_Plate,Sample_Well,I7_Index_ID,index,I5_Index_ID,index2,Sample_Project,Description
40+
smpl1,smpl1,,,A001,SI-NA-A1,A001,SI-NA-A1,10xGenomics,
41+
smpl2,smpl2,,,A005,SI-NA-B1,A005,SI-NA-B1,10xGenomics,
4242
"""
4343
sample_sheet = os.path.join(self.wd,"SampleSheet.csv")
4444
with open(sample_sheet,'w') as fp:
@@ -137,9 +137,9 @@ def test_makefastqs_10x_atac_protocol_200(self):
137137
Adapter,CTGTCTCTTATACACATCT
138138
139139
[Data]
140-
Sample_ID,Sample_Name,Sample_Plate,Sample_Well,I7_Index_ID,index,Sample_Project,Description
141-
smpl1,smpl1,,,A001,SI-NA-A1,10xGenomics,
142-
smpl2,smpl2,,,A005,SI-NA-B1,10xGenomics,
140+
Sample_ID,Sample_Name,Sample_Plate,Sample_Well,I7_Index_ID,index,I5_Index_ID,index2,Sample_Project,Description
141+
smpl1,smpl1,,,A001,SI-NA-A1,A001,SI-NA-A1,10xGenomics,
142+
smpl2,smpl2,,,A005,SI-NA-B1,A005,SI-NA-B1,10xGenomics,
143143
"""
144144
sample_sheet = os.path.join(self.wd,"SampleSheet.csv")
145145
with open(sample_sheet,'w') as fp:

0 commit comments

Comments
 (0)