A streamline represents a single fibre tract. It stores three data compartments that mirror the conceptual levels found in tractography file formats:
@points— an \(n \times 3\) numeric matrix whose columns are named"X","Y", and"Z", holding the ordered 3-D coordinates of the \(n\) points along the tract.@point_data— a named list of numeric vectors, each of length \(n\), holding per-point scalar attributes (e.g. fractional anisotropy sampled at every point).@streamline_data— a named list of numeric scalars (length-1 vectors) holding per-streamline attributes (e.g. a tract-level weight or mean FA).
Details
Use the new_streamline() constructor to create instances. Slots are
accessed with the @ operator: sl@points, sl@point_data,
sl@streamline_data.