doGaussianMixtureModel | R Documentation |
Do Gaussian mixture modelling for isoform expression differences
doGaussianMixtureModel(dstat, s = NULL, delta, p = NULL, tbreak = NULL,
useExt = FALSE, delta.thres = 0.75)
dstat |
A vector of isoform difference |
s |
A vector of initital values of standard deviation of components |
delta |
A vector of initial values of mean of components |
p |
A vector of initial values of proportion of components |
tbreak |
The number of breaks to create bins |
useExt |
Option of binning tails or not |
delta.thres |
Used for estimated p0 |
A list of results and parameters of the mixture model
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)))
x0=isoformDataSample[1,]
x1=isoformDataSample[2,]
deltaVal=x0-x1
s=c(1,1,1);
delta=c(-5,0,5)
res=doGaussianMixtureModel(deltaVal,s=s,delta=delta,tbreak=tbreak)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.