Nothing
attractorSummary <- function (tpost, post.prob.limit = 0.01, wildtype = TRUE){
perturbationObj(tpost) <- perturbationObj(tpost)+2
steadyStateObj(tpost) <- round(steadyStateObj(tpost))+2
nOutcomes <- 3
n.genes <- nrow(perturbationObj(tpost))
n.sample <- ncol(perturbationObj(tpost))
RowNames <- c(1:n.genes)
ColNames <- c(1:n.sample)
forced.gene.list <- NULL
for (i in c(1:n.sample)) {
fg <- c(1:n.genes)[perturbationObj(tpost)[, i] != 2]
fs <- perturbationObj(tpost)[fg, i]
forced.gene.list <- append(forced.gene.list,
list(list(forced.genes = fg, forced.states = fs)))
}
initial.state.obj <- list(forced.gene.list = forced.gene.list, initial.states = steadyStateObj(tpost))
attr <- attractor.posterior.2(tpost, initial.state.obj, wt = wildtype)
post.attr.summary.list <- NULL
for (i in c(1:n.sample)) {
post.attr.summary.list <- append(post.attr.summary.list, list(list(obs = steadyStateObj(tpost)[, i] - nOutcomes + 1, attr = condense.attractor(attr[[i]], post.prob.limit))))
}
post.attr.summary.table <- NULL
for (i in c(1:n.sample)) {
m <- rbind(post.attr.summary.list[[i]]$obs, post.attr.summary.list[[i]]$attr$uni.attr)
m <- cbind(rep(i, dim(m)[1]), m, c(0, post.attr.summary.list[[i]]$attr$p.attr))
post.attr.summary.table <- rbind(post.attr.summary.table,m)
colnames(post.attr.summary.table) <- c("index",RowNames,"PostProb")
}
post.attr.summary.table
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.