Learn R Programming

strataG (version 2.0.2)

mostDistantSequences: Most Distant Sequences

Description

Finds the set of sequences that have the greatest mean pairwise distance and smallest variance of pairwise distances.

Usage

mostDistantSequences(x, num.seqs = NULL, model = "raw",
  pairwise.deletion = TRUE)

Arguments

x

a DNAbin object.

num.seqs

number of sequences to return.

model

a character string specifying the evolutionary model to be used. See dist.dna for more information.

pairwise.deletion

a logical indicating whether to delete sites with missing data. See dist.dna for more information.

Value

a vector of the sequence names that are have the greatest mean pairwise distance and smallest variance of pairwise distances. The names are returned in order from most to least distant.

Examples

Run this code
# NOT RUN {
library(ape)
data(dolph.haps)

mostDistantSequences(as.DNAbin(dolph.haps))

# }

Run the code above in your browser using DataLab