Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

writeFasta

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


dada2

Accurate, high-resolution sample inference from amplicon sequencing data

v1.18.0
LGPL-3
Authors
Benjamin Callahan <benjamin.j.callahan@gmail.com>, Paul McMurdie, Susan Holmes
Initial release
2020-08-07

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.