writeFasta: Write FASTA

View source: R/write_fasta.R

writeFastaR Documentation

Write FASTA

Description

This function is based on one originally authored by Katie Karpenko for writing FASTA files out. The functionality is identical to that function, but this version has been optimized.

Usage

writeFasta(
  data,
  filename,
  sample_column = "SampleName",
  sequence_column = "ESVseq",
  ...
)

Arguments

data

data.frame

filename

character, the name of the file to write to

sample_column

character, the name of the sample ID column in data

sequence_column

character, the name of the sequence column in data

...

addtional args passed to writeLines()

Value

filename, the path to the file that was written

Author(s)

Matt Espe and Katie Karpenko


fishsciences/metabarcode_utils documentation built on Feb. 25, 2024, 11:31 a.m.