write_fasta: Write sequences to a file in fasta format

View source: R/write_fasta.R

write_fastaR Documentation

Write sequences to a file in fasta format

Description

Write sequences to a file in fasta format

Usage

write_fasta(seqs, file, mode = c("w", "a"), linewidth = 60)

Arguments

seqs

named character vector or list of sequences; if a list only provide one sequence per index

file

full path to the output file to be written; recommended file extension: .fa or .fasta

mode

how to write file: 'w' to initiate or overwrite; 'a' to append an existing file

linewidth

number of character per line (only valid for sequence, not names)

Value

no return; file written to disk


Close-your-eyes/igsc documentation built on Jan. 28, 2024, 10:28 p.m.