R/getRankThreshold.R

Defines functions getRankThreshold

getRankThreshold <- function(caller_str) {
  threshold <- NULL
  PFconfig <- getEnvVariable('PFconfig')
  if(caller_str %in% names(PFconfig)) {
    threshold <- PFconfig[caller_str]
  } else if("default_threshold" %in% names(PFconfig)) {
    threshold <- PFconfig["default_threshold"]
  }
  
  threshold
}
szilvajuhos/sarek.pathfindr documentation built on Dec. 19, 2020, 3:13 a.m.