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] Fixes one-donor bug in get_expression_data() #107

Merged
merged 1 commit into from
Sep 19, 2019
Merged

Conversation

rmarkello
Copy link
Owner

Closes #5

When supplying only one donor via the donor parameter to abagen.get_expression_data() and using the default probe_selection method ('diff_stability') a really cryptic error was raised. This catches that specific combination and raises a more helpful error.

Also adds tests for the errors raised by abagen.get_expression_data().

When supplying only one donor via the `donor` parameter to
get_expression_data() and using the default `probe_selection` method of
'diff_stability' a really cryptic error was raised (see #5). This
catches that specific combination and raises a more helpful error.

Also adds tests for the errors raised by get_expression_data()
@coveralls
Copy link

coveralls commented Sep 19, 2019

Pull Request Test Coverage Report for Build 323

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.1%) to 91.383%

Files with Coverage Reduction New Missed Lines %
/home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages/abagen/allen.py 2 97.8%
Totals Coverage Status
Change from base Build 322: 0.1%
Covered Lines: 24244
Relevant Lines: 26530

💛 - Coveralls

@codecov
Copy link

codecov bot commented Sep 19, 2019

Codecov Report

Merging #107 into master will increase coverage by 0.12%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #107      +/-   ##
==========================================
+ Coverage   91.32%   91.45%   +0.12%     
==========================================
  Files          33       33              
  Lines        1891     1895       +4     
==========================================
+ Hits         1727     1733       +6     
+ Misses        164      162       -2
Impacted Files Coverage Δ
abagen/tests/test_allen.py 100% <100%> (ø) ⬆️
abagen/allen.py 97.8% <100%> (+2.15%) ⬆️

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 a337ccb...9ec433b. Read the comment docs.

@rmarkello rmarkello merged commit fd754a9 into master Sep 19, 2019
@rmarkello rmarkello deleted the fix/onedonor branch September 19, 2019 20:31
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.

Error when only one donor provided to abagen.get_expression_data()
2 participants