Skip to content

Commit 6153efb

Browse files
authored
Merge pull request #12 from arnaudbore/update_release_2.2.1
Update to tractoflow 2.2.1
2 parents cb684e7 + c077df9 commit 6153efb

File tree

10 files changed

+128
-44
lines changed

10 files changed

+128
-44
lines changed

source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# -- Project information -----------------------------------------------------
2121

2222
project = u'TractoFlow-documentation'
23-
copyright = u'2019, SCIL'
23+
copyright = u'2021, SCIL'
2424
author = u'SCIL'
2525

2626
# The short X.Y version

source/data/install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/bin/bash
22

33
echo "Downloading TractoFlow..."
4-
wget -q https://github.com/scilus/tractoflow/releases/download/2.1.1/tractoflow-2.1.1.zip
5-
unzip -q tractoflow-2.1.1.zip
6-
rm -rf tractoflow-2.1.1.zip
4+
wget -q https://github.com/scilus/tractoflow/releases/download/2.2.1/tractoflow-2.2.1.zip
5+
unzip -q tractoflow-2.2.1.zip
6+
rm -rf tractoflow-2.2.1.zip
77
echo "Done: TractoFlow downloaded."
88
echo "Downloading TractoFlow Singularity..."
9-
wget -q --show-progress http://scil.dinf.usherbrooke.ca/containers_list/tractoflow_2.1.1_650f776_2020-07-15.img
9+
wget -q --show-progress http://scil.dinf.usherbrooke.ca/containers_list/tractoflow_2.2.1_b9a527_2021-04-13.sif
1010
echo "Done: TractoFlow Singularity downloaded."

source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Welcome to the TractoFlow user documentation!
22
=============================================
33

44
.. note::
5-
New release available: 2.1.1.
5+
New release available: 2.2.1.
66
TractoFlow now support BIDS as input data.
77

88
TractoFlow pipeline is developed by the Sherbrooke Connectivity Imaging Lab (`SCIL`_)

source/installation/install.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Easy install method
77
Enter this command in your terminal (it downloads the container and TractoFlow code in the current directory):
88
::
99

10-
curl -s https://tractoflow-documentation.readthedocs.io/en/2.1.1/install.sh | bash
10+
curl -s https://tractoflow-documentation.readthedocs.io/en/2.2.1/install.sh | bash
1111

1212
TractoFlow pipeline
1313
-------------------
@@ -19,7 +19,7 @@ Download the last release of TractoFlow pipeline:
1919

2020
::
2121

22-
$> wget https://github.com/scilus/tractoflow/releases/download/2.1.1/tractoflow-2.1.1.zip && unzip tractoflow-2.1.1.zip
22+
$> wget https://github.com/scilus/tractoflow/releases/download/2.2.1/tractoflow-2.2.1.zip && unzip tractoflow-2.2.1.zip
2323

2424
For developers
2525
##############
@@ -47,7 +47,7 @@ Download the last release of the Singularity container for TractoFlow:
4747

4848
::
4949

50-
$> wget http://scil.dinf.usherbrooke.ca/containers_list/tractoflow_2.1.1_650f776_2020-07-15.img
50+
$> wget http://scil.dinf.usherbrooke.ca/containers_list/tractoflow_2.2.1_b9a527_2021-04-13.sif
5151

5252
For developers
5353
##############
@@ -80,6 +80,6 @@ Download the last release of the Docker container for TractoFlow:
8080

8181
::
8282

83-
$> docker pull scilus/docker-tractoflow:2.1.1
83+
$> docker pull scilus/tractoflow:2.2.1
8484

8585
Please see :ref:`profiles` section to use `macos` profile.

source/installation/requirements.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Local Computer
2323
High Performance computer (HPC)
2424
###############################
2525

