\name{ICMg.combined.sampler} \alias{ICMg.combined.sampler} \title{ICMg.combined.sampler} \description{Main function of the ICMg algorithm. ICMg.combined.sampler computes samples from the posterior of the assignments of datapoints (interactions and expression profiles) to latent components. From these we can then obtain component membership distributions and clusterings for genes.} \usage{ICMg.combined.sampler(L, X, C, alpha=10, beta=0.01, pm0=0, V0=1, V=0.1, B.num=8, B.size=100, S.num=20, S.size=10, C.boost=1)} \author{ Juuso Parkkinen } \references{Parkkinen, J. and Kaski, S. Searching for functional gene modules with interaction component models. BMC Systems Biology 4 (2010), 4.} \arguments{ \item{L}{ N x 2 matrix of link endpoints (N = number of links). } \item{X}{ M x D matrix of gene expression profiles (M = number of nodes, D = number of observations). } \item{C}{ Number of components. } \item{alpha}{ Hyperparameter describing the global distribution over components, larger alpha gives a more uniform distribution. } \item{beta}{ Hyperparameter describing the component-wise distributions over nodes, larger beta gives a more uniform distribution. } \item{pm0}{ Hyperparameter describing the prior mean of the expression profiles, should be zero. } \item{V0}{ Hyperparameter describing the variation of the component-wise expression profiles means around pm0. } \item{V}{ Hyperparameter describing the variation of gene-specific expression profiles around the component-wise means. } \item{B.num}{ Number of burnin rounds.* } \item{B.size}{ Size of one burnin round.* } \item{S.num}{ Number of sample rounds.* } \item{S.size}{ Size of one sample round.* } \item{C.boost}{ Set to 1 to use faster iteration with C, set to 0 to use slower R functions. } } \details{One run consists of two parts, during burnin the sampler is expected to mix, after which the samples are taken. Information about convergence (convN and convL are estimates of convergence for link and node sampling, respectively) and component sizes are printed after each burnin/sample round. For example: B.num=8, B.size=100, S.num=20, S.size=10, runs 800 burnin iterations in 8 rounds and then takes 20 samples with an interval of 10 iterations.} \value{ Returns samples as a list: \item{z}{ S.num x N matrix of samples of component assignments for links. } \item{w}{ S.num x M matrix of samples of component assignments for gene expression profiles. } \item{convl}{ Vector of length (B.num + S.num) with convergence estimator values for link sampling. } \item{convn}{ Vector of length (B.num + S.num) with convergence estimator values for node sampling. } \item{countsl}{ (B.num + S.num) x C matrix of link component sizes. } \item{countsn}{ (B.num + S.num) x C matrix of node component sizes. } additionally all parameters of the run are included in the list. } \seealso{ \code{\link{ICMg.links.sampler}}} \examples{ library(netresponse) data(osmo) # Load data set ## Run ICMg combined sampler res = ICMg.combined.sampler(osmo$ppi, osmo$exp, C=10) } \keyword{ methods }