Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update citation for RBx -> BundleSeg #738

Merged
merged 1 commit into from
Aug 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scilpy/segment/streamlines.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def filter_grid_roi(sft, mask, filter_type, is_exclude, filter_distance=0):
mask : numpy.ndarray
Binary mask in which the streamlines should pass.
filter_type: str
One of the 3 following choices, 'any', 'all', 'either_end', 'both_ends'.
One of the 4 following choices, 'any', 'all', 'either_end', 'both_ends'.
is_exclude: bool
Value to indicate if the ROI is an AND (false) or a NOT (true).
Returns
Expand Down
17 changes: 7 additions & 10 deletions scripts/scil_recognize_multi_bundles.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-

"""
Compute RecobundlesX (multi-atlas & multi-parameters).
Compute BundleSeg & supports multi-atlas & multi-parameters (RBx-like).
The model needs to be cleaned and lightweight.
Transform should come from ANTs: (using the --inverse flag)
AntsRegistrationSyNQuick.sh -d 3 -m MODEL_REF -f SUBJ_REF
Expand All @@ -13,7 +13,7 @@

The number of folders inside 'models_directories' will increase the number of
runs. Each folder is considered like an atlas and bundles inside will initiate
more Recobundle executions. The more atlases you have, the more robust the
more BundleSeg executions. The more atlases you have, the more robust the
recognition will be.

--minimal_vote_ratio is a value between 0 and 1. If you have 5 input model
Expand Down Expand Up @@ -44,14 +44,9 @@
from scilpy.segment.voting_scheme import VotingScheme

EPILOG = """
[1] Garyfallidis, Eleftherios, et al. "Recognition of white matter bundles using
local and global streamline-based registration and clustering."
NeuroImage (2018)
[2] St-Onge, Etienne, Eleftherios Garyfallidis, and D. Louis Collins.
"Fast Streamline Search: An Exact Technique for Diffusion MRI Tractography."
Neuroinformatics (2022)
[3] Rheault, François. "Analyse et reconstruction de faisceaux de la matière
blanche." Computer Science. Université de Sherbrooke (2020).
[1] Etienne St-Onge, Kurt Schilling, Francois Rheault, "BundleSeg: A versatile,
reliable and reproducible approach to white matter bundle segmentation.",
arXiv, 2308.10958 (2023)
"""


Expand Down Expand Up @@ -132,6 +127,8 @@ def main():
with open(args.in_config_file) as json_data:
config = json.load(json_data)

# For code simplicity, it is still RecobundlesX class and all, but
# the last pruning step was modified to be in line with BundleSeg.
voting = VotingScheme(config, args.in_models_directories,
transfo, args.out_dir,
minimal_vote_ratio=args.minimal_vote_ratio)
Expand Down