sim_metrics_helper: Helper function to compute metrics.

View source: R/sim_metrics.R

sim_metrics_helperR Documentation

Helper function to compute metrics.

Description

sim_metrics_helper helps compute metrics by aggregating and scaling.

Usage

sim_metrics_helper(
  collated_sim,
  sim_type_signal,
  sim_type_background,
  summary_cols,
  annotation_cols,
  identifier = NULL,
  use_furrr = FALSE
)

Arguments

collated_sim

output of sim_collated, which is a data.frame with some attributes.

sim_type_signal

character string specifying the type of replication being measured. This must be one of the strings "rep" or "rep_group".

sim_type_background

character string specifying the background distributions for computing scaled metrics. This must be one of the strings "non_rep" or "ref".

summary_cols

character list specifying columns by which to group similarities.

annotation_cols

character list specifying annotation columns.

identifier

character string specifying the identifier to add as a suffix to the columns containing scaled-aggregated metrics.

use_furrr

boolean indicating whether to use the furrr library for parallel processing.

Value

data.frame of metrics.


matric documentation built on April 1, 2023, 12:19 a.m.