prepare_for_roc: Helper function used to prepare 'activity' elements or...

View source: R/eval.R

prepare_for_rocR Documentation

Helper function used to prepare activity elements or decouple outputs for calc_curve. This is done by keeping only the the perturbed or predicted sources and assigning the score (or statistical method results e.g. Normalized Enrichment Score) as the predictor.

Description

Helper function used to prepare activity elements or decouple outputs for calc_curve. This is done by keeping only the the perturbed or predicted sources and assigning the score (or statistical method results e.g. Normalized Enrichment Score) as the predictor.

Usage

prepare_for_roc(df, filter_tn = FALSE)

Arguments

df

activity column elements - i.e. decouple() output.

filter_tn

logical flag indicating if unnecessary negatives should be filtered out

Value

tidy data frame with meta information for each experiment and the response and the predictor value which are required for ROC and PR curve analysis


saezlab/decoupleRBench documentation built on March 20, 2022, 3:02 p.m.