R/revCompTest.R

# LAST UPDATE: 2013-11-21

revCompTest <- function(DNAbin, split, benchmark = TRUE,
                        mafft.exe){
  
  if ( benchmark ) if ( !split["benchmark"] ) split <- !split
  DNAbin <- as.list(DNAbin)
  rc <- function(s) rev(as.DNAbin(comp(s)))
  DNAbin[!split] <- lapply(DNAbin[!split], rc)
  mafft(DNAbin, path = mafft.exe)
}

Try the megaptera package in your browser

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

megaptera documentation built on Jan. 15, 2017, 11:19 p.m.