Learn R Programming

inferCSN (version 1.2.0)

calculate_auc: Calculate AUC Metrics

Description

Calculates AUROC and AUPRC metrics with optional visualization

Usage

calculate_auc(
  network_table,
  ground_truth,
  return_plot = FALSE,
  line_color = "#1563cc",
  line_width = 1,
  tag_levels = "A"
)

Value

A list containing metrics and optional plots

Arguments

network_table

A data frame of predicted network structure

ground_truth

A data frame of ground truth network

return_plot

Logical value indicating whether to generate plots

line_color

Color for plot lines

line_width

Width for plot lines

tag_levels

Tag levels for plot annotations

Examples

Run this code
data(example_matrix)
data("example_ground_truth")
network_table <- inferCSN(example_matrix)
calculate_auc(
  network_table,
  example_ground_truth,
  return_plot = TRUE
)

Run the code above in your browser using DataLab