-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate_bloom.nf
49 lines (34 loc) · 1.08 KB
/
create_bloom.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/env nextflow
nextflow.enable.dsl=2
/* ======================================================================================================
* HELP MENU
* ======================================================================================================
*/
line="=".multiply(100)
ver="qcflow-rnaseq v1.0.0"
outdir = "results"
// General params
help = params.help
outdir = params.output_dir
fasta_dir = params.input_fasta
//-------------------------------------------------------------------------------------------------------
// Workflow
samples = Channel.fromPath("${fasta_dir}")
.map { tuple( it.getBaseName(), it ) }
process create_bf {
label 'bbt'
tag {"bbt-make: ${sample_id}"}
publishDir "${outdir}/bbt-filters/", mode: 'copy', overwrite: true
input:
tuple val(sample_id), path(fasta_file)
output:
path("${sample_id}.bf")
path("${sample_id}.txt")
script:
"""
biobloommaker -d -p ${sample_id} -f 0.001 ${fasta_file}
"""
}
workflow {
create_bf(samples)
}