pruneMotifStats: Network motif list subsetting.

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/pruneMotifStats.r

Description

Limit a list of network motifs as returned by the motifStatsVAR1-function to those involving a particular node.

Usage

1
pruneMotifStats(motifList, id)

Arguments

motifList

A list with motifs as returned by the motifStatsVAR1-function.

id

A integer representing the node of interest.

Value

An object of class list with slots:

selfregulators

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.

feedbackpairs

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.

feedforwardloops

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.

feedbackloops

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.

bifans

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.

diamonds

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.

Future versions of this function may include additional slots reporting more motif types.

Author(s)

Wessel N. van Wieringen <w.vanwieringen@vumc.nl>.

References

Alon, U. (2007), “Network motifs: theory and experimental approaches”, Nature Reviews Genetics, 8, 450-461.

See Also

graphVAR1, motifStatsVAR1

Examples

1
2
3
4
5
6
7
8
9
# specify lag one autoregression model
sparseA <- matrix(runif(2500), ncol=50)
sparseA[sparseA < 0.9] <- 0

# find motifs 
motifList <- motifStatsVAR1(sparseA)

# prune motif list
pruneMotifStats(motifList, 1)

wvanwie/ragt2ridges documentation built on May 4, 2019, 12:03 p.m.