API reference¶
lyman.frontend
: Front-end interface¶
Forward facing lyman tools with information about ecosystem.
Interface functions¶
|
Load information from various files to control analyses. |
|
Find a list of subjects in a variety of ways. |
|
Main interface for (probably) executing a nipype workflow. |
Information classes¶
Combination of all information classes. |
|
General information common to a project. |
|
More specific experiment-level information. |
|
Model-specific level of information about a specific model. |
lyman.glm
: General linear modeling¶
HRF models¶
Abstract base class for HRF models used in design construction. |
|
|
Double gamma variate model of cannonical HRF. |
|
Basis set for HRF based on Gamma variate model. |
|
Finite Impulse Response basis model. |
Model that does not alter input during transform; useful for testing. |
Design construction¶
|
Use design information to build a matrix for a BOLD time series GLM. |
|
Generate design matrix columns from information about event occurrence. |
|
Return a contrast matrix that is valid for a given design matrix. |
Model estimation¶
|
Estimate autocorrelation and transform data and design for OLS. |
Fit OLS model and estimate residual autocorrelation with regularization. |
|
|
Fit a linear model using ordinary least squares in each voxel. |
|
Compute contrast parameter and variance estimates in each voxel. |
Compute higher-order fixed effects parameters. |
Temporal filtering¶
|
Return an array to implement a gaussian running line filter. |
|
Highpass filter data with gaussian running line filter. |
lyman.signals
: Signal processing¶
Time series transformation and diagnostics¶
|
Convert data to percent signal change over specified axis. |
|
Linearly detrend on an axis, optionally replacing the original mean. |
|
Transform data matrix using PCA. |
|
Create a mask of voxels that are unusually noisy given neighbors. |
|
Compute the temporal coefficient of variation. |
Spatial filtering¶
|
Filter volume data with an isotropic gaussian kernel. |
|
Filter each compartment of a segmentation with an isotropic gaussian. |
|
Smooth cortical voxels with Gaussian weighted surface distances. |
|
Define a matrix to smooth voxels using surface geometry. |
|
Convert isotropic fwhm in mm to an array of voxelwise sigmas. |
lyman.surface
: Surface mesh operations¶
Geodesic distance measurement¶
|
Object for computing distance along a surface mesh. |
Data representation conversion¶
|
Sample data from a volume image onto a surface mesh. |
lyman.utils
: Utilities¶
Custom Nipype interfaces¶
|
Enhanced Interface object that custom interface should inherit from. |
|
Data representation conversion¶
|
Extract image data from voxels using segmentation mask. |
|
Convert a vector or matrix of data into a nibabel image. |
|
Check the dtype and shape of a mask array. |
lyman.visualization
: Data visualization¶
Classes for image representation¶
|
|
|
Model visualization¶
|
Show the design matrix as a transposed heatmap. |
Show the timeseries of each nuisance variable, by source. |