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

[REF,ENH] Modifies and adds normalization procedures #119

Merged
merged 16 commits into from
Nov 20, 2019
Merged

Conversation

rmarkello
Copy link
Owner

@rmarkello rmarkello commented Nov 18, 2019

Adds new normalization functions and modifies when/where normalization occurs in primary workflow.

To Do:

  • Add sample normalization option to get_expression_data() workflow
  • Add tests for new normalization procedures

@coveralls
Copy link

coveralls commented Nov 18, 2019

Pull Request Test Coverage Report for Build 354

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 6 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.05%) to 91.433%

Files with Coverage Reduction New Missed Lines %
/home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages/abagen/allen.py 2 98.0%
/home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages/abagen/correct.py 4 96.64%
Totals Coverage Status
Change from base Build 330: 0.05%
Covered Lines: 15956
Relevant Lines: 17451

💛 - Coveralls

@codecov
Copy link

codecov bot commented Nov 18, 2019

Codecov Report

Merging #119 into master will increase coverage by 6.23%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #119      +/-   ##
==========================================
+ Coverage   84.26%   90.49%   +6.23%     
==========================================
  Files          33       32       -1     
  Lines        2180     1989     -191     
==========================================
- Hits         1837     1800      -37     
+ Misses        343      189     -154
Impacted Files Coverage Δ
abagen/correct.py 99.18% <100%> (+0.17%) ⬆️
abagen/allen.py 98.07% <100%> (+0.27%) ⬆️
abagen/tests/test_correct.py 100% <100%> (ø) ⬆️
abagen/_version.py

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 ff1f3c8...ebb89ee. Read the comment docs.

Doesn't currently do anything, but it's there! For eventually doing
something
Don't normalize donor expression after ROI aggregation
Better (sort of) NaN handling in correct.normalize_expression
Because we were removing all the samples who hadn't been assigned a
label prior to normalization when `exact=False` the samples that were
being used were all NaN. Now, we only remove samples without labels if
`exact=True` (default).
They aren't handled elegantly (should they be?)
Need to handle NaNs to avoid warnings
Fixes this by dropping samples not assigned to a region rather than
setting the values to NaN.
@rmarkello rmarkello marked this pull request as ready for review November 20, 2019 17:12
@rmarkello rmarkello merged commit ebf9036 into master Nov 20, 2019
@rmarkello rmarkello deleted the addnorms branch November 20, 2019 18:45
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.

2 participants