Skip to content

Commit 2e9afee

Browse files
committed
Add a chemistry option to AlignSingleCellSample
1 parent 6ba8539 commit 2e9afee

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

rnaseq_pipeline/tasks.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,13 +490,16 @@ class AlignSingleCellSample(DynamicWrapperTask):
490490
experiment_id: str
491491
sample_id: str
492492

493+
chemistry: Optional[str] = luigi.OptionalParameter(default=None, positional=False)
494+
493495
def run(self):
494496
fastqs_dir, transcriptome_dir = self.input()
495497
yield CellRangerCount(
496498
id=self.sample_id,
497499
transcriptome_dir=transcriptome_dir,
498500
fastqs_dir=fastqs_dir,
499501
output_dir=self.output().path,
502+
chemistry=self.chemistry,
500503
# TODO: add an avx feature on slurm
501504
scheduler_extra_args=['--constraint', 'thrd64', '--gres=scratch=300G'],
502505
walltime=datetime.timedelta(days=1)
@@ -518,6 +521,7 @@ class AlignSingleCellExperiment(DynamicTaskWithOutputMixin, DynamicWrapperTask):
518521
source: str = luigi.ChoiceParameter(default='local', choices=['gemma', 'geo', 'sra', 'arrayexpress', 'local'],
519522
positional=False)
520523
reference_id: str = luigi.Parameter(positional=False)
524+
chemistry: Optional[str] = luigi.OptionalParameter(default=None, positional=False)
521525

522526
def requires(self):
523527
return DownloadExperiment(self.experiment_id, source=self.source).requires().requires()
@@ -527,7 +531,8 @@ def run(self):
527531
yield [AlignSingleCellSample(experiment_id=self.experiment_id,
528532
sample_id=dst.sample_id,
529533
source=self.source,
530-
reference_id=self.reference_id)
534+
reference_id=self.reference_id,
535+
chemistry=self.chemistry)
531536
for dst in download_sample_tasks]
532537

533538
@requires(AlignSingleCellExperiment, TrimExperiment, QualityControlExperiment)

0 commit comments

Comments
 (0)