forked from uclahs-soragnilab/hslci_pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.nf
executable file
·52 lines (39 loc) · 1.8 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
45
46
47
48
49
50
51
52
#!/usr/bin/env nextflow
//// DSL Version Declaration ////
nextflow.enable.dsl=2
include { segment_MATLAB_files } from './module/segment_MATLAB_files.nf'
include { track_images_FIJI } from './module/track_images.nf'
include { summarize_data } from './module/summarize_data.nf'
include { aggregate_by_well } from './module/aggregate.nf'
include { aggregate_by_condition } from './module/aggregate.nf'
include { filter_and_plot } from './module/filter_and_plot.nf'
log.info """
================================================
P I P E L I N E - H S L C I v 1.0
================================================
Current Configuration:
-input:
image_folder_path: ${params.input_image_folder_path}
well_level_information: ${params.well_level_information}
hslci_pipeline_dir: ${params.hslci_pipeline_dir}
-output:
output_dir: ${params.output_dir}
------------------------------------
Starting workflow...
------------------------------------
"""
.stripIndent()
workflow {
// STEP1: Segment Images
segment_MATLAB_files(params.input_image_folder_path, params.output_dir)
// // STEP2: TRACKING (track_images_FIJI.out)
track_images_FIJI(segment_MATLAB_files.out.segmented_dir_location)
// // // STEP3: Summarize Data
summarize_data(track_images_FIJI.out.tracked_dir)
// // // // STEP4: AGGREGATE BY WELL
aggregate_by_well(summarize_data.out.summarized_dir_location)
// // // STEP5: AGGREGATE BY CONDITION
aggregate_by_condition(aggregate_by_well.out.aggregated_by_well_dir, params.well_level_information)
// // STEP6: FILTERING
filter_and_plot(aggregate_by_condition.out.aggregated_by_condition_dir)
}