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] [WIP] Add support for reading v5 assays from an axis query #3008

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mojaveazure
Copy link
Member

Seurat v5 adds support for ragged arrays, where not every X layer has exactly the same cells and features. To handle this, ragged X layers need to be re-indexed and re-shaped on ingestion to resize down to only the data present

Modified SOMA methods:

  • SOMAExperimentAxisQuery$to_seurat() and SOMAExperimentAxisQuery$to_seurat_assay(): now read in as v5 assays

New SOMA methods:

  • SOMAExperimentAxisQuery$private$.to_seurat_assay_v5(): helper method to read in ragged and non-ragged arrays into a v5 assay; note this method only handles expression layers, all other assay-level information is handled by parent $to_seurat_assay() to share code with v3 assay outgestion

Requires #2523 and #3007

SC-52261

Seurat v5 adds support for ragged arrays, where not every `X` layer has
exactly the same cells and features. To handle this, ragged `X` layers
need to be re-indexed and re-shaped on ingestion to resize down to only
the data present

Modified SOMA methods:
 - `SOMAExperimentAxisQuery$to_seurat()` and
   `SOMAExperimentAxisQuery$to_seurat_assay()`: now read in as v5 assays

New SOMA methods:
 - `SOMAExperimentAxisQuery$private$.to_seurat_assay_v5()`: helper
   method to read in ragged and non-ragged arrays into a v5 assay; note
   this method only handles expression layers, all other assay-level
   information is handled by parent `$to_seurat_assay()` to share code
   with v3 assay outgestion

Requires #2523 and #3007

[SC-52261](https://app.shortcut.com/tiledb-inc/story/52261/)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant