Reference API¶
abagen.allen
- Primary workflows¶
Functions for mapping AHBA microarray dataset to atlases and and parcellations
|
Assigns microarray expression data to ROIs defined in atlas |
|
Returns preprocessed microarray expression data for samples in mask |
|
Generates dense (i.e., interpolated) expression maps for genes |
abagen.datasets
- Fetching AHBA datasets¶
Functions for fetching data relevant to the Allen Brain Atlas human microarray dataset
|
Fetches Desikan-Killiany atlas shipped with abagen |
Returns dataframe with donor demographic information |
|
|
Downloads FreeSurfer reconstructions of the Allen Human Brain Atlas MRIs |
|
Return list of gene acronyms belonging to provided group |
|
Downloads the Allen Human Brain Atlas microarray expression dataset |
|
Downloads the "raw" Allen Human Brain Atlas T1w/T2w MRI images |
|
Downloads RNA-sequencing data from the Allen Human Brain Atlas |
|
Fetches and optionally loads fsaverage5 surface |
|
Fetches and optionally loads fsnative surface of donor |
abagen.images
- Image processing functions¶
|
Zeroes out all ROIs in the right hemisphere of volumetric atlas |
|
Checks that atlas is a valid atlas |
|
Converts FreeSurfer-style annotation file atlas to in-memory GIFTI image |
|
Updates GIFTI images so label IDs are consecutive across hemispheres |
abagen.correct
- Post-processing corrections¶
Functions for processing and correcting gene expression data
|
Corrects for distance-dependent correlation effects in coexpression |
|
Removes genes in expression with differential stability < threshold |
|
Performs normalization on expression data |
abagen.matching
- Functions for matching samples¶
Structures and functions used for matching samples to atlas
|
Representation of a parcellation as a cKDtree for NN lookups |
|
Finds centroids of data in coordinates space |
|
Returns index of centroids closest to coords (Euclidean distance) |
abagen.reporting
- Functions for generating reports¶
Functions for generating workflow methods reports
Note: all text contained within this module is released under a CC-0 license.
|
Generates report of methods for |
abagen.io
- Loading AHBA data files¶
Functions for loading the various files associated with the AHBA microarray and RNAseq datasets.
This also contains functionality for optionally converting the downloaded CSV files to parquet format, which provides much faster I/O access / quicker load times.
|
Loads SampleAnnot.csv file found at fname |
|
Loads MicroarrayExpression.csv file found at fname |
|
Loads Ontology.csv file found at fname |
|
Loads PACall.csv file found at fname |
|
Loads Probes.csv file found at fname |
|
Loads Genes.csv file found at fname |
|
Loads RNAseqTPM.csv file found at fname |
|
Loads RNAseqCounts.csv file found at fname |
abagen.mouse
- Working with the Allen Mouse Brain Atlas¶
Lists available attributes for |
|
Lists available attributes for |
|
Lists attributes for |
|
|
Queries Allen API for information about given gene |
|
Queries Allen API for information about given gene |
|
Finds xyz coordinates of provided structure(s) in reference_space |
Gets unionization data for provided gene(s) |
|
Loads all genes from Allen Reference database |
|
Loads all anatomical structures in the Allen Reference Atlas |
|
Loads subset of anatomical structures in Allen Reference Atlas from [MI1] |