Learn R Programming

sequences (version 0.5.9)

readFasta: Read fasta files.

Description

Reads sequences data in fasta and create DnaSeq and RnaSeq instances.

Usage

readFasta(infile)

Arguments

infile
the name of the fasta file which the data are to be read from.

Value

  • an instance of DnaSeq or RnaSeq.

Details

This funtion reads DNA and RNA fasta files and generates valid "DnaSeq" and "RnaSeq" instances.

See Also

GenericSeq, DnaSeq and RnaSeq.

Examples

Run this code
f <- dir(system.file("extdata",package="sequences"),pattern="fasta",full.names=TRUE)
f
aa <- readFasta(f[1])
aa

Run the code above in your browser using DataLab