R/threshBLAST.R

Defines functions threshBLAST

Documented in threshBLAST

#' Subset initial BLAST alignbment table to only include alignments below a
#' specified e-value threshold.
#'
#' @param blast Initial BLAST alignment table.
#' @param e.thresh Maximum e-value threshold to retain.
#'
#' @export

threshBLAST <- function(blast, e.thresh){
  blast <- blast[blast$E < as.numeric(e.thresh), ]
  if(nrow(blast) > 0){return(blast)}
}
brandonsie/epitopefindr documentation built on Oct. 31, 2021, 5:20 p.m.