Skip to content

[r] Make SOMAs and X layers selectable when converting to a Seurat object#571

Merged
aaronwolen merged 7 commits intomain-oldfrom
aaronwolen/sc-23450/make-somas-and-x-layers-selectable-when-converting
Jan 23, 2023
Merged

[r] Make SOMAs and X layers selectable when converting to a Seurat object#571
aaronwolen merged 7 commits intomain-oldfrom
aaronwolen/sc-23450/make-somas-and-x-layers-selectable-when-converting

Conversation

@aaronwolen
Copy link
Copy Markdown
Member

@aaronwolen aaronwolen commented Dec 2, 2022

This PR adds a somas argument to SOMACollection's to_seurat() method that allows you to select a subset of SOMAs and, optionally, X layers when converting to a Seurat object.

You can pass either a vector of SOMA names

soco$to_seurat(somas = c("SOMA1", "SOMA2"))

or a named list of character vectors, where each element corresponds to a SOMA name and the value is a character vector of X layers from that SOMA to include in the corresponding Seurat Assay:

soco$to_seurat(somas = list(SOMA1 = c("counts", "data"), SOMA2 = "counts"))

@shortcut-integration
Copy link
Copy Markdown

@aaronwolen aaronwolen changed the title Make SOMAs and X layers selectable when converting to a Seurat object Make SOMAs and X layers selectable when converting to a Seurat Dec 2, 2022
@aaronwolen aaronwolen changed the base branch from main to main-old December 2, 2022 16:11
@aaronwolen aaronwolen changed the title Make SOMAs and X layers selectable when converting to a Seurat [r] Make SOMAs and X layers selectable when converting to a Seurat Dec 2, 2022
@johnkerl johnkerl changed the title [r] Make SOMAs and X layers selectable when converting to a Seurat [r] Make SOMAs and X layers selectable when converting to a Seurat object Jan 17, 2023
@johnkerl johnkerl force-pushed the aaronwolen/sc-23450/make-somas-and-x-layers-selectable-when-converting branch from 66592ac to 23b2c6c Compare January 19, 2023 00:14
@aaronwolen aaronwolen force-pushed the aaronwolen/sc-23450/make-somas-and-x-layers-selectable-when-converting branch 2 times, most recently from e65a9b3 to e8608f6 Compare January 23, 2023 20:49
@aaronwolen aaronwolen force-pushed the aaronwolen/sc-23450/make-somas-and-x-layers-selectable-when-converting branch from e8608f6 to 5ab761e Compare January 23, 2023 21:07
@aaronwolen aaronwolen marked this pull request as ready for review January 23, 2023 21:11
@aaronwolen aaronwolen requested a review from johnkerl January 23, 2023 21:11
@johnkerl johnkerl force-pushed the aaronwolen/sc-23450/make-somas-and-x-layers-selectable-when-converting branch from 11d94d9 to 6686fda Compare January 23, 2023 21:55
@aaronwolen aaronwolen merged commit 8cbce09 into main-old Jan 23, 2023
@aaronwolen aaronwolen deleted the aaronwolen/sc-23450/make-somas-and-x-layers-selectable-when-converting branch January 23, 2023 22:17
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.

2 participants