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

singularity test at in2p3

parent 21a8f8b8
No related branches found
No related tags found
No related merge requests found
#! /usr/local/bin/bash -l
#####################################
# job script example with GE options
#####################################
#$ -q demon
#$ -l demon=1
#$ -P P_lbmc
#$ -N nf_pipe
#$ -o /sps/lbmc/<user>/logs/ # change to your username !
#$ -e /sps/lbmc/<user>/logs/ # change to your username !
#$ -r n # relaunch y/n
#$ -M <email>@ens-lyon.fr # change to your mail !
#$ -m be ## send an email when the job starts and ends
#$ -l os=cl7 ## choose OS
#$ -l sps=1 ## acces /sps directory
#####################################
NF_VERSION=19.04
NF=/pbs/throng/lbmc/cl7/nextflow/${NF_VERSION}/nextflow
# change to your username
SCRATCH=/sps/lbmc/lmodolo/
# change to your project / pipeline !
PIPELINE=${SCRATCH}/nextflow/src/nf_modules/kallisto/indexing.nf
# change to your project / pipeline !
CONFIG=${SCRATCH}/nextflow/src/nf_modules/kallisto/indexing.config
${NF} ${PIPELINE} -c ${CONFIG} -profile ccin2p3 \
--fasta "${SCRATCH}/<project>/data/fasta" \
-w "${SCRATCH}"
......@@ -49,4 +49,20 @@ profiles {
}
}
}
ccin2p3_singularity {
singularity.enabled = true
process{
withName: index_fasta {
container = "/sps/lbmc/common/singularity/kallisto:0.44.0.img"
scratch = true
stageInMode = "copy"
stageOutMode = "rsync"
executor = "sge"
clusterOptions = "-P P_lbmc -l os=cl7 -l sps=1 -r n \
-o ~/logs/ -e ~/logs/"
cpus = 1
queue = 'huge'
}
}
}
}
......@@ -10,6 +10,7 @@ Channel
process index_fasta {
tag "$fasta.baseName"
publishDir "results/mapping/index/", mode: 'copy'
echo true
input:
file fasta from fasta_file
......@@ -20,8 +21,10 @@ process index_fasta {
script:
"""
pwd
kallisto index -k 31 --make-unique -i ${fasta.baseName}.index ${fasta} \
2> ${fasta.baseName}_kallisto_report.txt
pwd
"""
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment