fsl.scripts.fsl_ents
This module defines the fsl_ents
script, for extracting component
time series from a MELODIC .ica
directory.
- fsl.scripts.fsl_ents.parseArgs(args)[source]
Parses command line arguments.
- Parameters:
args – Sequence of command line arguments.
- Returns:
An
argparse.Namespace
object containing parsed arguments.
- fsl.scripts.fsl_ents.genComponentIndexList(comps, ncomps)[source]
Turns the given sequence of integers and file paths into a list of 0-based component indices.
- Parameters:
comps – Sequence containing 1-based component indices, and/or paths to FIX/AROMA label text files.
ncomps – Number of components in the input data - indices larger than this will be ignored.
- Returns:
List of 0-based component indices.
- fsl.scripts.fsl_ents.loadConfoundFiles(conffiles, npts)[source]
Loads the given confound files, and copies them all into a single 2D
(npoints, nconfounds)
matrix.- Parameters:
conffiles – Sequence of paths to files containing confound time series (where each row corresponds to a time point, and each column corresponds to a single confound).
npts – Expected number of time points
- Returns:
A
(npoints, nconfounds)
numpy
matrix.