powered by
Subset an scMinimal object by specified genes, donors, cells, or cell types
subset_scMinimal( scMinimal, ctypes_use = NULL, cells_use = NULL, donors_use = NULL, genes_use = NULL, in_place = TRUE )
A subsetted scMinimal object.
environment A sub-container for the project typically consisting of gene expression data in its raw and processed forms as well as metadata
character The cell types to keep (default=NULL)
character Cell barcodes for the cells to keep (default=NULL)
character The donors to keep (default=NULL)
character The genes to keep (default=NULL)
logical If set to TRUE then replaces the input object with the new subsetted object (default=TRUE)
cell_names <- colnames(test_container$scMinimal_full$count_data) cells_sub <- sample(cell_names,40) scMinimal <- subset_scMinimal(test_container$scMinimal_full, cells_use=cells_sub)
Run the code above in your browser using DataLab