Learn R Programming

bnClustOmics (version 1.1.1)

getModels: Deriving consensus graphs

Description

When the parameter 'epmatrix' is set to TRUE, the object of class 'bnclustOmics' includes postrior probabilitis of all edges in the discovered graphs. This function can be used to derive a consensus graph representing discovered clusters according to a specified posterior probability threshold. Only edges with posteriors above the threshold will be included in the resulting consensus models.

Usage

getModels(bnres, p)

Value

a list of adjacency matrices corresponding to consensus graphs representing discovered clusters

Arguments

bnres

object of class 'bnclustOmics'

p

posterior probability threshold

Author

Polina Suter

Examples

Run this code
MAPmod<-dags(bnres3)
CONSmod1<-getModels(bnres3,p=0.5)
CONSmod2<-getModels(bnres3,p=0.9)
library(BiDAG)
compareDAGs(MAPmod[[1]],simdags[[1]])
compareDAGs(CONSmod1[[1]],simdags[[1]])
compareDAGs(CONSmod2[[1]],simdags[[1]])

Run the code above in your browser using DataLab