Skip to content

Commit 8b9af21

Browse files
authored
Merge pull request #25 from Juke34/reditools3
Reditools3
2 parents 92800e2 + d294049 commit 8b9af21

File tree

6 files changed

+24
-20
lines changed

6 files changed

+24
-20
lines changed

config/ressources/hpc.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,8 @@ process {
3232
cpus = 6
3333
time = '4d'
3434
}
35+
withName: 'bamutil' {
36+
cpus = 8
37+
memory = '48G'
38+
}
3539
}

config/softwares.config

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ process {
1010
}
1111
withLabel: 'bowtie2' {
1212
container = 'quay.io/biocontainers/bowtie2:2.5.1--py38he00c5e5_2'
13-
}
13+
}
1414
withLabel: 'bwa' {
1515
container = 'quay.io/biocontainers/bwa:0.7.3a--he4a0461_9'
1616
}
@@ -24,20 +24,20 @@ process {
2424
container = 'quay.io/biocontainers/hisat2:2.2.1--hdbdd923_6'
2525
}
2626
withLabel: "jacusa2" {
27-
container = singularity.enabled ? "${sifPath}/jacusa2.sif" : "jacusa2"
27+
container = singularity.enabled ? "${params.sifPath}/jacusa2.sif" : "jacusa2"
2828
containerOptions = '--ulimit nofile=1024:1024' // Limit number of file descriptors to avoid out of memory errors
2929
}
3030
withLabel: 'minimap2' {
3131
container = 'quay.io/biocontainers/minimap2:2.26--he4a0461_1'
3232
}
3333
withLabel: 'pigz' {
3434
container = 'quay.io/biocontainers/pigz:2.8'
35-
}
35+
}
3636
withLabel: "reditools2" {
37-
container = singularity.enabled ? "${sifPath}/reditools2.sif" : "reditools2"
37+
container = singularity.enabled ? "${params.sifPath}/reditools2.sif" : "reditools2"
3838
}
3939
withLabel: "reditools3" {
40-
container = singularity.enabled ? "${sifPath}/reditools3.sif" : "reditools3"
40+
container = singularity.enabled ? "${params.sifPath}/reditools3.sif" : "reditools3"
4141
}
4242
withLabel: 'rsem' {
4343
container = 'quay.io/biocontainers/rsem:1.3.3--pl5321h0033a41_7'
@@ -49,12 +49,12 @@ process {
4949
container = 'quay.io/biocontainers/samtools:1.3.1--h0cf4675_11'
5050
}
5151
withLabel: "sapin" {
52-
container = singularity.enabled ? "${sifPath}/sapin.sif" : "sapin"
52+
container = singularity.enabled ? "${params.sifPath}/sapin.sif" : "sapin"
5353
}
5454
withLabel: 'multiqc' {
5555
container = 'quay.io/biocontainers/multiqc:1.14--pyhdfd78af_0'
5656
}
5757
withLabel: "pluviometer" {
58-
container = singularity.enabled ? "${sifPath}/pluviometer.sif" : "pluviometer"
58+
container = singularity.enabled ? "${params.sifPath}/pluviometer.sif" : "pluviometer"
5959
}
6060
}

modules/bamutil.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ process bamutil_clipoverlap {
1313
script:
1414

1515
"""
16-
bam clipOverlap --storeOrig CG --poolSize 5000000 --in ${bam} --out ${bam}_clipoverlap.bam --stats > ${meta.id}_bamutil_clipoverlap.log
16+
bam clipOverlap --storeOrig CG --poolSize 5000000 --in ${bam} --out ${bam}_clipoverlap.bam --stats --excludeFlags 0x37 > ${meta.id}_bamutil_clipoverlap.log
1717
"""
1818

1919
}

modules/reditools3.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ process reditools3 {
3131
base_name = bam.BaseName
3232

3333
"""
34-
python -m reditools analyze ${bam} --reference ${genome} --strand ${strand_orientation} --output-file ${base_name}.site_edits_reditools3.txt --threads ${task.cpus} --verbose > ${base_name}.reditools3.log
34+
python -m reditools analyze ${bam} --reference ${genome} --strand ${strand_orientation} --output-file ${base_name}.site_edits_reditools3.txt --threads ${task.cpus} --verbose &> ${base_name}.reditools3.log
3535
"""
3636
}

nextflow.config

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@ includeConfig "$baseDir/config/ressources/base.config"
2121
profiles {
2222

2323
itrop {
24-
executor {
25-
name = 'slurm'
26-
}
2724
process {
28-
scratch = '/scratch-ib'
29-
clusterOptions = "--constraint=infiniband"
25+
executor = 'slurm'
26+
queue = 'normal'
27+
scratch = '/scratch-ib'
28+
clusterOptions = "--constraint=infiniband"
3029
}
30+
3131
singularity.enabled = true
32-
// singularity.envWhitelist = '' // Comma separated list of environment variable names to be included in the container environment.
32+
params.sifPath = "${baseDir}/sif_images"
33+
// singularity.envWhitelist = '' // Comma separated list of environment variable names to be included in the container environment.
3334
includeConfig "$baseDir/config/softwares.config"
3435
includeConfig "$baseDir/config/ressources/hpc.config"
35-
scratch = '/scratch-ib'
3636
}
3737

3838
debug { process.beforeScript = 'env' }

rain.nf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,10 @@ if ( ! (params.edit_site_tool in edit_site_tools) ){
176176

177177
// check RAIN profile - /!\ profile must be sync with AliNe profile as much as possible
178178
if (
179-
workflow.profile.contains('singularity') ||
180-
workflow.profile.contains('docker')
179+
workflow.containerEngine == "singularity" ||
180+
workflow.containerEngine == "docker"
181181
) { "executer selected" }
182-
else { exit 1, "No executer selected: -profile docker/singularity"}
182+
else { exit 1, "No executer selected: please use a profile activating docker or singularity (e.g. -profile docker/singularity/itrop)"}
183183

184184
// check AliNE profile
185185
def aline_profile_list=[]
@@ -540,4 +540,4 @@ workflow.onComplete {
540540
=======================================================
541541
${c_reset}
542542
"""
543-
}
543+
}

0 commit comments

Comments
 (0)