Skip to content

Commit 89c62a7

Browse files
committed
cli.run_qc.py: make conda environments under working directory by default.
Updates the 'run_qc.py' standalone pipeline runner to create conda environments under the working directory by default.
1 parent c5f7393 commit 89c62a7

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

auto_process_ngs/cli/run_qc.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1350,6 +1350,12 @@ def main(argv=None):
13501350
if not working_dir:
13511351
working_dir = os.path.join(project_dir,'__run_qc')
13521352

1353+
# Location for conda environments
1354+
conda_env_dir = args.conda_env_dir
1355+
if conda_env_dir is None:
1356+
# Explicitly set to a subdirectory of the working directory
1357+
conda_env_dir = os.path.join(working_dir, "__conda", "envs")
1358+
13531359
# Set up and run the QC pipeline
13541360
announce("Running QC pipeline")
13551361
runqc = QCPipeline()
@@ -1394,7 +1400,7 @@ def main(argv=None):
13941400
default_runner=default_runner,
13951401
envmodules=envmodules,
13961402
enable_conda=enable_conda,
1397-
conda_env_dir=args.conda_env_dir,
1403+
conda_env_dir=conda_env_dir,
13981404
working_dir=working_dir,
13991405
force_star_index=force_star_index,
14001406
force_gtf_annotation=force_gtf_annotation,
@@ -1413,6 +1419,7 @@ def main(argv=None):
14131419
out_dir=out_dir,
14141420
zip_outputs=True,
14151421
multiqc=(not args.no_multiqc),
1422+
conda_env_dir=conda_env_dir,
14161423
force=True,
14171424
runner=runners['report_runner'])
14181425

0 commit comments

Comments
 (0)