library(BoolNet)
my_network <- loadNetwork("boolnetwork.txt")
targets, factors
MBF, CLN3
SBF, (CLN3 | MBF) & ! (YOX1 & YHP1)
YOX1, MBF & SBF
HCM1, MBF & SBF
YHP1, MBF | SBF
SFF, SBF & HCM1
ACE2, SFF
SWI5, SFF
CLN3, (SWI5 & ACE2) & ! (YOX1 & YHP1)
plotNetworkWiring(my_network)
sim <- markovSimulation(my_network, numIterations=500)
sim # 6 states have a non-zero probability of being reached after 500 iterations
attr <- getAttractors(my_network)
print(attr, activeOnly=TRUE)
plotStateGraph(attr)
par(mfrow=c(2, 1))
plotAttractors(attr)
attr_start_states <- getAttractors(my_network, startStates = list(rep(1,9)))
attr_start_states
plotAttractors(attr_start_states)
path <- getPathToAttractor(my_network, rep(1,9))
plotSequence(sequence=path)
attr_asynchron <- getAttractors(my_network, type="asynchronous")
attr_asynchron
plotAttractors(attr_asynchron)
my_new_network <- fixGenes(my_network, c("CLN3","MBF"), c(0,1))
other_attractors <- getAttractors(my_new_network)
plotAttractors(other_attractors)