fasta.out: A function to write a fasta file

View source: R/fasta.out.R

fasta.outR Documentation

A function to write a fasta file

Description

Write a fasta file using datafram with data obtained from BOLD. The file is written by marker code.

Usage

fasta.out(x.df, marker.name, output.name = "output", remove.empty = FALSE, nbchar = 60)

Arguments

x.df

A dataframe containing data obtained from BOLD.

marker.name

A DNA marker.

output.name

The name of the output file. The extension ".fasta" is added by default.

remove.empty

Remove rows which do not have an entry for the chosen marker type.

nbchar

The number of characters per line.

Value

none.

Author(s)

Nishan Mudalige

Examples

example.df <- get.public(container="PRT")

fasta.out(example.df, "COI-5P_nucraw", output.name = "testfile1")

fasta.out(example.df, "COI-5P_nucraw", output.name = "testfile2", remove.empty=TRUE)

nishanmudalige/BOLD.R documentation built on July 15, 2022, 3:33 a.m.