Write.fasta: Write 'FASTA' files

View source: R/aaa.r

Write.fastaR Documentation

Write 'FASTA' files

Description

Simple writing of 'FASTA' files

Usage

Write.fasta(df, file)

Arguments

df

Name of data frame

file

File name

Details

Simple writing of 'FASTA' files. If the data frame has more then two columns, only two first columns will be used (with warning).

Value

'FASTA' file on the disk.

Author(s)

Alexey Shipunov

Examples

ff <- data.frame(one="some_id", two="ATGC", three="something else")
Write.fasta(ff, file=file.path(tempdir(), "tmp.fasta")) # warning will be produced
file.show(file=file.path(tempdir(), "tmp.fasta")) # interactive

shipunov documentation built on Feb. 16, 2023, 9:05 p.m.