-
Notifications
You must be signed in to change notification settings - Fork 0
/
nextflow.config
executable file
·107 lines (84 loc) · 2.49 KB
/
nextflow.config
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/*
* -----------------------------------
* TRACEx-TYPEx configuration
* -----------------------------------
*/
manifest {
name = 'TYPEx'
author = 'Mihaela Angelova'
description = 'Deep cell phenoTYPing with multiplEX imaging'
mainScript = 'main.nf'
}
params {
executor = "slurm"
publish_dir_mode = 'copy'
max_cpus = 32
max_memory = 250
// WORKFLOW
help = false
tiered = true
stratify_by_confidence = true
sampled = false
clustered = false
deep_imcyto = false
cellprofiler = false
mccs = params.cellprofiler
// USER-PROVIDED Study IDs
study = 'tracerx' // indicate why needed and where used
release = 'PHLEX_test' // the name of the deep-imcyto run
panel = 'p1' // unique identifier for the panel
// IO SETTINGS
sample_file = "${baseDir}/data/metadata.tracerx.txt" // Metadata
input_dir = "${baseDir}"
input_table = '${baseDir}/data/cell_objects.tracerx.txt' // input when deep-imcyto has not been used
output_dir = "$baseDir/results/TYPEx/${params.release}/"
params_config = "${baseDir}/conf/typing_params.json"
annotation_config = "${baseDir}/data/cell_type_annotation.testdata.json"
color_config = "${baseDir}/conf/celltype_colors.json"
// TISSUE SEGMENTATION
overlay_config_file = "${baseDir}/conf/tissue_segmentation.json"
tissue_seg_model = "${baseDir}/models/tissue_classifier.ilp" // A user-provided classifier can be used for segmentation
image_dir = "${params.input_dir}/imctools/"
// TYPING METHODS
major_method = 'cellassign'
subtype_method = 'FastPG'
dimred_method = 'umap'
// MARKERS
major_markers = 'major_markers'
subtype_markers = 'subtype_markers'
annotate_markers = 'major_markers' // used to annotate the cell types, e.g. for clustering
subsample_markers = params.major_markers
exclude_cell_lineage = 'None'
// NF settings
tracedir='trace'
}
includeConfig "${baseDir}/conf/base.config"
includeConfig "${baseDir}/conf/modules.config"
profiles {
debug { process.beforeScript = 'echo $HOSTNAME' }
docker {
docker.enabled = true
docker.runOptions = '-u \$(id -u):\$(id -g)'
}
singularity {
singularity.enabled = true
singularity.autoMounts = true
singularity.cacheDir = '.cache'
}
}
timeline {
enabled = true
file = "${params.tracedir}/typex_execution_timeline.html"
}
report {
enabled = true
file = "${params.tracedir}/typex_execution_report.html"
}
trace {
enabled = true
file = "${params.tracedir}/typex_execution_trace.txt"
}
dag {
enabled = true
file = "${params.tracedir}/typex_pipeline_dag.svg"
}