writeFasta: Writes a named character vector of DNA sequences to a fasta...

writeFasta,character-methodR Documentation

Writes a named character vector of DNA sequences to a fasta file. Values are the sequences, and names are used for the id lines.

Description

Writes a named character vector of DNA sequences to a fasta file. Values are the sequences, and names are used for the id lines.

Usage

## S4 method for signature 'character'
writeFasta(object, file, mode = "w", width = 20000L, ...)

Arguments

object

(Required). A named character vector.

file

(Required). The output file.

mode

(Optional). Default "w". Append with "a".

width

(Optional). Default 20000L. Maximum line length before newline.

...

(Optional). Additonal arguments passed to writeXStringSet.

Value

NULL.

See Also

writeXStringSet


benjjneb/dada2 documentation built on Nov. 16, 2024, 6:45 a.m.