The main routine of this package that aims at performing the extraction of ROIs from multisubject dataset using the localization and activation strength of extracted regions. This has been puclished in Thirion et al. High level group analysis of FMRI data based on Dirichlet process mixture models, IPMI 2007
Author : Bertrand Thirion, 2006-2009
Estimation of the population level model of activation density using dpmm and inference
| Parameters: | Fbeta nipy.neurospin.graph.field.Field instance :
bf list of nipy.neurospin.spatial_models.hroi.Nroi instances :
gf0, array of shape (nr) :
sub, array of shape (nr) :
gfc, array of shape (nr, coord.shape[1]) :
dmax float>0: :
thq = 0.5 (float in the [0,1] interval) :
ths=0, float in the rannge [0,nsubj] :
g0 = 1.0 (float): constant value of the uniform density :
verbose=0, verbosity mode : |
|---|---|
| Returns: | crmap: array of shape (nnodes): :
LR: a instance of sbf.Landmark_regions that describes the ROIs found :
bf: List of nipy.neurospin.spatial_models.hroi.Nroi instances :
p: array of shape (nnodes): :
|
Estimation of the population level model of activation density using dpmm and inference
| Parameters: | Fbeta nipy.neurospin.graph.field.Field instance :
bf list of nipy.neurospin.spatial_models.hroi.Nroi instances :
gf0, array of shape (nr) :
sub, array of shape (nr) :
gfc, array of shape (nr, coord.shape[1]) :
dmax float>0: :
thq = 0.5 (float in the [0,1] interval) :
ths=0, float in the rannge [0,nsubj] :
g0 = 1.0 (float): constant value of the uniform density :
verbose=0, verbosity mode : |
|---|---|
| Returns: | crmap: array of shape (nnodes): :
LR: a instance of sbf.Landmark_regions that describes the ROIs found :
bf: List of nipy.neurospin.spatial_models.hroi.Nroi instances :
Coclust: array of shape (nr,nr): :
|
Compute the Bayesian Structural Activation paterns
| Parameters: | Fbeta : nipy.neurospin.graph.field.Field instance
lbeta: an array of shape (nbnodes, subjects): :
coord array of shape (nnodes,3): :
xyz array of shape (nnodes,3): :
affine=np.eye(4), array of shape(4,4) :
shape=None, tuple of length 3 defining the size of the grid :
thq = 0.5 (float): posterior significance threshold should be in [0,1] : smin = 5 (int): minimal size of the regions to validate them : theta = 3.0 (float): first level threshold : g0 = 1.0 (float): constant values of the uniform density :
bdensity=0 if bdensity=1, the variable p in ouput :
verbose=0 : verbosity mode |
|---|
Compute the Bayesian Structural Activation patterns with approach described in IPMI‘07 paper
| Parameters: | Fbeta : nipy.neurospin.graph.field.Field instance
lbeta: an array of shape (nbnodes, subjects): :
coord array of shape (nnodes,3): :
xyz array of shape (nnodes,3): :
affine=np.eye(4), array of shape(4,4) :
shape=None, tuple of length 3 defining the size of the grid :
thq = 0.5 (float): posterior significance threshold should be in [0,1] : smin = 5 (int): minimal size of the regions to validate them : theta = 3.0 (float): first level threshold : g0 = 1.0 (float): constant values of the uniform density :
bdensity=0 if bdensity=1, the variable p in ouput :
verbose=0 : verbosity mode |
|---|
Compute the Bayesian Structural Activation paterns - with statistical validation
| Parameters: | Fbeta : nipy.neurospin.graph.field.Field instance
lbeta: an array of shape (nbnodes, subjects): :
coord array of shape (nnodes,3): :
dmax float>0: :
xyz array of shape (nnodes,3): :
affine=np.eye(4), array of shape(4,4) :
shape=None, tuple of length 3 defining the size of the grid :
thq = 0.5 (float): :
smin = 5 (int): minimal size of the regions to validate them : theta = 3.0 (float): first level threshold : g0 = 1.0 (float): constant values of the uniform density :
verbose=0: verbosity mode : |
|---|
Compute the Bayesian Structural Activation paterns - simplified version
| Parameters: | Fbeta : nipy.neurospin.graph.field.Field instance
lbeta: an array of shape (nbnodes, subjects): :
coord array of shape (nnodes,3): :
dmax float>0: :
xyz array of shape (nnodes,3): :
affine=np.eye(4), array of shape(4,4) :
shape=None, tuple of length 3 defining the size of the grid :
thq = 0.5 (float): :
smin = 5 (int): minimal size of the regions to validate them : theta = 3.0 (float): first level threshold : g0 = 1.0 (float): constant values of the uniform density :
verbose=0: verbosity mode : |
|---|
Idem compute_BSA_simple, but this one does not estimate the full density (on small datasets, it can be much faster)
| Parameters: | Fbeta : nipy.neurospin.graph.field.Field instance
lbeta: an array of shape (nbnodes, subjects): :
coord array of shape (nnodes,3): :
dmax float>0: :
xyz array of shape (nnodes,3): :
affine=np.eye(4), array of shape(4,4) :
shape=None, tuple of length 3 defining the size of the grid :
thq = 0.5 (float): :
smin = 5 (int): minimal size of the regions to validate them : theta = 3.0 (float): first level threshold : g0 = 1.0 (float): constant values of the uniform density :
verbose=0: verbosity mode : |
|---|
Compute the Bayesian Structural Activation paterns - with statistical validation
| Parameters: | Fbeta : nipy.neurospin.graph.field.Field instance
lbeta: an array of shape (nbnodes, subjects): :
coord array of shape (nnodes,3): :
dmax float>0: :
xyz array of shape (nnodes,3): :
affine=np.eye(4), array of shape(4,4) :
shape=None, tuple of length 3 defining the size of the grid :
smin = 5 (int): minimal size of the regions to validate them : theta = 3.0 (float): first level threshold : verbose=0: verbosity mode : reshuffle=0: if nonzero, reshuffle the positions; this affects bf and gfc : |
|---|---|
| Returns: | bf list of nipy.neurospin.spatial_models.hroi.Nroi instances :
gf0, array of shape (nr) :
sub, array of shape (nr) :
gfc, array of shape (nr, coord.shape[1]) :
|
Given a list of hierarchical ROIs, and an associated labelling, this creates an Amer structure wuch groups ROIs with the same label.
| Parameters: | bf : list of nipy.neurospin.spatial_models.hroi.Nroi instances
thq=0.95,ths=0 defines the condition (c): :
|
|---|
crmap = make_crmap(AF,coord) Compute the spatial map associated with the AF i.e. the confidence interfval for the position of the different landmarks
| Parameters: | - AF the list of group-level landmarks regions : - coord: array of shape(nvox,3): the position of the reference points : |
|---|