diff --git a/workflows/deseq2/README.md b/workflows/deseq2/README.md deleted file mode 100644 index 8b68f05954783ac9a6cc39c9861dadd38b90d05f..0000000000000000000000000000000000000000 --- a/workflows/deseq2/README.md +++ /dev/null @@ -1,35 +0,0 @@ -# DESeq2 - -Workflow used for **differential gene expression analysis** - -## DESeq2 docs - -- https://bioconductor.org/packages/release/bioc/html/DESeq2.html - -## Importing kallisto output with tximport - -- https://bioconductor.org/packages/release/bioc/vignettes/tximport/inst/doc/tximport.html#kallisto - -## Run pure script (to test) - -### Install R dependencies for deseq2 - -```R -if (!require("BiocManager", quietly = TRUE)) - install.packages("BiocManager") - -BiocManager::install("DESeq2") -library("DESeq2") - -BiocManager::install("tximport") -library("tximport") - -BiocManager::install("rhdf5") -library("rhdf5") -``` - -## Multi-package containers - -- R and combinations of library dependencies are available as multi-package containers from [BioContainers](https://github.com/BioContainers/multi-package-containers) -- Searched for `repo:BioContainers/multi-package-containers deseq2 tximport rhdf5` -- and found `quay.io/biocontainers/mulled-v2-05fd88b9ac812a9149da2f2d881d62f01cc49835:a10f0e3a7a70fc45494f8781d33901086d2214d0-0` :tada: diff --git a/workflows/deseq2/workflow.cwl b/workflows/deseq2/workflow.cwl index 993371903c5258fdc98b03740978714854530c22..0f1d68dfbb3bf401270f8f0b49a4706f0f571455 100644 --- a/workflows/deseq2/workflow.cwl +++ b/workflows/deseq2/workflow.cwl @@ -1,7 +1,8 @@ #!/usr/bin/env cwl-runner doc: | - DESeq2 example workflow + DESeq2 example workflow for **differential gene expression analysis** + This workflow runs DESeq2 on the output of the kallisto workflow and the metadata file. It runs an R script, deseq2.R, which ideally should be split into three sub scripts and accordingly three workflow steps @@ -9,6 +10,17 @@ doc: | 2. Prep / run deseq2 3. Plot results + ## DESeq2 docs: + https://bioconductor.org/packages/release/bioc/html/DESeq2.html + + ## Importing kallisto output with tximport + https://bioconductor.org/packages/release/bioc/vignettes/tximport/inst/doc/tximport.html#kallisto + + ## Multi-package containers + - R and combinations of library dependencies are available as multi-package containers from [BioContainers](https://github.com/BioContainers/multi-package-containers) + - Searched for `repo:BioContainers/multi-package-containers deseq2 tximport rhdf5` + - and found `quay.io/biocontainers/mulled-v2-05fd88b9ac812a9149da2f2d881d62f01cc49835:a10f0e3a7a70fc45494f8781d33901086d2214d0-0` :tada: + cwlVersion: v1.2 class: CommandLineTool hints: diff --git a/workflows/shiny/Dockerfile b/workflows/shiny/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..01b85ffdf2b66e9bd1b90733ae43f980cb543749 --- /dev/null +++ b/workflows/shiny/Dockerfile @@ -0,0 +1,13 @@ +# Use an official R base image +FROM rocker/shiny:4.4 + +# Install R packages +RUN R -q -e 'install.packages("ggplot2")' + +EXPOSE 3838 + +# Set the working directory to /app +WORKDIR /app + +# Default command to run when the container starts +CMD ["R"] diff --git a/workflows/shiny/shiny-app.R b/workflows/shiny/shiny-app.R index 4c020248813f9dfe57180989361fa246103f07a7..4d4275f1d6d43a7f6ff232e5a2855e2791cce135 100644 --- a/workflows/shiny/shiny-app.R +++ b/workflows/shiny/shiny-app.R @@ -3,7 +3,6 @@ # Load libraries library(shiny) -library(RColorBrewer) library(ggplot2) # CLI arguments @@ -65,4 +64,5 @@ server <- function(input, output, session) { # Launch app -shinyApp(ui, server) +sa <- shinyApp(ui, server) +runApp(sa, port = 3838) diff --git a/workflows/shiny/workflow.cwl b/workflows/shiny/workflow.cwl index 2e80423e1801af7875f5917f15ff4f704afa2c9e..00d0f26f62c10679c181f711ea54aa69f4f481ba 100644 --- a/workflows/shiny/workflow.cwl +++ b/workflows/shiny/workflow.cwl @@ -4,8 +4,9 @@ cwlVersion: v1.2 class: CommandLineTool # hints: -# DockerRequirement: -# dockerPull: +# DockerRequirement: +# dockerImageId: "shiny" +# dockerFile: {$include: "Dockerfile"} requirements: - class: InitialWorkDirRequirement diff --git a/workflows/sleuth/Dockerfile b/workflows/sleuth/Dockerfile deleted file mode 100644 index 39a6609301f9954da43bf426be379cfda98e5f85..0000000000000000000000000000000000000000 --- a/workflows/sleuth/Dockerfile +++ /dev/null @@ -1,29 +0,0 @@ -# Use an official R base image -FROM rocker/r-ver:4.1.3 - -# Install system dependencies for R packages and other utilities -RUN apt-get update && apt-get install -y \ - libcurl4-openssl-dev \ - libssl-dev \ - libxml2-dev \ - git \ - build-essential \ - && rm -rf /var/lib/apt/lists/* - -# Install BiocManager -RUN R -e "install.packages('BiocManager')" - -# Install Bioconductor version 3.14 -RUN R -e "BiocManager::install(version = '3.11')" - -# Install sleuth from Bioconductor -RUN R -e "BiocManager::install('sleuth')" - -# Install other necessary CRAN packages -RUN R -e "install.packages('jsonlite', repos='https://cran.r-project.org')" - -# Set the working directory to /app -WORKDIR /app - -# Default command to run when the container starts -CMD ["R"] diff --git a/workflows/sleuth/workflow.cwl b/workflows/sleuth/workflow.cwl index 8163e27b260d56b501b3e5f0ad8a95ffb4586649..4a8add08556780341d42af5b5488691ea8608107 100644 --- a/workflows/sleuth/workflow.cwl +++ b/workflows/sleuth/workflow.cwl @@ -4,9 +4,6 @@ cwlVersion: v1.2 class: CommandLineTool hints: - # DockerRequirement: - # dockerImageId: "sleuth" - # dockerFile: {$include: "Dockerfile"} DockerRequirement: dockerPull: quay.io/biocontainers/mulled-v2-fdd016122f200fdc6dc30f6ea2fd0000e8067dff:f9531f6ac1f44332eff70b5912d7d5f3ebe8df38-0