SubsetGenes: Subsets genes using a vector of gene indices

View source: R/countland_subset.R

SubsetGenesR Documentation

Subsets genes using a vector of gene indices

Description

Subsets genes using a vector of gene indices

Usage

SubsetGenes(C, gene_indices, remove_empty = TRUE)

Arguments

C

countland object

gene_indices

vector of gene index values

remove_empty

filter out cells and genes with no observed counts (default=TRUE)

Value

countland object, count matrix updated

Examples

gold_path <- system.file("testdata", package = "countland", mustWork = TRUE)
gold.data <- Seurat::Read10X(data.dir = gold_path)
C <- countland(gold.data)
C <- SubsetGenes(C,gene_indices=1:200)

countland documentation built on May 29, 2024, 7:13 a.m.