Learn R Programming

strataG (version 2.0.2)

fasta: Read and Write FASTA

Description

Read and write FASTA formatted files of sequences.

Usage

read.fasta(file)

write.fasta(x, file = "sequences.fasta")

Arguments

file

a FASTA-formatted file of sequences.

x

a list or a matrix of DNA sequences (see write.dna), or a gtypes object with sequences.

Value

read.fasta

a set of sequences in DNAbin format

write.fasta

invisbly, name(s) of file(s) written