Usage
birteRun(dat.mRNA, mRNA.Sigma=NULL, nrep.mRNA=c(5, 5), df.mRNA=sum(nrep.mRNA)-2, data.regulators=NULL, sigma.regulators=NULL, nrep.regulators=NULL, diff.regulators=NULL, init.regulators=NULL, theta.regulators=NULL, reg.interactions=FALSE, affinities, use.affinities=FALSE, niter=100000, nburnin=100000, thin=50, potential_swaps=NULL, only_switches=FALSE, only.diff.TFs=TRUE, explain.LFC=TRUE, model=c("no-plug-in", "all-plug-in"))
birteLimma(dat.mRNA, limmamRNA, data.regulators=NULL, limma.regulators=NULL, fdr.regulators=NULL, lfc.regulators=NULL,
init.regulators=NULL, theta.regulators=NULL, reg.interactions=FALSE, affinities, use.affinities=FALSE,
niter=100000, nburnin=100000, thin=50, potential_swaps=NULL, only_switches=FALSE, only.diff.TFs=TRUE, explain.LFC=TRUE, model=c("no-plug-in", "all-plug-in"))
Arguments
dat.mRNA
mRNA expression data matrix. IMPORTANT: Replicates must be ordered according to nrep.mRNA
mRNA.Sigma
gene expression variances (array data). IMPORTANT: Names have to match the row names in dat.mRNA. If mRNA.Sigma = NULL, birte.run tries to deduce variances from a limma analysis (see limmaAnalysis) nrep.mRNA
number of replicates per condition.
df.mRNA
residual degrees of freedom of linear model for mRNA data.
data.regulators
list with at most 3 components (miRNA, TF, other). Each component contains one data matrix. IMPORTANT: Samples in data matrices have to be grouped according to conditions. That means first there are all samples from the first condition, then those from the second condition, etc.
sigma.regulators
list with at most 3 components (miRNA, TF, other). Each component contains one named vector of expression variances (array data) or dispersion parameters (RNAseq data). IMPORTANT: Names have to fit to the row names of the data matrix.
nrep.regulators
list with at most 3 components (miRNA, TF, other). Each component contains the number of replicates per condition
diff.regulators
list with at most 3 components (miRNA, TF, other). Each component is a character vector with differentially expressed regulators. Has to be subset of row names of the data matrix
init.regulators
list with at most 3 components (miRNA, TF, other). Each component is matrix of #conditions x length(affinities[[regulator type]]): initial states for regulators. In case this matrix is not provided (i.e. NULL) initial states are assumed to be 0. IMPORTANT: column names have to match names(affinities[[regulator type]])
theta.regulators
list with at most 3 components (miRNA, TF, other). If single numbers are provided, each component contains the expected fraction of active regulators. If vectors are provided, each vector entry corresponds to the individual probability of a specific regulator to be active. Accordingly, vectors should be named in agreement with the regulator-target gene network. If affinities$other corresponds to interaction terms between regulators, theta.regulators can also be provided as a #regulators x #regulators matrix.
reg.interactions
If TRUE, entries of affinities$other are interpreted as interaction terms between regulators.
affinities
Regulator-target gene interactions. This is a list with at most three components (TF, miRNA, other). Each of these lists again contains a weighted adjacency list representation. See humanNetworkSimul for an example. IMPORTANT: gene names used in this network have to match with row names of dat.mRNA. Moreover, regulator names have to fit to row names of the corresponding data matrices. use.affinities
Should weights given in the bipartite regulator-target gene graph given a specific meaning? If yes, it is assumed that weights correspond to quantitative influences of regulators on their targets.
niter
Number of MCMC iterations (AFTER burnin).
nburnin
Number of MCMC iterations UNTIL burnin is assumed to be finished.
thin
Thinning of Markov chain: only use every thin's sample for posterior computation.
potential_swaps
Pre-computed potential swaps (OPTIONAL, see get_potential_swaps).
only_switches
Should only switches be performed?
only.diff.TFs
Should, in case of TF expression data, only the information for differentially expressed TFs be considered? Note that this makes fewer assumption about the relation of mRNA and protein expression data, but typically leads to less conservative results (i.e. more TFs predicted to be active).
limmamRNA
results of limma analysis for mRNA data according to limmaAnalysis limma.regulators
list with at most 3 components (miRNA, TF, other). Each component contains the results of a limma analysis for regulator data according to limmaAnalysis lfc.regulators
list with at most 3 components (miRNA, TF, other). Each component contains the log fold change cutoff for differential expression. It is assumed to be 0, if not provided.
fdr.regulators
list with at most 3 components (miRNA, TF, other). Each component contains the FDR cutoff for differential expression (DEFAULT: 0.05).
explain.LFC
If yes, biRte tries to explain mRNA log fold changes rather than expression levels itself.
model
If "no-plug-in", for marginal log likelihoods are considered for regulator specific expression data. Otherwise, (posterior) variance estimates are used directly.