Learn R Programming

freesurferformats (version 1.0.1)

read.dti.tsf: Read DTI tracking per-coord data from file in MRtrix 'TSF' format.

Description

Read DTI tracking per-coord data from file in MRtrix 'TSF' format.

Usage

read.dti.tsf(filepath)

Value

named list with entries 'header' and 'scalars'. The scalar data are available in 2 representations: 'merged': a vector of all values (requires external knowledge on track borders), and 'scalar_list': organized into a list of vectors. Each vector represents the values for the points of one track.

Arguments

filepath

character string, path to the TSF file to read.

Examples

Run this code
if (FALSE) {
 tsff = "~/simple.tsf"
 tsf = read.dti.tsf(tsff);
}

Run the code above in your browser using DataLab