abagen.get_interpolated_map¶
- abagen.get_interpolated_map(genes, mask, n_neighbors=10, **kwargs)[source]¶
Generates dense (i.e., interpolated) expression maps for genes
Uses k-nearest neighbors regression to estimate values at every voxel or vertex in the supplied mask. Note that by default lr_mirror is set to ‘bidirectional’ and norm_matched is set to False, unless explicitly specified.
- Parameters
genes ((G,) list-of-str) – List of gene acronyms for which dense maps are desired
mask (niimg-like object, optional) – A mask image in MNI space or a tuple of GIFTI images in fsaverage5 space (where 0 is the background)
n_neighbors (int, optional) – Number of neighboring tissue samples to use when interpolating data in dense map. Default: 10
kwargs (key-value pairs) – All key-value pairs from
abagen.get_expression_data()
except for: atlas, atlas_info, region_agg, and agg_metric, which will be ignored.
- Returns
dense – Dictionary where keys are genes and values are dense maps in space of provided mask
- Return type
(G,) dict