Description Usage Arguments Examples
View source: R/RaceID3_StemID2_class.R
This function allows plotting pseudo-temporal expression profiles for single genes or groups of genes.
1 2 |
x |
expression data frame with genes as rows and cells as columns. Gene IDs should be given as row names and cell IDs should be given as column names. |
y |
clustering partition. A vector with an integer cluster number for each cell. The order of the cells has to be the same as for the columns of |
g |
a gene ID corresponding to one of the rownames of |
n |
ordered vector of cell IDs to be included. Cell IDs need to be column names of |
col |
optional vector of valid color names for all clusters in |
name |
optional character string. This argument corresponds to a title for the plot. Default value is |
cluster |
logical value. If |
k |
positive integer number. Pseudo-temporal expression profiles are either derived using a running mean of expression values across the ordered cells with window-size |
locreg |
logical value. If |
alpha |
positive real number. This is the parameter, which controls the degree of smoothing. Larger values return smoother profiles. Default value is 0.5. |
types |
optional vector with IDs for different subsets of cells in |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | x <- intestine$x
y <- intestine$y
v <- intestine$v
fcol <- intestine$col
tar <- c(6,9,13)
fb <- fateBias(x,y,tar,z=NULL,minnr=5,minnrh=10,nbfactor=5,use.dist=FALSE,seed=NULL,nbtree=NULL)
trc <- dptTraj(x,y,fb,trthr=.25,distance="euclidean",sigma=1000)
n <- trc[["t6"]]
fs <- filterset(v,n,minexpr=2,minnumber=1)
s1d <- getsom(fs,nb=1000,k=5,locreg=TRUE,alpha=.5)
ps <- procsom(s1d,corthr=.85,minsom=3)
# plot average profile of all genes of node 1 in the self-organizing map
g <- names(ps$nodes)[ps$nodes == 1]
plotexpression(v,y,g,n,k=25,col=fcol,name="Node 1",cluster=FALSE,locreg=TRUE,alpha=.5,types=NULL)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.