-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #144 from Sage-Bionetworks/nf-clinical-release
[GEN-1503] Add nextflow workflow for clinical release
- Loading branch information
Showing
5 changed files
with
58 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
process run_clinical_release { | ||
|
||
container 'sagebionetworks/genie-bpc-pipeline-clinical-release' | ||
secret 'SYNAPSE_AUTH_TOKEN' | ||
debug true | ||
|
||
input: | ||
val previous | ||
val cohort | ||
val production | ||
|
||
output: | ||
stdout | ||
|
||
script: | ||
if (production) { | ||
""" | ||
cd /usr/local/src/myscripts/ | ||
Rscript create_release_files.R -c $cohort -v -s | ||
""" | ||
} | ||
else { | ||
""" | ||
cd /usr/local/src/myscripts/ | ||
Rscript create_release_files.R -c $cohort -v | ||
""" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,10 @@ profiles { | |
memory = 32.GB | ||
cpus = 8 | ||
} | ||
withName: run_clinical_release { | ||
memory = 32.GB | ||
cpus = 8 | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM rstudio/r-base:4.0-bullseye | ||
|
||
WORKDIR /usr/local/src/myscripts | ||
|
||
ENV RENV_VERSION 0.14.0 | ||
# RUN rm /etc/apt/apt.conf.d/default | ||
RUN apt-get update -y && apt-get install -y dpkg-dev zlib1g-dev libssl-dev libffi-dev curl libcurl4-openssl-dev procps | ||
|
||
|
||
RUN R -e "install.packages('remotes', repos = c(CRAN = 'https://cloud.r-project.org'))" | ||
RUN R -e "remotes::install_github('rstudio/renv@${RENV_VERSION}')" | ||
RUN R -e "remotes::install_version('synapser', version = '0.11.7', repos = c('http://ran.synapse.org', 'http://cran.fhcrc.org'))" | ||
|
||
ENV PYTHON /usr/local/lib/R/site-library/PythonEmbedInR/bin/python3.6 | ||
|
||
|
||
COPY . . | ||
|
||
RUN R -e "renv::restore()" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters