whitelist.subset.ls.Seurat | R Documentation |
Subsets cells in a list of Seurat objects based on an externally provided list of cell IDs.
whitelist.subset.ls.Seurat(
ls.obj = ls.Seurat,
metadir = p$cellWhiteList,
whitelist.file = "NonStressedCellIDs.2020.10.21_18h.tsv"
)
ls.obj |
A list of Seurat objects. Default: ls.Seurat. |
metadir |
Directory for the metadata. Default: p$cellWhiteList. |
whitelist.file |
Filename of the whitelist containing cell IDs. Default: "NonStressedCellIDs.2020.10.21_18h.tsv". |
The function first validates the presence of all identities from the metadata in the Seurat objects. If all identities are present, the function subsets each Seurat object based on the whitelist of cell IDs.
A list of Seurat objects containing only the cells specified in the whitelist.
subset
## Not run:
if (interactive()) {
ls.Seurat.subset <- whitelist.subset.ls.Seurat(
ls.obj = ls.Seurat, metadir = p$"cellWhiteList",
whitelist.file = "NonStressedCellIDs.2020.10.21_18h.tsv"
)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.