Skip to content

Commit

Permalink
include argument for sh basis types
Browse files Browse the repository at this point in the history
  • Loading branch information
kellychang4 committed Dec 4, 2024
1 parent abb5fc2 commit 17816fb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions AFQ/tractography/tractography.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ def track(params_file, directions="prob", max_angle=30., sphere=None,
seed_mask=None, seed_threshold=0, thresholds_as_percentages=False,
n_seeds=1, random_seeds=False, rng_seed=None, stop_mask=None,
stop_threshold=0, step_size=0.5, minlen=50, maxlen=250,
odf_model="CSD", tracker="local", trx=False):
odf_model="CSD", basis_type="descoteaux07", tracker="local",
trx=False):
"""
Tractography
Expand Down Expand Up @@ -93,6 +94,9 @@ def track(params_file, directions="prob", max_angle=30., sphere=None,
The miminal length (mm) in a streamline. Default: 250
odf_model : str, optional
One of {"DTI", "CSD", "DKI"}. Defaults to use "CSD"
basis_type : str, optional
The spherical harmonic basis type used to represent the coefficients.
One of {"descoteaux07", "tournier07"}. Deafult: "descoteaux07"
tracker : str, optional
Which strategy to use in tracking. This can be the standard local
tracking ("local") or Particle Filtering Tracking ([Girard2014]_).
Expand Down Expand Up @@ -151,7 +155,8 @@ def track(params_file, directions="prob", max_angle=30., sphere=None,
odf = tensor_odf(evals, evecs, sphere)
dg = dg.from_pmf(odf, max_angle=max_angle, sphere=sphere)
else:
dg = dg.from_shcoeff(model_params, max_angle=max_angle, sphere=sphere)
dg = dg.from_shcoeff(model_params, max_angle=max_angle, sphere=sphere,
basis_type=basis_type, legacy=False)

if tracker == "local":
if stop_mask is None:
Expand Down

0 comments on commit 17816fb

Please sign in to comment.