read_fasta: Reads fasta file.

Description Usage Arguments Value

Description

Reads fasta file from provided path and returns list of sequences (strings) with sequence names as names of items in list. This include some manipulation with sequence names to remove trailing whitespace and standardization of sequences themselves (uppercase) for future smooth processing. Also, if illegal characters are found in sequence, throws warning.

Usage

1
read_fasta(file, skip = 0, nlines = 0, comment.char = "")

Arguments

file

Name of fasta file

skip

the number of lines of the input file to skip before beginning to read data values.

nlines

if positive, the maximum number of lines of data to be read.

comment.char

character: a character vector of length one containing a single character or an empty string. Use "" to turn off the interpretation of comments altogether (the default).

Value

List of sequences.


J-Moravec/sighunt documentation built on May 7, 2019, 6:46 a.m.