readFasta: Read fasta files.

View source: R/functions.R

readFastaR Documentation

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.

Details

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

Value

an instance of DnaSeq or RnaSeq.

Author(s)

Laurent Gatto lg390@cam.ac.uk

See Also

GenericSeq, DnaSeq and RnaSeq.

Examples

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

lgatto/sequences documentation built on Feb. 27, 2024, 11:11 p.m.