Open rmarkello opened 5 years ago
Looking at this again, another (potentially better) alternative to making atlas
an optional parameter is to accept a string ('allen'
) for the atlas
parameter which will then default to using the provided ontology.
The issue
In addition to the MNI coordinates of each sample, the Allen Institute provides a detailed ontology of the brain structure each sample was ostensibly taken from in each donor brain. Used in a bunch of published works (e.g., Hawrylycz et al., 2015), this ontology provides a built-in "atlas" for reducing microarray samples down into the sort of region x gene dataframes returned by
abagen.get_expression_data()
.Taking from the aforementioned paper:
Proposed solution
Allow an alternative procedure to the currently implemented
abagen.get_expression_data()
function that requires a Nifti-like atlas that lets users combine samples using the built-in Allen Institute ontology. By default I think the 232 structures should be used and then users can specify (via thereturn_counts
parameter) whether they want to know how many samples were pooled for each structure and reduce down to the 96 as desired.Perhaps this can be the default for the
abagen.get_expression_data()
? That is, makeatlas
an optional parameter and, if none is supplied, use the Allen ontology?