Learn R Programming

EnvNJ (version 0.1.3)

df2fasta: Convert Dataframe into Fasta File

Description

Converts a dataframe into a fasta file.

Usage

df2fasta(df, out.file)

Arguments

df

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

out.file

path and name of output file.

Value

A fasta file that is saved in the specified path.

Details

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

See Also

fastaconc()

Examples

Run this code
# NOT RUN {
df2fasta(df = bovids, out.file = "./example.fasta")
# }

Run the code above in your browser using DataLab