View source: R/getTransitionProbabilities.R
getTransitionProbabilities | R Documentation |
Retrieves the state transitions and their probabilities in a probabilistic Boolean network. This takes the transition table information calculated by the markovSimulation
method.
getTransitionProbabilities(markovSimulation)
markovSimulation |
An object of class |
Returns a data frame with the first n
columns describing the values of the genes before the transition, the next n
columns describing the values of the genes after the transition, and the last column containing the probability of the transition. Here, n
is the number of genes in the underlying network. Only transitions with non-zero probability are included.
markovSimulation
## Not run:
# load example network
data(examplePBN)
# perform a Markov chain simulation
sim <- markovSimulation(examplePBN)
# print out the probability table
print(getTransitionProbabilities(sim))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.