readFASTA: Read DNA/RNA Sequences in FASTA Format

Description Usage Arguments Details Value Note Author(s) References Examples

Description

Read DNA/RNA Sequences in FASTA Format

Usage

1
readFASTA(file, legacy.mode = TRUE, seqonly = FALSE)

Arguments

file

The name of the file which the sequences in fasta format are to be read from. If it does not contain an absolute or relative path, the file name is relative to the current working directory, getwd. The default here is to read the example.fasta file which is present in the protseq directory of the protr package.

legacy.mode

If set to TRUE, lines starting with a semicolon ';' are ignored. Default value is TRUE.

seqonly

If set to TRUE, only sequences as returned without attempt to modify them or to get their names and annotations (execution time is divided approximately by a factor 3). Default value is FALSE.

Details

This function reads DNA/RNA sequences in FASTA format.

Value

The result character vector

Note

Note

Author(s)

Min-feng Zhu <wind2zhu@163.com>

References

Pearson, W.R. and Lipman, D.J. (1988) Improved tools for biological sequence comparison. Proceedings of the National Academy of Sciences of the United States of America, 85: 2444-2448

Examples

1
x = readFASTA(system.file('dnaseq/hs.fasta', package = 'rDNAse'))

wind22zhu/rDNAse documentation built on May 4, 2019, 6:31 a.m.