df2fasta: Conversion of data frames with correct layout to fasta files.

Description Usage Arguments Examples

View source: R/df2fasta.R

Description

Typically used in conjunction with fasta2dataframe.

Usage

1
2
3
4
5
6
df2fasta(
  dataframe,
  filename = "fastadf",
  seqIDcolumn = "SeqIDs",
  seqColumn = "readseq"
)

Arguments

dataframe

a dataframe containing sequence identifiers and sequences in separate columns. with column names

filename

desirec filename (defaults to fastadf)

seqIDcolumn

string indicating the name of the column with the sequence identifiers (defaults to SeqIDs).

seqColumn

string indicating the name of the column with the sequences themselves (defaults to readseq)

Examples

1
2
3
4
5
6
## Short example

# Load precomputed example data
data(otureps)
# write out the associated fasta
df2fasta(otureps,filename="oturep.fasta",seqIDcolumn="OTU")

CMET-UGent/CMETNGS documentation built on Dec. 12, 2020, 8:22 a.m.