diffgenes {RaceID} | R Documentation |
Compute Expression Differences between Clusters
Description
This functions computes expression differences between clusters and ranks genes by z-score differences.
Usage
diffgenes(object, cl1, cl2, mincount = 1)
Arguments
object |
|
cl1 |
A vector of valid cluster numbers (contained in the |
cl2 |
A vector of valid cluster numbers (contained in the |
mincount |
Minimal normalized expression level of a gene to be included into the analysis. A gene needs to be expressed at this level in at least a single cell. |
Value
A list with four components:
z |
a vector of z-scores in decreasing order with genes up-regulated in |
cl1 |
a |
cl2 |
a |
cl1n |
a vector of cluster numbers for cells in |
cl2n |
a vector of cluster numbers for cells in |
Examples
sc <- SCseq(intestinalDataSmall)
sc <- filterdata(sc)
sc <- compdist(sc)
sc <- clustexp(sc)
sc <- findoutliers(sc)
x <- diffgenes(sc,1,2)
head(x$z)
plotdiffgenes(x,names(x$z)[1])