-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.nf
35 lines (24 loc) · 1 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
#!/usr/bin/env nextflow
/*
========================================================================================
Testing nextflow: STAR Alignment
========================================================================================
Original Pipeline: https://github.com/kylacochrane/nf-explore
========================================================================================
*/
nextflow.enable.dsl=2
// Pipeline input parameters defined in nextflow.config
include { validateParameters; fromSamplesheet } from 'plugin/nf-validation'
// Run STAR WORKFLOW
include { STAR } from './workflows/star'
workflow {
validateParameters()
Channel.fromSamplesheet("input")
.map {meta, fastq_1, fastq_2 -> tuple(meta, [file(fastq_1), fastq_2 ? file(fastq_2) : null])}
.set { read_ch }
STAR(file(params.genome), read_ch)
}
workflow.onComplete {
print "Pipeline completed at: $workflow.complete"
print "Execution status: ${ workflow.success ? 'OK' : 'failed' }"
}