diff 0.4.2/cpipes @ 0:082e0091e813 draft default tip

planemo upload
author galaxytrakr
date Fri, 29 May 2026 13:27:47 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/0.4.2/cpipes	Fri May 29 13:27:47 2026 +0000
@@ -0,0 +1,68 @@
+#!/usr/bin/env nextflow
+
+/*
+----------------------------------------------------------------------------------------
+    cpipes/centriflaken
+----------------------------------------------------------------------------------------
+    NAME          : CPIPES
+    DESCRIPTION   : Modular Nextflow pipelines at CFSAN, FDA.
+    GITLAB        : https://xxxxxxxxxx.fda.gov/cfsan-dev/cpipes
+    JIRA          : https://xxxxxxxxxx.fda.gov/jira/projects/CPIPES/
+    CONTRIBUTORS  : Kranti.Konganti@fda.hhs.gov
+----------------------------------------------------------------------------------------
+*/
+
+// Enable DSL 2
+nextflow.enable.dsl = 2
+
+// Default routines for MAIN
+include { pipelineBanner; stopNow; } from "${params.routines}"
+
+// Our banner for CPIPES
+log.info pipelineBanner()
+
+switch ("${params.pipeline}") {
+    case "nanofactory":
+        include { NANOFACTORY } from "${params.workflows}${params.fs}${params.pipeline}"
+        break
+    case "centriflaken":
+        include { CENTRIFLAKEN } from "${params.workflows}${params.fs}${params.pipeline}"
+        break
+    case "centriflaken_hy":
+        include { CENTRIFLAKEN_HY } from "${params.workflows}${params.fs}${params.pipeline}"
+        break
+    case "spades_only":
+        include { SPADES_ONLY } from "${params.workflows}${params.fs}${params.pipeline}"
+        break
+    default:
+        stopNow("PLEASE MENTION A PIPELINE NAME. Ex: --pipeline centriflaken")
+}
+
+/*
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+    RUN ALL WORKFLOWS
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+*/
+
+workflow {
+    switch ("${params.pipeline}") {
+        case "nanofactory":
+            NANOFACTORY()
+            break
+        case "centriflaken":
+            CENTRIFLAKEN()
+            break
+        case "centriflaken_hy":
+            CENTRIFLAKEN_HY()
+            break
+        case "spades_only":
+            SPADES_ONLY()
+            break
+    }
+}
+
+/*
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+    THE END
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+*/