read.fas | R Documentation |
Read DNA sequences from a file in FASTA Format.
read.fas(file)
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,
|
read.fas
returns an object of class Dna
.
By default, valid characters are "A","C","G","T","a","c","g","t","-","?" for the class Dna
. Numeric entries (integers) between 0-5 will be converted to "?","A","C","G","T","-", respectively. Invalid characters will be replaced with "?" with a warning message.
Caner Aktas, caktas.aca@gmail.com
Dna
##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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.