fasta.read: Read Fasta Files

View source: R/fasta.read.R

fasta.readR Documentation

Read Fasta Files

Description

Reads in fasta files and converts into sequence matrix

Usage

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

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.

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.

Author(s)

Taryn B. T. Athey and Paul D. McNicholas


VLF documentation built on Aug. 18, 2022, 5:06 p.m.