Returns a data frame with counts and statistical properties (expectation, variances) of six selected motifs in the given network. Note that this function implicitly assumes that the network is undirected, cf. motifr::to_py_graph.

motif_summary(net, lvl_attr = c("sesType"))

Arguments

net

network object

lvl_attr

character vector specifying the attribute name where level information is stored in net.

Value

dataframe with motif counts, expectations and variances for set of selected motifs

Examples

# \dontrun{ motif_summary(ml_net)
#> motif count expectation variance #> 1 1,2[I.C] 543 169.14423077 949.77428949 #> 2 1,2[II.C] 167 16.96153846 25.69286965 #> 3 2,1[I.C] 217 109.90569527 437.59757816 #> 4 2,1[II.C] 7 10.23853550 13.91309018 #> 5 2,2[III.C] 73 0.44811771 0.52381527 #> 6 2,2[III.D] 1 0.04174551 0.04302532
# }