-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.nf
46 lines (36 loc) · 1.38 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
44
#!/usr/bin/env nextflow
//---------------------------------------
// include the RNA seq workflow
//---------------------------------------
include { epitopeMapping } from './workflows/epitopeMapping.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.peptideMatchResults) {
throw new Exception("Missing parameter params.peptideMatchResults")
}
// if(!params.chunkSize) {
// throw new Exception("Missing parameter params.chunkSize")
// }
if(!params.results) {
throw new Exception("Missing parameter params.results")
}
//splitRefFasta = Channel.fromPath(params.refFasta, checkIfExists:true).splitFasta( by: params.chunkSize, file: true )
// process 10,000 epitopes at a time
//peptidesTab = Channel.fromPath(params.peptidesTab, checkIfExists: true).splitText( by: params.peptidesChunkSize, file: true )
workflow {
epitopeMapping()
}