-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUSAGE
executable file
·85 lines (59 loc) · 3.98 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
Pipeline for FIESTA Flow
======================================
USAGE
nextflow run main.nf
--input inputs/ \
--model model.pt \
--atlas_config config.json \
--atlas_anat anat.nii.gz \
--atlas_directory atlas/ \
--atlas_thresholds thresholds.json \
--number_rejection_sampling_config number_rejection_sampling_config.json \
--max_total_sampling_config max_total_sampling_config.json \
--ratio_atlas_bundle_config ratio_atlas_bundle_config.json \
--degree_config degree_config.json \
--white_matter_config white_matter_config.json [OPTIONAL_ARGUMENTS]
DESCRIPTION
--input=/path/to/[root] Root folder containing multiple subjects.
You can pass more than one trk file per subject (Local.trk, PFT.trk, SET.trk, ...)
[root]
├── S1
│ ├── *t1.nii.gz
| ├── *wm.nii.gz
| ├── *peaks.nii.gz
| ├── *fa.nii.gz
│ └── *.trk
└── S2
└── *
--model Path to .pt Pytorch model
--atlas_config Path to json config file
--atlas_anat Path to reference anatomy of the atlas
--atlas_directory Path of the folder containing all atlas bundles
--atlas_thresholds Path to json thresholds file
--number_rejection_sampling_config Number of streamlines generated by the RS process.
NOT THE FINAL NUMBER: They are filtered to match the dMRI underlying signal.
--max_total_sampling_config Maximum of sampled streamlines. In general, if number_rejection_sampling is smaller
than 10%, we should stop.
--ratio_atlas_bundle_config Composition of the seeds (subject bundle|atlas bundle) that the Parzen Window is based on.
If too few streamlines are clustered the ratio might not be respected
to match the number of Parzen Window seeds
--degree_config Generated streamline acceptance maximum local orientation angle to the fODF peaks
--white_matter_config Bundle wise white matter mask to use
OPTIONAL ARGUMENTS (current value)
--batch_sampling Batch used for the RS ($batch_sampling).
--parzen_window_seeds Number of seeds used for the Parzen Window ($parzen_window_seeds)
--fa_threshold Threshold to use when the FA is considered as the WM mask ($fa_threshold)
--device On which device pytorch inference is done ( cuda|cpu )
Default: (cpu) -> Using: ($device)
--run_gesta Run GESTA ($run_gesta).
--registration_speed Registration speed 0 = antsRegistrationSyN.sh, 1 = antsRegsitrationSyNQuick.sh
Default: (0) -> Using: ($registration_speed)
--register_processes Number of processes for registration task ($register_processes).
--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"
NOTES
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 ...'.