Learn R Programming

VLF (version 1.1)

count.function: Nucleotide Count

Description

Counts the number of each dNTP in each position of an aligned barcode matrix.

Usage

count.function(nucleotides, spec.no, seqlength)

Value

A matrix containing the number of each nucleotide in each position of the sequence. Each row is a different dNTP count, while the columns represent the sequence position.

Arguments

nucleotides

A matrix of aligned DNA barcode sequences. DNA sequences should start at the third column of the matrix, while the first column contains a unique specimen identifier and the second column contains the species name.

spec.no

The number of specimen/sequences in the nucldeotide matrix.

seqlength

The length of the nucleotide sequences.

Author

Taryn B. T. Athey and Paul D. McNicholas

Examples

Run this code
if (FALSE) data(birds)
Nuc.count <- count.function(birds, specimen.Number, 648)

Run the code above in your browser using DataLab