Skip to content

Add obsp and varp - #207

Merged
flying-sheep merged 2 commits into
scverse:masterfrom
ivirshup:add_obspvarp
Sep 8, 2019
Merged

flying-sheep merged 2 commits into
scverse:masterfrom
ivirshup:add_obspvarp

Conversation

@ivirshup

@ivirshup ivirshup commented Sep 6, 2019 •

Copy link
Copy Markdown
Member

Fixes #136

This introduces attributes for pairwise measurements on the observations and variables. Currently mostly for cell-cell graphs, but could also be used for gene correlation graphs.

Thoughts @falexwolf @flying-sheep @Koncopd?

@codecov

codecov Bot commented Sep 6, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #207 into master will increase coverage by 0.37%.
The diff coverage is 93.47%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #207      +/-   ##
==========================================
+ Coverage   79.85%   80.23%   +0.37%     
==========================================
  Files          14       14              
  Lines        2284     2327      +43     
==========================================
+ Hits         1824     1867      +43     
  Misses        460      460
Impacted Files Coverage Δ
anndata/readwrite/zarr.py 90.21% <100%> (+0.1%) ⬆️
anndata/readwrite/h5ad.py 86.97% <100%> (+0.12%) ⬆️
anndata/core/anndata.py 79.13% <90.9%> (+0.21%) ⬆️
anndata/core/alignedmapping.py 93.37% <94.73%> (+2.01%) ⬆️

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 eb686e8...511bccc. Read the comment docs.

@flying-sheep

Copy link
Copy Markdown
Member

Great! We will need code in scanpy that automatically checks for square sparse matrices in .uns which will be superfluous after this.

@flying-sheep flying-sheep left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice. Let’s do the renaming right after this PR.

Comment thread anndata/core/anndata.py Resolved
Comment thread anndata/core/alignedmapping.py Resolved
@ivirshup

ivirshup commented Sep 7, 2019

Copy link
Copy Markdown
Member Author

Which renaming?

@flying-sheep

Copy link
Copy Markdown
Member

How the abstract classes and the concrete/view classes are named, as I said in the other PR. This PR introduces more of those which is why I mentioned it.

@flying-sheep
flying-sheep merged commit 0105d15 into scverse:master Sep 8, 2019
@ivirshup

ivirshup commented Sep 9, 2019

Copy link
Copy Markdown
Member Author

Gotcha. I agree some renaming and decisions on exports need to be made. I'm still considering my thoughts on this, but I'll add those to the renaming issue soon.

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.

Backwards breaking change: Sparse observation and variables annotation

2 participants