26-
1. Try ``module load java/1.8.0_121`` or check with your administrator or on the HPC website.
26+
1. Try ```module load nixpkgs/16.09 module load java/1.8.0_192`` or check with your administrator or on the HPC website.
2727
2. Use ``wget`` to install Nextflow, change the name, add execution rights and add the Nextflow path in the bash_profile.
2828

2929
::
@@ -74,4 +74,3 @@ Windows
7474
To install Docker on your Windows computer, please check the following link:
7575

7676
https://hub.docker.com/editions/community/docker-ce-desktop-windows
77-

source/pipeline/input.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Two types of input are available in TractoFlow: BIDS and an in-house structure.
66
BIDS parameter
77
--------------
88

9-
We recommend to use ``dcm2bids`` (https://github.com/cbedetti/Dcm2Bids) to create BIDS datasets.
9+
We recommend to use ``dcm2bids`` (https://github.com/unfmontreal/Dcm2Bids) to create BIDS datasets.
1010

1111
TractoFlow supports BIDS as input data using ``--bids YOUR_BIDS_DATASET``. TractoFlow does some verifications
1212
before launching the processing to valide the BIDS format.

source/pipeline/options.rst

Lines changed: 93 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@ Options
44
To display the options of Tractoflow, please use
55
``nextflow run tractoflow/main.nf --help``.
66

7+
Optional BIDS arguments
8+
------------
9+
10+
``--participants_label "SUBID1 SUBID2"`` (default: none)
11+
The label(s) of the specific participant(s) you want to analyzed.
12+
It does not include "sub-".
13+
Please write one or more subjects between quotes e.g. (--participants_label "01 02 04")
14+
If this parameter is not provided all subjects should be analyzed
15+
16+
17+
``-clean_bids BOOL`` (default: false)
18+
If set, it will remove all the participants that are missing any information.
19+
20+
721
Options list
822
------------
923
``--b0_thr_extract_b0 MAX_VALUE`` (default: 10)
@@ -134,47 +148,97 @@ Options list
134148
Minimal threshold of MD in mm^2/s to be considered as ventricule voxel.
135149
Used to compute the ventricules mask and find the maximum fODF amplitude in the ventricules.
136150

137-
``--wm_seeding BOOL`` (default: true)
138-
If '--wm_seeding true', use the WM-GM interface and the WM mask as seeding mask,
139-
else use the WM-GM interface as seeding mask.
140151

141-
``--algo ALGO`` (default: prob)
142-
Tracking algorithm [prob, det].
152+
Optional PFT Tracking arguments
153+
------------
154+
155+
``--run_pft_tracking BOOL`` (default: true).
156+
[PFT] Run Particle Filter Tracking (PFT)
157+
158+
``--pft_seeding_mask_type TYPE`` (default: wm)
159+
[PFT] Seeding mask type [wm, interface, fa].
160+
161+
``--pft_fa_seeding_mask_threshold THRESHOLD`` (default: 0.1)
162+
[PFT] FA threshold for FA seeding mask.
163+
164+
``--pft_algo ALGO`` (default: prob)
165+
[PFT] Tracking algorithm [prob, det].
166+
167+
``--pft_seeding SEEDING`` (default: npv)
168+
[PFT] Seeding type [npv, nt].
169+
170+
``--pft_nbr_seeds NBRSEEDS`` (default: 10)
171+
[PFT] Number of seeds related to the seeding type param.
172+
173+
``--pft_step SIZE`` (default: 0.5)
174+
[PFT] Step size.
175+
176+
``--pft_theta ANGLE`` (default: 20)
177+
[PFT] Maximum angle between 2 steps.
178+
179+
``--pft_min_len LENGTH`` (default: 20)
180+
[PFT] Minimum length.
181+
182+
``--pft_max_len LENGTH`` (default: 200)
183+
[PFT] Maximum length.
184+
185+
``--pft_compress_streamlines BOOL`` (default: true)
186+
[PFT] Compress streamlines.
187+
188+
``--pft_compress_value THRESHOLD`` (default: 0.2)
189+
[PFT] Compression error threshold.
190+
See [Presseau et al Neuroimage 2015] and [Rheault et al Front Neuroinform 2017].
191+
192+
``--pft_random_seed RANDOMSEED`` (default: 0)
193+
[PFT] List of random seed numbers for the random number generator.
194+
Please write them as list separated using commat WITHOUT SPACE e.g. (--pft_random_seed 0,1,2)
195+
196+
197+
Optional Local Tracking arguments
198+
------------
199+
200+
``--run_local_tracking BOOL`` (default: false).
201+
[LOCAL] Run Local Tracking
202+
203+
``--local_seeding_mask_type TYPE`` (default: wm)
204+
[LOCAL] Seeding mask type [wm, interface, fa].
205+
206+
``--local_fa_seeding_mask_threshold THRESHOLD`` (default: 0.1)
207+
[LOCAL] FA threshold for FA seeding mask.
208+
209+
``--local_algo ALGO`` (default: prob)
210+
[LOCAL] Tracking algorithm [prob, det].
143211

144-
| prob: streamline probabilistic.
145-
| det: streamline deterministic.
212+
``--local_seeding SEEDING`` (default: npv)
213+
[LOCAL] Seeding type [npv, nt].
146214

147-
``--seeding TYPE`` (default: npv)
148-
Seeding type [npv, nt].
215+
``--local_nbr_seeds NBRSEEDS`` (default: 10)
216+
[LOCAL] Number of seeds related to the seeding type param.
149217

150-
| npv: number of seeds per voxel of the seeding mask
151-
| nt: total number of seeds randomly placed in the seeding mask
218+
``--local_step SIZE`` (default: 0.5)
219+
[LOCAL] Step size.
152220

153-
``--nbr_seeds NUMBER`` (default: 10)
154-
Number of seeds related to the seeding type param.
221+
``--local_theta ANGLE`` (default: 20)
222+
[LOCAL] Maximum angle between 2 steps.
155223

156-
``--random SEED`` (default: 0)
157-
Random seed.
158-
Fixed for reproducible seeds
224+
``--local_min_len LENGTH`` (default: 20)
225+
[LOCAL] Minimum length.
159226

160-
``--step SIZE`` (default: 0.5)
161-
Step size in mm.
227+
``--local_max_len LENGTH`` (default: 200)
228+
[LOCAL] Maximum length.
162229

163-
``--theta ANGLE`` (default: 20)
164-
Maximum angle between 2 steps in degrees.
230+
``--local_compress_streamlines BOOL`` (default: true)
231+
[LOCAL] Compress streamlines.
165232

166-
``--min_len LENGTH`` (default: 20)
167-
Minimum length in mm.
233+
``--local_compress_value THRESHOLD`` (default: 0.2)
234+
[LOCAL] Compression error threshold.
235+
See [Presseau et al Neuroimage 2015] and [Rheault et al Front Neuroinform 2017].
168236

169-
``--max_len LENGTH`` (default: 200)
170-
Maximum length in mm.
237+
``--local_random_seed RANDOMSEED`` (default: 0)
238+
[LOCAL] List of random seed numbers for the random number generator.
239+
Please write them as list separated using commat WITHOUT SPACE e.g. (--local_random_seed 0,1,2)
171240

172-
``--compress_streamlines BOOL`` (default: true)
173-
Compress streamlines.
174241

175-
``--compress_value THRESHOLD`` (default: 0.2)
176-
Compression error threshold in mm.
177-
See [Presseau et al Neuroimage 2015] and [Rheault et al Front Neuroinform 2017]
178242

179243
``--template_t1 PATH`` (default: /human-data/mni_152_sym_09c/t1)
180244
Path to the template T1 directory for antsBrainExtraction.

source/pipeline/profiles.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@ Profiles available
2222
``fully_reproducible``
2323
When this profile is used, all the parameters will be set to have 100% reproducible results.
2424
This profile consist to set multi-thread parameters to be fully reproducible [Theaud20].
25+
26+
``cbrain``
27+
When this profile is used, Nextflow will copy all the output files in publishDir and not use symlinks.

source/pipeline/steps.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,8 @@ T1 processes
3838

3939
Tractography
4040
------------
41-
The particle filter tractography is performed. Two types of seeding are available: WM-GM interface or WM mask.
41+
* Particule Filter Tractography
42+
* Local tracking (Optional)
43+
44+
45+
The particle filter tractography is performed by default. Three types of seeding are available: WM-GM interface, WM mask or FA.

source/reference/changelog.rst

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,25 @@
11
Changelog
22
=========
33

4+
2.2.1
5+
#########
6+
Date: 09 April 2021
7+
8+
Bug Fixed:
9+
- fully reproducible (ANTS_RANDOM_SEED fixed)
10+
- Tracking with FA (typo)
11+
12+
New options:
13+
- participants_label: select specific subjects (BIDS input)
14+
- clean_bids: remove subject that are not complete (BIDS input)
15+
416
2.1.1
517
#########
618
Date: 08 Jul 2020
719

8-
Support 4D reverse B0 images.
20+
New features:
21+
22+
- Support 4D reverse B0 images.
923

1024
2.1.0
1125
#########

0 commit comments

Comments
 (0)