downsampleSeuObj: downsampleSeuObj

View source: R/Seurat.Utils.R

downsampleSeuObjR Documentation

downsampleSeuObj

Description

Subset a compressed Seurat object and save it in the working directory.

Usage

downsampleSeuObj(
  obj = ls.Seurat[[i]],
  fractionCells = 0.25,
  nCells = FALSE,
  seed = 1989
)

Arguments

obj

A Seurat object to subset. Default: the i-th element of the list 'ls.Seurat'.

fractionCells

The fraction of the object's data to keep. Default: 0.25.

nCells

If set to a number greater than 1, indicates the absolute number of cells to keep. If FALSE, the function uses 'fractionCells' to determine the number of cells. Default: FALSE.

seed

A seed for random number generation to ensure reproducible results. Default: 1989.


vertesy/Seurat.utils documentation built on Dec. 4, 2024, 5:20 p.m.