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

[r] Add initial support for ragged array writing for Seurat v5 #2523

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Commits on Sep 17, 2024

  1. [r] Add initial support for ragged array writing for Seurat v5

    Seurat v5 adds support for ragged arrays, where not every `X` layer has
    exactly the same cells and features. To handle these ragged arrays on
    ingestion, re-indexing the soma join IDs is necessary to pad the `X`
    layer to the full domain of the SOMA measurement
    
    Implemented SOMA methods:
    - `write_soma.Assay5()`: write a Seurat v5 assay to a SOMA measurement.
      When writing `X` layers, if a layer is ragged:
      - cast layer to `TsparseMatrix` for COO representation
      - re-index Seurat's character IDs to SOMA join IDs
      - re-index COO coordinates to SOMA join IDs
      - write array using `SOMASparseNDArray$private$.write_coo_dataframe()`
    
    Notes:
     - This PR does not implement alternate matrix (eg. DelayedArray,
       BPCells) ingestion
    mojaveazure committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    b697647 View commit details
    Browse the repository at this point in the history
  2. Add metadata hints for v5 writing

    Expand tests
    mojaveazure committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    f46d009 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e934527 View commit details
    Browse the repository at this point in the history
  4. Update tests and docs

    mojaveazure committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    c3ce1f2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9d0357a View commit details
    Browse the repository at this point in the history