Export an interactive HTML browser of differential GRNs
Source:R/utils_step3_topic_benchmark.R
visualize_differential_grns.RdBuilds an interactive TF-to-gene network browser from Module 3 filtered differential links. Users can select a comparison, choose up or down differential links, adjust the number of top TFs and links to display, and inspect footprint-supported edge evidence in tooltips.
Usage
visualize_differential_grns(
differential_links_dir,
output_dir = file.path(differential_links_dir, "reports"),
top_tf_n = 10L,
top_link_n = 300L,
default_direction = "up",
browser_max_rows_per_file = 50000L,
top_n = NULL,
verbose = TRUE
)Arguments
- differential_links_dir
Module 3 differential-link directory.
- output_dir
Directory where the browser HTML and CSV summaries are written.
- top_tf_n
Default number of top TFs shown in the browser.
- top_link_n
Default number of top TF-to-gene links shown in the browser.
- default_direction
Initial direction selected in the browser.
- browser_max_rows_per_file
Maximum filtered-link rows read from each comparison/direction file when building the browser payload. The full filtered-link CSVs remain the authoritative data source; this cap keeps the self-contained HTML browser responsive for large projects.
- top_n
Deprecated compatibility alias for
top_tf_n.- verbose
Emit concise progress messages.