-## DNA.R (2010-07-13)
+## DNA.R (2010-07-14)
## Manipulations and Comparisons of DNA Sequences
as.matrix = FALSE)
{
MODELS <- c("RAW", "JC69", "K80", "F81", "K81", "F84", "T92", "TN93",
- "GG95", "LOGDET", "BH87", "PARALIN", "N")
+ "GG95", "LOGDET", "BH87", "PARALIN", "N", "TS", "TV")
imod <- pmatch(toupper(model), MODELS)
if (is.na(imod))
stop(paste("'model' must be one of:",
warning("computing variance temporarily not available for model BH87.")
variance <- FALSE
}
- if (gamma && imod %in% c(1, 5:7, 9:12)) {
+ if (gamma && imod %in% c(1, 5:7, 9:15)) {
warning(paste("gamma-correction not available for model", model))
gamma <- FALSE
}
n <- dim(x)
s <- n[2]
n <- n[1]
- BF <- if (is.null(base.freq)) base.freq(x) else base.freq
+ if (imod %in% c(4, 6:8)) {
+ BF <- if (is.null(base.freq)) base.freq(x) else base.freq
+ } else BF <- 0
if (!pairwise.deletion) {
keep <- .C("GlobalDeletionDNA", x, n, s,
rep(1L, s), PACKAGE = "ape")[[4]]