reconstructTimeseries: This method is used to reconstruct time series data

View source: R/modelling_FBN.R

reconstructTimeseriesR Documentation

This method is used to reconstruct time series data

Description

This method is used to reconstruct time series data

Usage

reconstructTimeseries(
  fbnnetwork,
  initialStates,
  type = c("synchronous", "asynchronous"),
  maxTimepoints = 100,
  useParallel = FALSE
)

Arguments

fbnnetwork

An object of FBN network

initialStates

A list of initial states

type

Specify the type of the Fundamental Boolean model (synchronous or asynchronous)

maxTimepoints

The max time points that are going to be constructed

useParallel

Optional, if TRUE then use parallelisation

Value

A list object that contains reconstructed time series and FBN network

Examples

require(BoolNet)
data('ExampleNetwork')
initialStates <- generateAllCombinationBinary(ExampleNetwork$genes)
trainingseries <- genereateBoolNetTimeseries(ExampleNetwork,
                                           initialStates,
                                           43,
                                           type='synchronous')
cube <- constructFBNCube(target_genes = ExampleNetwork$genes,
                       conditional_genes = ExampleNetwork$genes,
                       timeseriesCube = trainingseries,
                       maxK = 4,
                       temporal = 1,
                       useParallel = FALSE)
network <- mineFBNNetwork(cube)
result <- reconstructTimeseries(fbnnetwork = network,
                              initialStates = initialStates,
                              type = 'synchronous',
                              maxTimepoints = 43)
result

clsdavid/FBNNet2_public documentation built on April 20, 2023, 4:36 p.m.