Skip to content

Commit 212092d

Browse files
committed
'run_qc': fix default location of conda envs in previous commit.
Conda envs in the 'run_qc' command were defaulting to the working directory for the pipeline execution (rather than the analysis directory as originally intended).
1 parent 4c7150b commit 212092d

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

auto_process_ngs/commands/run_qc_cmd.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,11 @@ def run_qc(ap,projects=None,protocols=None,
244244
enable_conda = ap.settings.conda.enable_conda
245245
if conda_env_dir is None:
246246
# Use value from configuration
247-
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")
247+
if ap.settings.conda.env_dir is not None:
248+
conda_env_dir = ap.settings.conda.env_dir
249+
else:
250+
# Use subdirectory of analysis dir
251+
conda_env_dir = os.path.join(ap.analysis_dir, "__conda", "envs")
251252
# Set scheduler parameters
252253
if poll_interval is None:
253254
poll_interval = ap.settings.general.poll_interval

0 commit comments

Comments
 (0)