csv_to_fasta: CSV to Fasta

View source: R/csv_to_fasta.R

csv_to_fastaR Documentation

CSV to Fasta

Description

Creates a Fasta file from a CSV

Usage

csv_to_fasta(
  csv_file,
  df = read.csv(csv_file),
  outfile = gsub("\\.csv$", "_fasta.txt", basename(csv_file)),
  outdir = "."
)

Arguments

csv_file

file path to the CSV to read in

df

data.frame, the results of read.csv

outfile

name of output file

outdir

directory to write output to. Defaults to current working directory

Value

file path to fasta file

Author(s)

Matt Espe


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