Function that detects standard network motifs from the lag-one autoregression relationships as implied by the VAR(1) model.
motifStatsVAR1(sparseA, verbose=TRUE)
A matrix
\(\mathbf{A}\) of autoregression parameters, which is assumed to be sparse.
A logical
specifying whether summary output should be displayed.
An object of class list
with slots:
A list
of motifs specified as matrices with each row one of the motif's paths and in the last column the sign of the path's contribution.
A list
of motifs specified as matrices with each row one of the motif's paths and in the last column the sign of the path's contribution.
A list
of motifs specified as matrices with each row one of the motif's paths and in the last column the sign of the path's contribution.
A list
of motifs specified as matrices with each row one of the motif's paths and in the last column the sign of the path's contribution.
A list
of motifs specified as matrices with each row one of the motif's paths and in the last column the sign of the path's contribution.
A list
of motifs specified as matrices with each row one of the motif's paths and in the last column the sign of the path's contribution.
Six types of motifs are detected: self-regulators, feedback pairs, feedforward loops, feedback loops, bi-fans, and diamonds (cf. Alon, 2007 for details). A detected motif is reported by the paths that
constitute them. In line with Alon (2007), who distinguishes subtypes of these motived based on the sign of the path's contribution, the latter is also reported. When verbose=TRUE
the summary output is also visualized. See this plot for the definition of the motifs in terms of the VAR(1) time series chain graph.
Alon, U. (2007), ``Network motifs: theory and experimental approaches'', Nature Reviews Genetics, 8, 450-461.
# NOT RUN {
# specify lag one autoregression model
sparseA <- matrix(runif(2500), ncol=50)
sparseA[sparseA < 0.9] <- 0
# find motifs
motifList <- motifStatsVAR1(sparseA)
# }
Run the code above in your browser using DataLab