Learn R Programming

spider (version 1.5.1)

seqStat: Sequence statistics

Description

Utility that produces a table giving summary statistics for a `DNAbin' object.

Usage

seqStat(DNAbin, thresh = 500)

Value

A table giving the minimum, maximum, mean and median sequence lengths, and the number of sequences with lengths below the given threshold.

Arguments

DNAbin

Alignment of class `DNAbin'.

thresh

Threshold sequence length. Default of 500 (minimum length for official DNA barcodes).

Author

Rupert Collins <rupertcollins@gmail.com>

Details

This function considers bases coded as '?', 'N' and '-' as missing data.

Examples

Run this code

data(anoteropsis)
seqStat(anoteropsis)

Run the code above in your browser using DataLab