Skip to content
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] Adds option to mirror samples across L/R hemispheres #87

Merged
merged 10 commits into from
Sep 3, 2019
Merged

Conversation

rmarkello
Copy link
Owner

@rmarkello rmarkello commented Aug 30, 2019

Closes #48

Adds abagen.samples module, moving some functionality from abagen.allen there, and adds new function (abagen.samples.mirror_samples) that will duplicate all microarray samples across hemispheres. Accessible in the primary abagen.get_expression_data() workflow via the lr_mirror boolean parameter.

To do:

  • Finish adding tests for abagen.samples module
  • Add lr_mirror option to abagen.cli

Since we'll be doing a bit more with sample manipulation for L/R
hemisphere flipping, etc.
The abagen.get_expression_data() function still referred to a "samples"
object that wasn't the module (since we used to hold data in a variable
called samples).
Doesn't necessarily DOUBLE the number of samples since samples with
mni_x=0 aren't duplicated.
Function had been moved previously and test wasn't updated.
@codecov
Copy link

codecov bot commented Sep 3, 2019

Codecov Report

Merging #87 into master will increase coverage by 0.51%.
The diff coverage is 99.13%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #87      +/-   ##
==========================================
+ Coverage   90.06%   90.57%   +0.51%     
==========================================
  Files          31       32       +1     
  Lines        1600     1730     +130     
==========================================
+ Hits         1441     1567     +126     
- Misses        159      163       +4
Impacted Files Coverage Δ
abagen/tests/test_allen.py 100% <ø> (ø) ⬆️
abagen/tests/test_cli.py 100% <ø> (ø) ⬆️
abagen/tests/test_samples.py 100% <100%> (ø)
abagen/process.py 100% <100%> (ø) ⬆️
abagen/cli/run.py 91.56% <100%> (-2.34%) ⬇️
abagen/samples.py 100% <100%> (ø)
abagen/allen.py 94.93% <86.66%> (-3.4%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e8af9d5...2d39b94. Read the comment docs.

@rmarkello rmarkello merged commit 5120ccd into master Sep 3, 2019
@rmarkello rmarkello deleted the lrflip branch September 3, 2019 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add L/R flipping procedure (Romero-Garcia et al., 2018, NeuroImage)
1 participant