From d6b59bfd563126964d692de882427f5246713392 Mon Sep 17 00:00:00 2001
From: nservant <nicolas.servant@curie.fr>
Date: Mon, 19 Dec 2022 17:48:28 +0100
Subject: [PATCH] [MODIF] fix lint warning

---
 modules/local/split_cooler_dump.nf | 3 +++
 nextflow.config                    | 3 ++-
 nextflow_schema.json               | 6 ++++++
 3 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/modules/local/split_cooler_dump.nf b/modules/local/split_cooler_dump.nf
index b7272e8..fbe1428 100644
--- a/modules/local/split_cooler_dump.nf
+++ b/modules/local/split_cooler_dump.nf
@@ -14,6 +14,9 @@ process SPLIT_COOLER_DUMP {
     tuple val(meta), path("*.txt"), emit: matrix
     path ("versions.yml"), emit: versions
 
+    when:
+    task.ext.when == null || task.ext.when
+
     script:
     def args = task.ext.args ?: ''
     prefix = bedpe.toString() - ~/(\_balanced)?.bedpe$/
diff --git a/nextflow.config b/nextflow.config
index aad6d92..32176ea 100644
--- a/nextflow.config
+++ b/nextflow.config
@@ -110,7 +110,8 @@ params {
     version                    = false
     validate_params            = true
     show_hidden_params         = false
-    schema_ignore_params       = 'genomes'
+    schema_ignore_params       = 'genomes,digest'
+    enable_conda               = false
 
 
     // Config options
diff --git a/nextflow_schema.json b/nextflow_schema.json
index 96e9e09..8bce173 100644
--- a/nextflow_schema.json
+++ b/nextflow_schema.json
@@ -520,6 +520,12 @@
                     "description": "Show all params when using `--help`",
                     "hidden": true,
                     "help_text": "By default, parameters set as _hidden_ in the schema are not shown on the command line when a user runs with `--help`. Specifying this option will tell the pipeline to show all parameters."
+                },
+		"enable_conda": {
+                    "type": "boolean",
+                    "description": "Run this workflow with Conda. You can also use '-profile conda' instead of providing this parameter.",
+                    "hidden": true,
+                    "fa_icon": "fas fa-bacon"
                 }
             }
         }
-- 
GitLab