as.data.frame.cograph_motif_analysis: Tidy table of a motif extraction

View source: R/motifs-extract.R

as.data.frame.cograph_motif_analysisR Documentation

Tidy table of a motif extraction

Description

Tidy table of a motif extraction

Usage

## S3 method for class 'cograph_motif_analysis'
as.data.frame(
  x,
  row.names = NULL,
  optional = FALSE,
  what = c("results", "types"),
  ...
)

Arguments

x

A cograph_motif_analysis object from extract_motifs().

row.names, optional

Ignored; present for the generic.

what

"results" (default) for the triad table, or "types" for one row per MAN type with columns type and count (the number of unit-level occurrences of that type).

...

Ignored.

Value

A data frame: the results table described in extract_motifs(), or the per-type counts.

Examples

m <- extract_motifs(regulation_net, min_transitions = 0)
as.data.frame(m, what = "types")

cograph documentation built on Nov. 19, 2026, 5:07 p.m.