get_AUC: Calculate Area Under Curve comparing tumor and control...

View source: R/get_AUC.R

get_AUCR Documentation

Calculate Area Under Curve comparing tumor and control samples

Description

This function calculates the Area Under Curve that define the segregation between tumor and control samples accordingly to their methylation (beta) values.

Usage

get_AUC(
  tumor_table,
  control_table,
  max_NA_data = 0,
  cores = 1,
  full_info = FALSE
)

Arguments

tumor_table

A matrix of beta-values from tumor samples.

control_table

A matrix of beta-values from normal/control samples.

max_NA_data

At most this fraction of NAs (in tumor and control data independently) is permitted to calculate AUC of a site (default=1, i.e. only sites without NAs).

cores

Number of cores for parallel computing.

full_info

If TRUE (default=FALSE) returns also sites infos (fraction of NAs in tumor and control tables) without skipping probes with missing values.

Value

A data.frame with AUC scores and probes names

Examples

auc_data <- get_AUC(tumor_toy_data, control_toy_data)

romagnolid/PAMES documentation built on Dec. 7, 2022, 10:37 a.m.