forked from VEuPathDB/iedb-epitope-mapping-nextflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.nf
45 lines (35 loc) · 1.3 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
38
39
40
41
42
43
#!/usr/bin/env nextflow
//---------------------------------------
// include the RNA seq workflow
//---------------------------------------
include { epitopesBlast } from './modules/epitopesBlast.nf'
//======================================
if(!params.refFasta) {
throw new Exception("Missing parameter params.refFasta")
}
if(!params.peptidesTab) {
throw new Exception("Missing parameter params.peptidesTab")
}
if(!params.taxon) {
throw new Exception("Missing parameter params.taxon")
}
if(!params.peptideMatchResults) {
throw new Exception("Missing parameter params.peptideMatchResults")
}
if(!params.peptidesFilteredBySpeciesFasta) {
throw new Exception("Missing parameter params.peptidesFilteredBySpeciesFasta")
}
if(!params.peptideMatchBlastCombinedResults) {
throw new Exception("Missing parameter params.peptideMatchBlastCombinedResults")
}
if(!params.chunkSize) {
throw new Exception("Missing parameter params.chunkSize")
}
if(!params.results) {
throw new Exception("Missing parameter params.results")
}
refFasta = Channel.fromPath(params.refFasta, checkIfExists:true).splitFasta( by: params.chunkSize, file: true )
peptidesTab = Channel.fromPath(params.peptidesTab, checkIfExists: true).first()
workflow {
epitopesBlast(refFasta, peptidesTab)
}