writeAlignments: Write alignments to file.

writeAlignmentsR 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"))


valenlab/amplican documentation built on Jan. 28, 2024, 5:10 a.m.