View source: R/doMixtureModelGene.R
doMixtureModelGene | R Documentation |
Do mixture modelling for all pairs of isoforms of the same single individual gene
doMixtureModelGene(isoMat, geneName = "geneName", usePlot = FALSE,
useMixModel = TRUE, zero.thres = 0.05, nq.num = 3, tbreak = NULL,
group.label = NULL)
isoMat |
Data matrix contains isoforms of a same individual gene. Each row indicates a isoform, while each column presents a cell |
geneName |
A string contains the name of gene that the isoforms are sharing |
usePlot |
A boolean value to allow plotting data and results. By default usePlot=FALSE |
useMixModel |
A boolean value to allow implementing the mixture model. By default useMixModel=TRUE |
zero.thres |
The threshold to separate components from null component p0. See |
nq.num |
The maximum components of the mixture model. See |
tbreak |
The number of breaks to create bins. See |
group.label |
The group label of cells used for pair plotting |
Lists of results of mixture models for isoform paires
data(isoformDataSample)
#preprocessing
isoformDataSample=ifelse(isoformDataSample <= 3,0,isoformDataSample)
isoformDataSample=isoformDataSample[which(rowSums(isoformDataSample)>0),]
#tranform read count dataset to log scale
isoformDataSample=ifelse(isoformDataSample==0,0,log2(isoformDataSample))
#now data is ready
tbreak=round(sqrt(ncol(isoformDataSample)))
isoMat=isoformDataSample[c(1,2),]
res=doMixtureModelGene(isoMat,geneName="118424",tbreak=tbreak)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.