###### run the following codes in order
#
# data("Count") ## a sample data set with RNA-seq expressions
# ## for 1000 genes, 4 treatment and 2 replicates
# head(Count)
# GeneID=1:nrow(Count)
# Normalizer=rep(1,ncol(Count))
# Treatment=rep(1:4,2)
# mydata=RNASeq.Data(Count,Normalize=NULL,Treatment,GeneID)
# ## standardized RNA-seq data
# c0=KmeansPlus.RNASeq(mydata,nK=10)$centers
# ## choose 10 cluster centers to initialize the clustering
# cls=Cluster.RNASeq(data=mydata,model="nbinom",centers=c0,method="EM")$cluster
# ## use EM algorithm to cluster genes
# tr=Hybrid.Tree(data=mydata,cluste=cls,model="nbinom")
# ## bulild a tree structure for the resulting 10 clusters
# plotHybrid.Tree(merge=tr,cluster=cls,logFC=mydata$logFC,tree.title=NULL)
# ## plot the tree structure
Run the code above in your browser using DataLab