Skip to content

Commit

Permalink
Make Gemma's appdata directory configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
arteymix committed May 17, 2024
1 parent acf0e84 commit ac1da2a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions example.luigi.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ GEMMA_BASEURL=https://gemma.msl.ubc.ca
SLACK_WEBHOOK_URL=

[rnaseq_pipeline.gemma]
appdata_dir=/space/gemmaData
human_reference_id=hg38_ncbi
mouse_reference_id=mm10_ncbi
rat_reference_id=rn7_ncbi
Expand Down
1 change: 1 addition & 0 deletions rnaseq_pipeline/gemma.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

class gemma(luigi.Config):
task_namespace = 'rnaseq_pipeline'
appdata_dir = luigi.Parameter()
human_reference_id = luigi.Parameter()
mouse_reference_id = luigi.Parameter()
rat_reference_id = luigi.Parameter()
Expand Down
2 changes: 1 addition & 1 deletion rnaseq_pipeline/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ def run(self):
copytree(dirname(self.input().path), dirname(self.output().path), dirs_exist_ok=True)

def output(self):
return luigi.LocalTarget(f'/space/gemmaData/metadata/{self.experiment_id}/MultiQCReports/multiqc_report.html')
return luigi.LocalTarget(join(gemma_cfg.appdata_dir, 'metadata', self.experiment_id, 'MultiQCReports/multiqc_report.html'))

@requires(SubmitExperimentDataToGemma, SubmitExperimentBatchInfoToGemma, SubmitExperimentReportToGemma)
class SubmitExperimentToGemma(TaskWithOutputMixin, WrapperTask):
Expand Down

0 comments on commit ac1da2a

Please sign in to comment.