forked from scilus/tractometry_flow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
USAGE
101 lines (75 loc) · 5.1 KB
/
USAGE
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
Scilpy dMRI tractometry pipeline
================================
Compute tractometry on each bundles/metrics
USAGE
nextflow run main.nf [OPTIONAL_ARGUMENTS] (--input)
DESCRIPTION
--input=/path/to/[root] Input folder containg multiple subjects
[root]
├── S1
│ ├── *lesion_mask.nii.gz (optional)
│ ├── *fodf.nii.gz (optional to generate fixel AFD)
│ ├── metrics
│ │ └── *.nii.gz
│ └── bundles
│ └── *.trk
└── S2
├── *lesion_mask.nii.gz (optional)
├── *fodf.nii.gz (optional to generate fixel AFD)
├── metrics
│ └── *.nii.gz
└── bundles
└── *.trk
Bundle centroid will be computed on-the-fly if no
pre-computed centroids have been provided.
You can provide pre-computed centroids such as
(and use --use_provided_centroids true)
[root]
├── S1
│ ├── metrics
│ │ └── *.nii.gz
│ ├── centroids
│ │ └── [Bundle_Name]_centroid.trk
│ └── bundles
│ └── [Bundle_Name].trk
└── S2
├── metrics
│ └── *.nii.gz
├── centroids
│ └── [Bundle_Name]_centroid.trk
└── bundles
└── [Bundle_Name].trk
Bundle and centroid file names must match the
format described above.
All subjects in the [root] folder must contain
pre-computed centroids if pre-computed centroids
are provided. In other words, you can not mix
subjects with and without pre-computed centroids
Metrics should be compressed Nifti files (.nii.gz) and centroids and fiber bundles should be
in Trackvis format (.trk)
OPTIONAL ARGUMENTS (current value)
--nb_points Split the fiber bundle in --nb_point sections ($nb_points)
--min_lesion_vol To be consider 'a lesion' for the pipeline, a lesion must be at least ($min_lesion_vol) mm3.
--use_provided_centroids Use the provided pre-computed centroids rather than using automatic computation ($use_provided_centroids)
--skip_tract_profiles Skip all the steps that include tract profiling ($skip_tract_profiles)
--bundle_suffix_to_remove Use to remove the suffix from RBx-Flow ($bundle_suffix_to_remove)
--mean_std_density_weighting Weight the mean/std by the local tract density ($mean_std_density_weighting)
--mean_std_per_point_density_weighting Weight the mean/std per point by the local tract density ($mean_std_per_point_density_weighting)
--endpoints_metric_stats_normalize_weights Normalize the weights to the [0, 1] range ($endpoints_metric_stats_normalize_weights)
--skip_projection_endpoints_metrics Skip the (slow) process that projects metrics onto the endpoints of streamlines ($skip_projection_endpoints_metrics)
--processes The number of parallel processes to launch ($cpu_count).
Only affects the local scheduler.
--output_dir Directory where to write the final results.
By default, will be in "./results_tractometry"
AVAILABLE PROFILES (using -profile option (e.g. -profile macos, cbrain))
macos When this profile is used, rbx_flow will modify a parameter (scratch) for MacOS users.
cbrain When this profile is used, Nextflow will copy all the output files in publishDir and not use symlinks.
NOTES
The 'scilpy/scripts' folder should be in your PATH environment variable. Not necessary if the
Singularity container is used.
The intermediate working directory is, by default, set to './work'.
To change it, use the '-w WORK_DIR' argument.
The default config file is tractoflow/nextflow.config.
Use '-C config_file.config' to specify a non-default configuration file.
The '-C config_file.config' must be inserted after the nextflow call
like 'nextflow -C config_file.config run ...'.