Skip to content

Commit dd9c282

Browse files
Fixed hite
1 parent 32abbf6 commit dd9c282

2 files changed

Lines changed: 41 additions & 22 deletions

File tree

conf/modules.config

Lines changed: 40 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -308,31 +308,17 @@ process {
308308

309309
withName: 'HITE' {
310310
ext.args = '--annotate 1'
311+
containerOptions = {
312+
(workflow.containerEngine == 'singularity' || workflow.containerEngine == 'apptainer' ) ?
313+
"--bind \$TMPDIR:\$TMPDIR" :
314+
"--volume \$TMPDIR:\$TMPDIR}"
315+
}
311316
publishDir = [
312-
path: { "${params.outdir}/hite" },
313-
mode: params.publish_dir_mode,
314-
enable: false
317+
path: { "${params.outdir}/hite/${meta.id}" },
318+
mode: params.publish_dir_mode
315319
]
316320
}
317321

318-
// withName: 'REPEATMASKER_REPEATMASKER' {
319-
// ext.args = { params.species ? "-species ${params.species}" : ''}
320-
// containerOptions = {
321-
// if (params.famdb_library) {
322-
// workflow.containerEngine == 'docker' ? // If docker is used, mount the famdb library using --volume
323-
// "--volume ${params.famdb_library}:/opt/RepeatMasker/Libraries/famdb --env LIBDIR=/opt/RepeatMasker/Libraries" :
324-
// (workflow.containerEngine == 'singularity' || workflow.containerEngine == 'apptainer' ) ? // If singularity or apptainer is used, mount the famdb library using --bind
325-
// "--bind ${params.famdb_library}:/opt/RepeatMasker/Libraries/famdb --env LIBDIR=/opt/RepeatMasker/Libraries" : ''
326-
// } else {
327-
// ''
328-
// }
329-
// }
330-
// publishDir = [
331-
// path: { "${params.outdir}/repeatmasker" },
332-
// mode: params.publish_dir_mode,
333-
// ]
334-
// }
335-
336322

337323
withName: 'CDHIT_CDHITEST' {
338324
ext.args = '-d 0 -aS 0.8 -c 0.8 -G 0 -g 1 -b 500 -r 1'
@@ -343,4 +329,37 @@ process {
343329
]
344330
}
345331

332+
withName: 'FAMDB_PY' {
333+
publishDir = [
334+
path: { "${params.outdir}/famdb.py" },
335+
mode: params.publish_dir_mode,
336+
enable: false
337+
]
338+
}
339+
340+
withName: 'REPEATMODELER_BUILDDATABASE' {
341+
publishDir = [
342+
path: { "${params.outdir}/repeatmodeler/buildb" },
343+
mode: params.publish_dir_mode,
344+
enable: false
345+
]
346+
}
347+
348+
withName: 'REPEATMODELER_REPEATMODELER' {
349+
publishDir = [
350+
path: { "${params.outdir}/repeatmodeler/repeatmodeler/${meta.id}" },
351+
mode: params.publish_dir_mode,
352+
enable: false
353+
]
354+
}
355+
356+
withName: 'REPEATMASKER_REPEATMASKER' {
357+
publishDir = [
358+
path: { "${params.outdir}/repeatmasker/${meta.id}" },
359+
mode: params.publish_dir_mode,
360+
//enable: false
361+
]
362+
}
363+
364+
346365
}

modules/local/hite/main.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ process HITE {
4141
--genome \${newpath} \\
4242
--out_dir \${mydir}/${prefix}_hite_results \\
4343
--thread ${task.cpus} \\
44-
--work_dir \$TMPDIR
44+
--work_dir \$TMPDIR \\
4545
$args
4646
4747
cat <<-END_VERSIONS > \${mydir}/versions.yml

0 commit comments

Comments
 (0)