R/selfBLASTaa.R

Defines functions selfBLASTaa

Documented in selfBLASTaa

#' Run BLASTp on amino acid sequences against themselves.
#'
#' @param path Path to fasta file of amino acid sequences to BLAST.
#'
#' @export

selfBLASTaa <- function(path){
  rBLAST::makeblastdb(path, dbtype="prot")
  blastdb <- rBLAST::blast(path, type="blastp")
  blastseq <- Biostrings::readAAStringSet(path)
  blastpred <- stats::predict(blastdb, blastseq)
}
brandonsie/epitopefindr documentation built on Oct. 31, 2021, 5:20 p.m.