Skip to content

Commit

Permalink
exit logic for universc module that doesn't support conda
Browse files Browse the repository at this point in the history
 consistent with other modules exit logic for modules that dont support conda
 nf-core#2657
  • Loading branch information
TomKellyGenetics committed Jan 19, 2023
1 parent bf64698 commit 0eb88da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/nf-core/universc/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ process UNIVERSC {
tag "$meta.id"
label 'process_medium'

if (params.enable_conda) {
exit 1, "Conda environments cannot be used when using the Cell Ranger tool. Please use docker or singularity containers."
conda (params.enable_conda ? "hcc::cellranger=3.0.2" : null)
// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
exit 1, "UNIVERSC module does not support Conda. Please use Docker / Singularity / Podman instead."
}
container "tomkellygenetics/universc:1.2.5.1"
if (workflow.containerEngine == 'docker'){
Expand Down

0 comments on commit 0eb88da

Please sign in to comment.