Learn R Programming

rphast (version 1.6.9)

write.msa: Writing MSA Objects to Files

Description

Writes a multiple sequence alignment (MSA) object to a file in one of several formats.

Usage

write.msa(x, file=NULL,
format=ifelse((f <- guess.format.msa(file, method="extension"))=="UNKNOWN", "FASTA", f),
pretty.print=FALSE)

Arguments

x

an object of class msa

file

File to write (will be overwritten). If NULL, output goes to terminal.

format

format to write MSA object. Valid values are "FASTA", "PHYLIP", "MPM", or "SS".

pretty.print

Whether to pretty-print alignment (turning bases which match the first base in the same column to ".").