ape (version 1.1-3)

write.dna: Write DNA Sequences in a File

Description

This function writes in a file a list of DNA sequences using either a sequential or an interleaved format. The names of the vectors of the list are used as taxa names.

Usage

write.dna(x, file = "", format = "interleaved", append = FALSE)

Arguments

x
a list a DNA sequences each made of a single vector of mode character where each element is a nucleotide.
file
a file name specified by either a variable of mode character, or a double-quoted string; if file = ""(the default) then the tree is written on the standard output connection.
format
a character string specifying the format of the DNA sequences. Two choices are possible: "interleaved" or "sequential".
append
a logical, if TRUE the tree is appended to the file without erasing the data possibly existing in the file, otherwise the file (if it exists) is overwritten (FALSE the default).

Value

  • None (invisible `NULL').

See Also

read.dna, read.GenBank