Skip to content

Commit 4c7150b

Browse files
committed
'run_qc': create conda environments under analysis directory by default.
If the location for conda environments is not explicitly supplied or set in the configuration then default is now to create within the analysis directory.
1 parent e5b3936 commit 4c7150b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

auto_process_ngs/commands/run_qc_cmd.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,11 @@ def run_qc(ap,projects=None,protocols=None,
243243
if enable_conda is None:
244244
enable_conda = ap.settings.conda.enable_conda
245245
if conda_env_dir is None:
246+
# Use value from configuration
246247
conda_env_dir = ap.settings.conda.env_dir
248+
else:
249+
# Use subdirectory of analysis dir
250+
conda_env_dir = os.path.join(ap.analysis_dir, "__conda", "envs")
247251
# Set scheduler parameters
248252
if poll_interval is None:
249253
poll_interval = ap.settings.general.poll_interval

0 commit comments

Comments
 (0)