-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ENH] Allows users to get microarray samples in mask #155
Conversation
Allows users to specify binary mask and all samples within mask boundaries are returned (as well as MNI coordinates of samples). If no mask is specified, all samples are returned.
Codecov Report
@@ Coverage Diff @@
## master #155 +/- ##
==========================================
+ Coverage 90.82% 90.85% +0.03%
==========================================
Files 32 32
Lines 2201 2253 +52
==========================================
+ Hits 1999 2047 +48
- Misses 202 206 +4
Continue to review full report at Codecov.
|
Mostly smoke tests to ensure that the functions run and return reasonable-looking outputs 🤷♂️
Alright so the docs failure is a typo (shouldn't have done Namely, if a relatively small ROI is provided as the mask then often there are relatively few samples found within the mask for each donor. If normalization is set to |
When normalization is performed during get_expression_data() is now controllable via the `norm_matched` parameter, which will either perform normalization before (False) or after (True) dropping unmatched samples
Closes #46.
Adds function
abagen.get_samples_in_mask(mask)
which allows users to provide a mask (binary or otherwise 🤷♂️) and all samples withintolerance
of mask boundaries are returned (along with MNI coordinates of samples). If no mask is provided, (i.e.,mask=None
) all available tissue samples are returned instead.This required adding a
region_agg=None
option toabagen.get_expression_data()
, though I am choosing not to document this functionality in favor of having people useget_samples_in_mask()
directly so that the relevant sample coordinates are returned alongside expression data.To do:
get_samples_in_mask()