Repository navigation
Cache Thomson PARAFAC2 factors and support on-demand IVCSR raw data download - #514
Merged
Merged
Conversation
… data - Add export_factors and load_factors to RISE with OPQ projection compression (default R^2 >= 0.99) - Store factor matrices (Pf2_A, Pf2_B, Pf2_weights, Pf2_C) in float32 and omit uncompressed/weighted projections - Optionally store PaCMAP embeddings and rebuild full datasets on load via raw_path matching - Convert Thomson_cached_factors.h5ad to OPQ representation - Add comprehensive unit tests for OPQ, export_factors, and load_factors
…is/data/ - Remove analysis package from tool.uv.build-backend in pyproject.toml - Ensure docs have zero dependencies on analysis - Move Thomson_cached_factors.h5ad directly to analysis/data/ - Add export_factors and load_factors documentation to docs/api.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of Changes
Compact Cached Factors Dataset (
Thomson_cached_factors.h5ad):analysis/data/Thomson/Thomson_cached_factors.h5ad(~4.23 MB gzip compressed, down from 137 MB originally).Xdata andweighted_projections.projectionstofloat16, factor matrices (Pf2_C,Pf2_A,Pf2_B,Pf2_weights) tofloat32, andcondition_unique_idxstoint8.doubletcolumn.On-Demand Raw Data Download & IVCSR Support via
vcsc:download_thomson_raw()inanalysis/imports.pyto download the raw Thomson IVCSR-compressed dataset from Box (https://ucla.box.com/s/jy53rcort51xn5t2dr5927wfj13g9e7j) toanalysis/data/Thomson/thomson_raw.h5adwhen raw count data is required.import_thomson(),import_thomson_factors(include_raw=True), andThomson_Doublet()to read the raw IVCSR-encoded dataset usingvcsc.VCSCAnnData.thomson_raw.h5adto.gitignore.Figure Files Updated:
figure2b_e.py,figure2f_h.py,figure3.py,figureS2.py,figureS3.py,figureS5.py,figureS6.py) to load data throughimport_thomson_factors().Testing:
test_import_thomson_factorsinanalysis/tests/test_import.py.