downsampleListSeuObjsNCells | R Documentation |
Downsampling each Seurat object in a list to a specified number of cells. This function is particularly useful for creating smaller, more manageable subsets of large single-cell datasets for preliminary analyses or testing.
downsampleListSeuObjsNCells(
ls.obj = ls.Seurat,
NrCells = p$dSample.Organoids,
save_object = FALSE
)
ls.obj |
List of Seurat objects to be downsampled. Default: |
NrCells |
Target number of cells to downsample each Seurat object to. |
save_object |
Logical indicating whether to save the downsampled Seurat objects using |
## Not run:
if (interactive()) {
downsampledSeuratList <- downsampleListSeuObjsNCells(
ls.obj =
list(yourSeuratObj1, yourSeuratObj2), NrCells = 2000
)
downsampledSeuratList <- downsampleListSeuObjsNCells(NrCells = 200)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.