df2fasta: Convert Dataframe into Fasta File

Description Usage Arguments Details Value See Also Examples

View source: R/dataprep.R

Description

Converts a dataframe into a fasta file.

Usage

1
df2fasta(df, out.file)

Arguments

df

a named (both rows and cols) dataframe (see details).

out.file

path and name of output file.

Details

The format of the df should be as follows. Each row represents a protein sequence and each column a species.

Value

A fasta file that is saved in the specified path.

See Also

fastaconc()

Examples

1
## Not run: df2fasta(df = bovids, out.file = "./example.fasta")

EnvNJ documentation built on Sept. 27, 2021, 5:07 p.m.

Related to df2fasta in EnvNJ...