writeAlignments {amplican} | R Documentation

## Write alignments to file.

### Description

Saves alignments into txt or fasta file.

### Usage

    writeAlignments(x, file = "", aln_format = "txt")

### Arguments

`x` | (AlignmentsExperimentSet)
`file` | (connection or string) Destination file. When empty, defaults to standard output.
`aln_format` | ("txt" or "fasta") Specifies format of the file.

### Value

(invisible)

### Examples

    file_path <- system.file("extdata", "results", "alignments",
                             "AlignmentsExperimentSet.rds", package = "amplican")
    aln <- readRDS(file_path)
    writeAlignments(aln, file.path(tempdir(), "aln.txt"))

[Package amplican version 1.16.0 Index]