Learn R Programming

VLF (version 1.1)

fasta.read: Read Fasta Files

Description

Reads in fasta files and converts into sequence matrix

Usage

fasta.read(file, seqlength = 648, pos1 = 1, pos2 = 3)

Value

A matrix of sequences, with the unique specimen identifers in the first column, the species names in the second column, and the sequence starting in the third column.

Arguments

file

A fasta file to be read in.

seqlength

Length of sequence.

pos1

The position within the fasta title of the unique specimen identifier. By default pos1 = 1.

pos2

The position within the fasta title of the species name. By default pos2 = 3.

Author

Taryn B. T. Athey and Paul D. McNicholas