-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.nf
37 lines (31 loc) · 1.11 KB
/
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.queryChunkSize) {
throw new Exception("Missing params.queryChunkSize")
}
if(!params.queryFilePath) {
throw new Exception("Missing params.queryFilePath")
}
else {
seqs = Channel.fromPath( params.queryFilePath)
.splitFasta( by:params.queryChunkSize, file:true )
}
if(!params.targetFilePath) {
throw new Exception("Missing params.targetFilePath")
}
if(!params.outputDir) {
throw new Exception("Missing params.outputDir")
}
//--------------------------------------------------------------------------
// Includes
//--------------------------------------------------------------------------
include { proteinToGenomeAlignment } from './modules/proteinToGenomeAlignment.nf'
//--------------------------------------------------------------------------
// Main Workflow
//--------------------------------------------------------------------------
workflow {
proteinToGenomeAlignment(seqs)
}