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

V2.1 #105

Merged
merged 165 commits into from
Apr 26, 2024
Merged

V2.1 #105

merged 165 commits into from
Apr 26, 2024

Conversation

ckmah
Copy link
Collaborator

@ckmah ckmah commented Aug 17, 2023

Major Goals

  • refactoring data structure and Bento functionality for SpatialData integration replacing original modified AnnData data structure [BPT-155] Spatial Data Refactor #104
  • python 3.10 compatibility
  • RNAflux
  • simplify Shapely dependencies
  • API and tutorial documentation

ckmah and others added 18 commits June 21, 2023 00:21
Removed all files that have not been refactored with SpatialData
Added a modified SpatialData query script that works around their intrinsic_axes issue.
Added a formatting function that reads a Spatial Data object to: sjoin points to shapes, sjoin shapes to shapes, and changes shape object indices to strings. Sjoin functions changed in geometry.
Refactor of _shape_features to read and save to SpatialData.
Refactor point features to read and save to SpatialData.
Refactoring lp function and implementing lp_diff for discrete phenotypes
Implemented lp_diff_continuous, caught phenotype error in lp_diff_discrete, and clipped infinite values to max for -log10p and -log10padj.
Added _neighborhoods.py with no changes
- RNAflux uses incrementalPCA to improve memory usage
- pretty logging bc why not
- fe handles unweighted enrichment
add rich and bump version
@codecov-commenter
Copy link

codecov-commenter commented Aug 17, 2023

Codecov Report

Attention: Patch coverage is 69.88636% with 53 lines in your changes are missing coverage. Please review.

Project coverage is 70.60%. Comparing base (4a74598) to head (e18f90d).
Report is 4 commits behind head on master.

❗ Current head e18f90d differs from pull request most recent head 5038087. Consider uploading reports for the commit 5038087 to get more accurate results

Files Patch % Lines
bento/plotting/_utils.py 26.31% 14 Missing ⚠️
bento/plotting/_plotting.py 30.76% 9 Missing ⚠️
bento/tools/_flux_enrichment.py 10.00% 9 Missing ⚠️
bento/_settings.py 83.33% 6 Missing ⚠️
bento/plotting/_multidimensional.py 33.33% 6 Missing ⚠️
bento/tools/_flux.py 90.56% 5 Missing ⚠️
bento/plotting/_layers.py 75.00% 3 Missing ⚠️
bento/_utils.py 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #105      +/-   ##
==========================================
- Coverage   71.84%   70.60%   -1.25%     
==========================================
  Files          35       36       +1     
  Lines        2252     2330      +78     
==========================================
+ Hits         1618     1645      +27     
- Misses        634      685      +51     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Added sync_points function to sync points dask dataframe to groud truth sdata.table anndata + minor fixes
Refactored flux and fluxmap functions to SpatialData. Minor changes to format data and sindex_points.
Removed dask functionality since there is no speed up in the point computations. Changed geometry functions and edited how they were used in io, shape features, point features, and flux.
Refactored _flux_enrichment.py and removed register_points functionality since we are placing cell_raster in a points element that is dynamic instead of leaving it in unstructured.
Refactored colocation.py which relies on _decomposition.py being refactored. Current _composition.py comp_diff function does not work correctly. Refactored to the point where we run across the same error.
Refactoring plotting script and all of its depending scripts: colors, layers, utils
Refactoring plotting scripts for localization patterns
#104 (comment)

- defer to native SpatialData API for query
- change bento.geo.get_points astype parameter options to lowercase
- change bento.geo.sindex_points unindexed points from "None" to empty string
- in bento.tl.lp pull out gene expression array into variable so it is not queried twice
- cleanup unused @ track, batch, copy
- in bento.tl.fe make getting sparse matrix in csr format more readable
@ckmah ckmah added this to the v2.1 milestone Jan 17, 2024
Changed all additions to points and shape elements to use Model.parse. Validates added element and maintains transformation metadata.
Changed all additions to shape elements to use Model.parse for _shape_features.py. Validates added element and maintains transformation metadata.
@ckmah ckmah marked this pull request as ready for review April 23, 2024 16:58
@ckmah ckmah removed this from the v2.1 milestone Apr 26, 2024
@ckmah ckmah merged commit 05184fd into master Apr 26, 2024
8 checks passed
@ckmah ckmah deleted the v2.1 branch December 18, 2024 18:46
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.

3 participants