ape (version 1.8-3)

seg.sites: Find Segregating Sites in DNA Sequences

Description

This function gives the indices of segregating (polymorphic) sites in a sample of DNA sequences.

Usage

seg.sites(X)

Arguments

X
a matrix, a data frame, or a list which contains the DNA sequences.

Value

  • A numeric vector giving the indices of the segregating sites.

Details

If the sequences are in a list, all the sequences must be of the same length.

See Also

base.freq, GC.content, theta.s, nuc.div

Examples

Run this code
data(woodmouse)
y <- seg.sites(woodmouse)
y
length(y)

Run the code above in your browser using DataCamp Workspace