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

Improve h5path read/write #260

Merged
merged 3 commits into from Dec 25, 2021
Merged

Improve h5path read/write #260

merged 3 commits into from Dec 25, 2021

Conversation

ryanccarelli
Copy link
Contributor

@ryanccarelli ryanccarelli commented Dec 24, 2021

This PR fixes a read/write bug when .h5path contains a counts matrix created by our QuantifyMIF transform #159. The problem was that certain types are not supported by AnnData.

Meanwhile we now use proper scope

with h5py.File() as f:

instead of

f = h5py.File()

when adding counts.

Since read/write for .h5path breaks when reading a file edited by QuantifyMIF, I think we should add this change directly to master.

@codecov-commenter
Copy link

codecov-commenter commented Dec 24, 2021

Codecov Report

Merging #260 (99e6cdd) into master (dfb3d11) will increase coverage by 0.06%.
The diff coverage is 30.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #260      +/-   ##
==========================================
+ Coverage   84.62%   84.69%   +0.06%     
==========================================
  Files          26       26              
  Lines        2432     2430       -2     
==========================================
  Hits         2058     2058              
+ Misses        374      372       -2     
Impacted Files Coverage Δ
pathml/core/h5managers.py 80.11% <0.00%> (-0.48%) ⬇️
pathml/core/utils.py 51.51% <0.00%> (ø)
pathml/preprocessing/transforms.py 79.63% <66.66%> (+0.42%) ⬆️
pathml/_version.py 100.00% <100.00%> (ø)

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 dfb3d11...99e6cdd. Read the comment docs.

Copy link
Collaborator

@jacob-rosenthal jacob-rosenthal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Let's bump the version number and push v2.0.1

@jacob-rosenthal jacob-rosenthal merged commit 2721cb7 into master Dec 25, 2021
@jacob-rosenthal jacob-rosenthal deleted the dev-h5pathcounts branch December 25, 2021 22:29
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.

None yet

3 participants