Skip to content
Snippets Groups Projects
Verified Commit 09e2b2fc authored by Laurent Modolo's avatar Laurent Modolo
Browse files

in2p3 test: make singularity default for ccin2p3

parent 883c3c3e
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,6 @@ PIPELINE=${SCRATCH}/nextflow/src/nf_modules/kallisto/indexing.nf ...@@ -24,6 +24,6 @@ PIPELINE=${SCRATCH}/nextflow/src/nf_modules/kallisto/indexing.nf
# change to your project / pipeline ! # change to your project / pipeline !
CONFIG=${SCRATCH}/nextflow/src/nf_modules/kallisto/indexing.config CONFIG=${SCRATCH}/nextflow/src/nf_modules/kallisto/indexing.config
${NF} ${PIPELINE} -c ${CONFIG} -profile ccin2p3_singularity \ ${NF} ${PIPELINE} -c ${CONFIG} -profile ccin2p3 \
--fasta "${SCRATCH}/nextflow/data/tiny_dataset/fasta/tiny_v2.fasta" \ --fasta "${SCRATCH}/nextflow/data/tiny_dataset/fasta/tiny_v2.fasta" \
-w "${SCRATCH}" -ansi-log false -w "${SCRATCH}"
...@@ -33,7 +33,7 @@ profiles { ...@@ -33,7 +33,7 @@ profiles {
} }
} }
} }
ccin2p3 { ccin2p3_conda {
process{ process{
withName: index_fasta { withName: index_fasta {
beforeScript = "source /sps/lbmc/common/miniconda3/init.sh" beforeScript = "source /sps/lbmc/common/miniconda3/init.sh"
...@@ -49,19 +49,18 @@ profiles { ...@@ -49,19 +49,18 @@ profiles {
} }
} }
} }
ccin2p3_singularity { ccin2p3 {
singularity.enabled = true singularity.enabled = true
singularity.runOptions = "--bind /pbs,/sps,/scratch" singularity.runOptions = "--bind /pbs,/sps,/scratch"
process{ process{
withName: index_fasta { withName: index_fasta {
beforeScript = "export SINGULARITY_BIND=\"/sps,/scratch:/var/singularity/mnt/\""
container = "/sps/lbmc/common/singularity/kallisto:0.44.0.img" container = "/sps/lbmc/common/singularity/kallisto:0.44.0.img"
scratch = true scratch = true
stageInMode = "copy" stageInMode = "copy"
stageOutMode = "rsync" stageOutMode = "rsync"
executor = "sge" executor = "sge"
clusterOptions = "-P P_lbmc -l os=cl7 -l sps=1 -r n \ clusterOptions = "-P P_lbmc -l os=cl7 -l sps=1 -r n \
-o /sps/lbmc/lmodolo/logs/ -e /sps/lbmc/lmodolo/logs/ -M laurent.modolo@ens-lyon.fr -m beas" -o ~/logs/ -e ~/logs/"
cpus = 1 cpus = 1
queue = 'huge' queue = 'huge'
} }
......
...@@ -10,7 +10,6 @@ Channel ...@@ -10,7 +10,6 @@ Channel
process index_fasta { process index_fasta {
tag "$fasta.baseName" tag "$fasta.baseName"
publishDir "results/mapping/index/", mode: 'copy' publishDir "results/mapping/index/", mode: 'copy'
echo true
input: input:
file fasta from fasta_file file fasta from fasta_file
...@@ -21,10 +20,8 @@ process index_fasta { ...@@ -21,10 +20,8 @@ process index_fasta {
script: script:
""" """
pwd
kallisto index -k 31 --make-unique -i ${fasta.baseName}.index ${fasta} \ kallisto index -k 31 --make-unique -i ${fasta.baseName}.index ${fasta} \
2> ${fasta.baseName}_kallisto_report.txt 2> ${fasta.baseName}_kallisto_report.txt
pwd
""" """
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment