Tikhonova Polina. Homework 2

In [ ]:
library(BoolNet)
my_network <- loadNetwork("boolnetwork.txt")

1 Bool network expressions

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)

In [ ]:
plotNetworkWiring(my_network)

alt text

2 Markov chains

In [ ]:
sim <- markovSimulation(my_network, numIterations=500)
sim    # 6 states have a non-zero probability of being reached after 500 iterations

alt text

3 Attractors

In [ ]:
attr <- getAttractors(my_network)
print(attr, activeOnly=TRUE)

alt text

Baisins of attraction

In [ ]:
plotStateGraph(attr)

alt text

In [ ]:
par(mfrow=c(2, 1))
plotAttractors(attr)

alt text

All genes expressed initially

In [ ]:
attr_start_states <- getAttractors(my_network, startStates = list(rep(1,9)))
attr_start_states
plotAttractors(attr_start_states)

alt text

In [ ]:
path <- getPathToAttractor(my_network, rep(1,9))
plotSequence(sequence=path)

alt text

Asynchronous

In [ ]:
attr_asynchron <- getAttractors(my_network, type="asynchronous")
attr_asynchron
plotAttractors(attr_asynchron)

alt text

4 Other network

In [ ]:
my_new_network <- fixGenes(my_network, c("CLN3","MBF"), c(0,1))
other_attractors <- getAttractors(my_new_network)
plotAttractors(other_attractors)

alt text