writeFasta,character-method {dada2} | R 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`

[Package dada2 version 1.18.0 Index]