forked from Rotholandus/crg-course-nov16
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rna-ex2.nf
39 lines (32 loc) · 957 Bytes
/
rna-ex2.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
/*
* Defines some parameters in order to specify the refence genomes
* and read pairs by using the command line options
*/
params.reads = "$baseDir/data/ggal/reads/ggal_gut_{1,2}.fq"
params.annot = "$baseDir/data/ggal/annotation.gff"
params.genome = "$baseDir/data/ggal/genome.fa"
/*
* prints user convenience
*/
println "R N A T O Y P I P E L I N E "
println "================================="
println "genome : ${params.genome}"
println "annotat : ${params.annot}"
println "reads : ${params.reads}"
/*
* get a file object for the given param string
*/
genome_file = file(params.genome)
annotation_file = file(params.annot)
/*
* Step 1. Builds the genome index required by the mapping process
*/
process buildIndex {
input:
file genome from genome_file
output:
file 'genome.index*' into genome_index
"""
bowtie2-build --threads ${task.cpus} ${genome} genome.index
"""
}