Description Objects from the Class Slots Methods Accessors Author(s) References Examples
A S4 object holds result from EpiCluster function, including result of bgNMF and RPBMM. And this object is specificly used in EpiAnalysis and EpiDraw function.
Objects can be created by calls of the form new("EpiClusterResult", ...)
.
This S4 object contains result of bgNMF (a list contain 5 element), a S3 class object of RPBMM (a blcTree object from RPMM package, need to load RPMM package) and clustering result of EpiCluster. Not that this object is what will be used in EpiDraw() and EpiAnalysis() function. So it's better not to modified its internal structure.
bgNMF
:Object of class "list"
Result of bgNMF function, a list object which contains Parameter Matrix and Excitation Matrix.
Cluster
:Object of class "factor"
clustering result of RPMM, this is a factor vector in which each cluster was named as rL,rR,rLL,rLR..., each cluster is a branch for the whole RPBMM binary tree. For some users may not want so much branch, can use maxlevel parameter in EpiDraw and EpiAnalysis function to assemble some branches into a bigger cluster.
betaRPMM
:Object of class "ANY"
Special S3 object provided by RPMM package , which contain all information and clustering parameter for each cluster (and each node in clustering binary tree), for more information, users may check RPMM package for help
signature(x = "EpiClusterResult")
: ...
signature(x = "EpiClusterResult")
: ...
signature(x = "EpiClusterResult")
: ...
signature(x = "EpiClusterResult")
: ...
signature(x = "EpiClusterResult")
: ...
signature(x = "EpiClusterResult")
: ...
In the code snippets below, x
is an EpiClusterResult object.
getbgNMF(x)
:
Return the bgNMF list result in x
.
getCluster(x)
:
Return the Cluster factor vector result in x
.
getbetaRPMM(x)
:
Return the betaRPMM object in x
.
setbgNMF(x,value)
:
Reset betaNMF list result in x
.
setCluster(x,value)
:
Reset Cluster factor vector in x
.
setbetaRPMM(x,value)
:
Reset the betaRPMM object in x
.
Yuan Tian, Zhanyu Ma, Andrew Teschendorff
Yuan T, Ma Z, Beck S, Teschendorff AE. (2015). A fast variational Bayes dimensional reduction and clustering algorithm for Epigenome-Wide Association Studies (EWAS). Under Review.
1 2 3 4 5 6 7 8 9 10 11 12 | showClass("EpiClusterResult")
Data <- GenSimData(Ncpg=1000,Nsig=100)
EpiCluster.Result <- EpiCluster(Data$beta,nIter=20,EE=0.005)
bgNMF_result <- getbgNMF(EpiCluster.Result)
Cluster_result <- getCluster(EpiCluster.Result)
betaRPMM_result <- getbetaRPMM(EpiCluster.Result)
EpiCluster.Result <- setbgNMF(EpiCluster.Result,bgNMF_result)
EpiCluster.Result <- setCluster(EpiCluster.Result,Cluster_result)
EpiCluster.Result <- setbetaRPMM(EpiCluster.Result,betaRPMM_result)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.