From 76126174c7e6d441f508d21bc2b830ee7cae9a90 Mon Sep 17 00:00:00 2001
From: Nicolas Servant <nicolas.servant@curie.fr>
Date: Mon, 24 May 2021 18:42:56 +0200
Subject: [PATCH] Update nextflow_schema.json

Add patern for all comma separated string options
---
 nextflow_schema.json | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/nextflow_schema.json b/nextflow_schema.json
index a6bead5..86e10ce 100644
--- a/nextflow_schema.json
+++ b/nextflow_schema.json
@@ -227,6 +227,7 @@
             "properties": {
                 "bin_size": {
                     "type": "string",
+                    "pattern": "^(\d+)(,\d+)*$",
                     "default": "'1000000,500000'",
                     "description": "Resolution to build the maps (comma separated)"
                 },
@@ -268,6 +269,7 @@
             "properties": {
                 "res_dist_decay": {
                     "type": "string",
+                    "pattern": "^(\d+)(,\d+)*$",
                     "default": "1000000",
                     "description": "Resolution to build count/distance plot"
                 },
@@ -278,11 +280,13 @@
                 },
                 "res_tads": {
                     "type": "string",
+                    "pattern": "^(\d+)(,\d+)*$",
                     "default": "40000,20000",
                     "description": "Resolution to run TADs callers (comma separated)"
                 },
                 "res_compartments": {
                     "type": "string",
+                    "pattern": "^(\d+)(,\d+)*$",
                     "default": "250000",
                     "description": "Resolution for compartments calling"
                 }
-- 
GitLab