Skip to content

Commit

Permalink
upgrade modules and moving to different containers
Browse files Browse the repository at this point in the history
  • Loading branch information
toniher committed Oct 11, 2024
1 parent dcc302d commit 816d181
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 58 deletions.
7 changes: 4 additions & 3 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
- Moving modules into modules folder
- Adding nextflow_schema.json
- Review container

* Testing new DSL2 version against old one
* Move parts into subworkflows for clarity if possible
- Testing new DSL2 version against old one
- Move parts into subworkflows for clarity if possible
- Convert params.config to params.yaml
- Include colors into the terminal messages
2 changes: 1 addition & 1 deletion bin/B0_generate_IPA_prot_aln.pl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

### with clustal
if ($aligner=~/clustal/i){
system "clustalw2 $exint -output=gde";
system "clustalw $exint -output=gde";
}
elsif ($aligner=~/MAFFT/i){
system "mafft --auto --thread $cpus --quiet $exint | sed 's/>/%/g' > $root.gde";
Expand Down
43 changes: 0 additions & 43 deletions docker/Dockerfile

This file was deleted.

2 changes: 1 addition & 1 deletion docker/Rscript/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM rocker/r-ver:3.6.3

RUN apt-get -y update && apt-get install -y libnlopt-dev \
RUN apt-get -y update && apt-get install -y libnlopt-dev libxml2-dev libcurl4-openssl-dev \
&& rm -rf /var/lib/apt/lists/*

COPY deps.R /tmp
Expand Down
4 changes: 2 additions & 2 deletions docker/Rscript/deps.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
install.packages('devtools', dependencies=TRUE, repos='cran.rstudio.com/');
require(devtools)
install.packages(c('igraph'), repos='http://cran.us.r-project.org');
install.packages(c('ggplot2'), repos='http://cran.us.r-project.org');
install.packages(c('nloptr'), repos='http://cran.us.r-project.org');
install.packages(c('pbkrtest', 'lme4', 'pbkrtest', 'lme4'), repos='http://cran.us.r-project.org');
install.packages(c('ggpubr', 'cowplot'), repos='http://cran.us.r-project.org');
install.packages(c('hashmap'), repos='http://cran.us.r-project.org');

devtools::install_github('nathan-russell/hashmap')
16 changes: 16 additions & 0 deletions docker/aligners/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM perl:5.24-threaded-buster

ARG MAFFT_VERSION=7.429

RUN apt-get update -y && apt-get install -y build-essential clustalw && rm -rf /var/lib/apt/lists/*

#Installing MAFFT
WORKDIR /tmp
RUN curl -k -L https://mafft.cbrc.jp/alignment/software/mafft-${MAFFT_VERSION}-with-extensions-src.tgz > mafft.tgz
RUN tar -zvxf mafft.tgz
RUN cd mafft-${MAFFT_VERSION}-with-extensions/core;make clean; make; make install; cd ../../; rm mafft.tgz

WORKDIR /

# ENV LC_ALL=en_US.UTF8
# ENV LANG=en_US.UTF8
2 changes: 1 addition & 1 deletion modules/local/exorthist/align_pairs.nf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
process PARSE_IPA_PROT_ALN {
tag { cls_part_file.name }
label 'big_cpus'
label 'aligners'

input:
path blosumfile
Expand Down
16 changes: 9 additions & 7 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ process {
scratch = false
containerOptions = { workflow.containerEngine == "docker" ? '-u $(id -u):$(id -g)': null}

withLabel: big_cpus {
cpus = 2
memory = '5G'
}

withLabel: incr_time_cpus {
errorStrategy = 'retry'
memory = '5G'
Expand All @@ -52,14 +47,21 @@ process {
container = 'quay.io/biocontainers/pandas:1.5.2'
}

withLabel: aligners {
cpus = 2
memory = '5G'
container = 'biocorecrg/exorthist_aligners:2.0.0'
}

withLabel: rscript {
container = 'rocker/r-ver:3.6.3'
container = 'biocorecrg/exorthist_rscript:2.0.0'
}


}

process.container = 'biocorecrg/exon_intron_pipe:0.2'
// process.container = 'biocorecrg/exon_intron_pipe:0.2'
process.container = 'perl:5.24-threaded-buster'
//singularity.enabled = true
singularity.cacheDir = "$baseDir/singularity"

Expand Down

0 comments on commit 816d181

Please sign in to comment.