sim_find_fp: This function finds the number of false positives when...

View source: R/sim_find_fp.R

sim_find_fpR Documentation

This function finds the number of false positives when comparing two sets of recombination breakpoints

Description

This function finds the number of true negatives by finding the predictions which don't intersect with true recombination spots at all If there are no non-NA truths but some non-NA predictions, the number of false positives are equal to the number of non-NA predictions because predictions are present for breakpoints that aren't there If there are some non-NA truths but no non-NA predictions, we have 0 false positives

Usage

sim_find_fp(
  pred_intersect_dt,
  pred_dt_nona,
  no_truths = FALSE,
  no_preds = FALSE
)

Arguments

pred_intersect_dt

a data table from foverlaps intersecting the predictions from rhapsodi and the truth data with columns of gam, True_Start, True_End, Predicted_Start, Predicted_End

pred_dt_nona

a data table of just the predicted data from rhapsodi with no NAs in start or stop columns

no_truths

bool, default is FALSE; if TRUE, that means there were only NAs in the truth information and no real recombination break points

no_preds

bool, default is FALSE; if TRUE, that means there were only NAs in the prediction information and no predicted recombination break points

Value

fp an integer, the number of false negatives


mccoy-lab/rhapsodi documentation built on July 27, 2022, 3:56 a.m.