-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.nf
37 lines (25 loc) · 929 Bytes
/
main.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
#!/usr/bin/env nextflow
nextflow.enable.dsl=2
//--------------------------------------------------------------------------
// Param Checking
//--------------------------------------------------------------------------
if(!params.fastaSubsetSize) {
throw new Exception("Missing params.fastaSubsetSize")
}
if(params.inputFilePath) {
seqs = Channel.fromPath(params.inputFilePath)
.splitFasta(by:params.fastaSubsetSize, file:true)
}
else {
throw new Exception("Missing params.inputFilePath")
}
//--------------------------------------------------------------------------
// Includes
//--------------------------------------------------------------------------
include { tRNAScan } from './modules/tRNAScan.nf'
//--------------------------------------------------------------------------
// Main Workflow
//--------------------------------------------------------------------------
workflow {
tRNAScan(seqs)
}