Reference API
nispace.api – NiSpace main class
|
The NiSpace class. |
nispace.datasets – Dataset fetchers
|
Fetch a brain template. |
|
Fetch a parcellation. |
|
|
|
Fetch a collection that defines a subset (and optional grouping) of maps. |
|
|
|
|
|
Fetch an example dataset. |
nispace.workflows – Workflows
|
|
|
|
|
nispace.stats.coloc – Colocalization statistics
|
|
|
Rank a 1D array using mid-ranks (average rank) for tied values. |
|
Rank a 2D array column-wise using mid-ranks. |
|
Compute Pearson or Spearman correlation for two 1D arrays. |
|
Compute Pearson correlation for two 1D arrays. |
|
Computes partial correlation between {x} and {y} controlled for {z} |
|
Computes partial Pearson correlation between {x} and {y} controlled for {z} |
|
Compute mutual information between x and y using sklearn. |
|
Compute Regression of predictor(s) x on target y. |
|
Compute R2 for Regression of predictor(s) x on target y. |
|
Compute beta coefficients for Regression of predictor(s) x on target y. |
|
|
|
|
|
|
|
Fast PLS (SIMPLS) for a single target. |
|
|
|
|
|
nispace.stats.effectsize – Effect size calculation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nispace.stats.misc – Miscellaneous stats functions
|
Numba compatible version of np.any(x, axis=1). |
|
Compute residuals for Regression with dependent variable y and independent variable(s) x. |
|
Compute residuals for Regression with dependent variable y and independent variable(s) x. |
|
Partial residuals: regress x_nuisance from y while controlling for x_protect. |
|
Fisher's z-transformation of correlation coefficients. |
|
Inverse Fisher's z-transformation of correlation coefficients. |
|
Z-standardizes array and returns pandas dataframe. |
|
|
|
Return p-value for test value(s) against null array. |
|
|
|
Effective number of independent tests from data matrix via eigendecomposition. |
|
Sidak correction using Meff effective number of tests. |
|
Max-T FWER correction (Westfall & Young 1993). |
|
Step-down Max-T FWER correction (Westfall & Young 1993). |
nispace.io – Imaging data input
|
Parcellates given imaging data using a specified parcellation. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Pickle, compress, and save to a file. |
|
Unpickle a python object. |
nispace.parcellate – Parcellation class
|
Class for parcellating arbitrary volumetric / surface data. |
nispace.nulls – Null map generation
|
|
|
|
|
|
|
|
|
|
|
Generate spin resampling indices for a surface parcellation. |
|
Apply precomputed spin indices to a 1D data array. |
|
|
|
|
|
|
|
|
|
nispace.plotting – Plotting functions
|
Plot brain maps onto surfaces or anatomical volumes. |
|
|
|
|
|
|
|
|
|
|
|
Annotate a categorical axis plot with significance markers or p-value text. |
|
|
|
|
|
|
|
Convert a linewidth in data units to linewidth in points. |
nispace.utils – Utility functions
|
|
|
|
|
|
|
|
|
|
|
|
|
Get column names from a DataFrame, the name from a Series, or None if input is a numpy array. |
|
|
|
|
|
|
|
Aggregate vol_arr into parcel means, excluding NaN and any values in bg_values. |
|
|
|
|
|
|
|
|
|
|
|