mostRepresentativeSequences: Representative Sequences

Description Usage Arguments Value Author(s) Examples

View source: R/mostRepresentativeSequences.R

Description

Finds the set of sequences that represent the requested number of clusters.

Usage

1
2
3
4
5
6
7
8
mostRepresentativeSequences(
  x,
  num.seqs = NULL,
  model = "raw",
  pairwise.deletion = TRUE,
  as.haplotypes = TRUE,
  simplify = TRUE
)

Arguments

x

a DNAbin object.

num.seqs

number of sequences to return. If NULL (default), all sequences are returned.

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.

as.haplotypes

treat sequences as haplotypes (TRUE) or expand haplotypes to one sequence per individual (FALSE). If the latter, individual frequencies are used in cluster formation.

simplify

if there is a single locus, return result in a simplified form? If FALSE a list will be returned wth one element per locus.

Value

a vector of the sequence names.

Author(s)

Eric Archer eric.archer@noaa.gov

Examples

1
2
3
4
5

strataG documentation built on Feb. 28, 2020, 9:07 a.m.