genedynamics: genedynamics

View source: R/genedynamics.R

genedynamicsR Documentation

genedynamics

Description

plot gene expression values of individual genes along pseudotime

Usage

genedynamics(geneexpr, order, k = 3)

Arguments

geneexpr

A named gene expression vector. Names are cell names.

order

A character vector of pseudotime cell ordering. Must be within the column names of data.

k

degree of gam model. Smaller k makes the curve smoother.

Details

This function plots the expression values of individual genes against given pseudotime

Value

ggplot2 object.

Author(s)

Zhicheng Ji <zhicheng.ji@duke.edu>

Examples

data(lpsdata)
procdata <- preprocess(lpsdata)
lpsmclust <- exprmclust(procdata)
lpsorder <- TSCANorder(lpsmclust,orderonly=TRUE,flip=TRUE)
#Choose STAT1 gene expression to plot
STAT2expr <- log2(lpsdata["STAT2",]+1)
singlegeneplot(STAT2expr, lpsorder)

zji90/TSCAN documentation built on Sept. 14, 2022, 10:56 a.m.