-
Notifications
You must be signed in to change notification settings - Fork 26
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
base: main
Are you sure you want to change the base?
[r] [WIP] Add support for reading v5 assays from an axis query #3008
Conversation
8f13006
to
575c12b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Notes from initial readability pass
) | ||
|
||
# Read in layers | ||
for (lyr in layers) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for (lyr in layers) { | |
for (layer_name in layer_names) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Skipping this as the I've applied the lname
→ layer_name
suggestion above. Changing here will overwrite the layer_name
variable defined above, and I still need said layer_name
(which is why I originally used lname
and lyr
as it kept the two uses separate)
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/)
306eaf8
to
d1f653f
Compare
[ci skip] Co-authored-by: John Kerl <[email protected]>
Seurat v5 adds support for ragged arrays, where not every
X
layer has exactly the same cells and features. To handle this, raggedX
layers need to be re-indexed and re-shaped on ingestion to resize down to only the data presentModified SOMA methods:
SOMAExperimentAxisQuery$to_seurat()
andSOMAExperimentAxisQuery$to_seurat_assay()
: now read in as v5 assaysNew 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 outgestionRequires #2523 and #3007
SC-52261