-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathmain.nf
More file actions
30 lines (26 loc) · 1.04 KB
/
main.nf
File metadata and controls
30 lines (26 loc) · 1.04 KB
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
#!/usr/bin/env nextflow
//include { RECONST_DTIMETRICS } from 'modules/nf-neuro/reconst/dtimetrics/main'
workflow get_data {
main:
if ( !params.input ) {
log.info "You must provide an input directory containing all files using:"
log.info ""
log.info " --input=/path/to/[input] Input directory containing the file needed"
log.info " |"
log.info " └-- Input"
log.info " └-- participants.*"
log.info ""
error "Please resubmit your command with the previous file structure."
}
input = file(params.input)
// ** Loading all files. ** //
participants_channel = Channel.fromFilePairs("$input/participants.*", flat: true)
{ "participants_files" }
emit:
participants = participants_channel
}
workflow {
// ** Now call your input workflow to fetch your files ** //
data = get_data()
data.participants.view()
}