writeAlignments: Write alignments to file.

Description Usage Arguments Value Examples

Description

Saves alignments into txt or fasta file.

Usage

1
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

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

amplican documentation built on Nov. 8, 2020, 11:10 p.m.