R/bFDR.R

Defines functions bFDR

bFDR <- function(ans_mrs, threshold) {
  PMAPs <- ans_mrs$RepresentativeTree$AltProbs
  selected <- PMAPs > threshold
  if (!any(selected)) {
    return(0)
  }
  mean(1 - PMAPs[selected])
}

Try the MRS package in your browser

Any scripts or data that you put into this service are public.

MRS documentation built on July 22, 2026, 5:10 p.m.