R/countFrameShifting.R

Defines functions countFrameShifting

Documented in countFrameShifting

#'Count frameshifts with MACSE
#'@param aaSeq macse aligned AA sequence
#'@return number of '!' characters since MACSE uses them to introduce frameshifting indels to the alignments
#'@import stringr
#'@export

countFrameShifting<-function(aaSeq){
  return (str_count(aaSeq, '!'))
}
oacar/synal documentation built on Feb. 22, 2020, 1:42 p.m.