This method is used to calculate the next state
An object of FBNNetwork
A vector of current gene state
The index of the current step
a list of genes which index order must match with the current state
A type of Boolean network update schema chosen from synchronous, asynchronous based. Asynchronous will randomly pick up a gene to process at time.
An value indicates the period of time when to degrade an activated gene if no activators presented. It is usually one time step
A list object that contains reconstructed time series and FBN network
data(ExampleNetwork)
trainingseries<-FBNDataReduction(BoolNet::generateTimeSeries(ExampleNetwork,
32,10))
cube<-constructFBNCube(target_genes = ExampleNetwork$genes,
conditional_genes = ExampleNetwork$genes,
timeseriesCube = trainingseries,
maxK = 3,
temporal = 1,
useParallel = FALSE)
NETWORK2<-mineFBNNetwork(cube,ExampleNetwork$genes)
state<-c('0','1','1','0','1')
names(state)<-c('Gene1','Gene2','Gene3','Gene4','Gene5')
getFBMSuccessor(NETWORK2,
previous_states= state,
current_step = 2,
genes = names(state),
type = 'synchronous')
#> $nextState
#> Gene1 Gene2 Gene3 Gene4 Gene5
#> 0 0 1 1 0
#>
#> $decayIndex
#> Gene1 Gene2 Gene3 Gene4 Gene5
#> 1 1 1 1 1
#>