seg.sites: Find Segregating Sites in DNA Sequences

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/DNA.R

Description

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

Usage

1

Arguments

x

a matrix or a list which contains the DNA sequences.

Details

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

Value

A numeric (integer) vector giving the indices of the segregating sites.

Author(s)

Emmanuel Paradis

See Also

base.freq, theta.s, nuc.div

Examples

1
2
3
4

Example output

 [1]  30  33  35  36  42  51  54  60  72  96 106 123 201 213 234 237 279 291 297
[20] 306 314 316 318 340 342 343 349 365 409 417 438 456 462 477 510 514 534 540
[39] 546 576 591 672 675 684 697 715 738 810 837 876 909 920 957 959 960 963
[1] 56

ape documentation built on April 5, 2018, 1:03 a.m.