AFQ.utils.streamlines#

Module Contents#

Classes#

SegmentedSFT

Functions#

split_streamline(streamlines, sl_to_split, split_idx)

Given a Streamlines object, split one of the underlying streamlines

class AFQ.utils.streamlines.SegmentedSFT(bundles, space)[source]#
get_sft_and_sidecar(self)[source]#
get_bundle(self, b_name)[source]#
classmethod fromfile(cls, trk_file, reference='same', sidecar_file=None)[source]#
AFQ.utils.streamlines.split_streamline(streamlines, sl_to_split, split_idx)[source]#

Given a Streamlines object, split one of the underlying streamlines

Parameters
streamlinesa Streamlines class instance

The group of streamlines, one of which is being split.

sl_to_splitint

The index of the streamline that is being split

split_idxint

Where is the streamline being split