Learn R Programming

haplotypes (version 1.1.3.1)

read.fas: Read sequences from a file in FASTA format

Description

Read DNA sequences from a file in FASTA Format.

Usage

read.fas(file)

Value

read.fas returns an object of class Dna.

Arguments

file

the name of the file, which the sequence in the FASTA format is to be read from. If it does not contain an absolute path, the file name is relative to the current working directory, getwd().

Author

Caner Aktas, caktas.aca@gmail.com

See Also

Dna

Examples

Run this code

##Reading example file.	
f<-system.file("example.fas",package="haplotypes")
 
# invalid character 'N' was replaced with '?' with a warning message
x<-read.fas(file=f) 

# an object of class 'Dna'
x

Run the code above in your browser using DataLab