-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathf5ceventalign.nf
27 lines (22 loc) · 983 Bytes
/
f5ceventalign.nf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
* Eventalign using f5c / nanopolish
*/
process f5ceventalign {
publishDir "$params.outdir/eventalign_native_16s", pattern: "native*16s*", mode:'copy'
publishDir "$params.outdir/eventalign_native_23s", pattern: "native*23s*", mode:'copy'
publishDir "$params.outdir/eventalign_ivt_16s", pattern: "ivt*16s*", mode:'copy'
publishDir "$params.outdir/eventalign_ivt_23s", pattern: "ivt*23s*", mode:'copy'
input:
tuple path(fastq), path(index), path(fai), path(gzi), path(readdb)
tuple path(bam), path(bai)
path referencefasta
val flag
output:
path "*_summary.txt", emit: f5csummary_ch
path "*_eventalign.txt", emit: f5ceventalign_ch
val true, emit: f5ceventaligndone_ch
script:
"""
/home/bhargavam/f5c-v0.7/f5c eventalign --scale-events --signal-index --print-read-names --rna -r $fastq -b $bam -g $referencefasta --summary ${fastq.simpleName}_summary.txt --threads 40 > ${fastq.simpleName}_eventalign.txt
"""
}