extract_gene_count: A function to extract gene counts for ploting

View source: R/utils.R

extract_gene_countR Documentation

A function to extract gene counts for ploting

Description

This function is a modified Seurat::FetchData function to extract gene counts and the associated meta data for ploting. It returns a dataframe with the requested information from the Seurat object.

Usage

extract_gene_count(
  seu_obj,
  features,
  cell.types = NULL,
  data.type = "data",
  meta.groups = NULL
)

Arguments

seu_obj

A finished Seurat Object with cell type annotation in the active.ident slot

features

Gene names to extract expression data

cell.types

The cell types to be inspected. By default, it will incorporate all cell types.

data.type

The data slot to be accessed. By default, the "data" slot will be used.

meta.groups

The colnames in the meta.data slot you want to include.

Value

A data frame with the requested info.


HaojiaWu/plot1cell documentation built on Nov. 13, 2023, 9:20 a.m.