WritePhylip: PHYLIP-format file sequence alignment writer

Description Usage Arguments Examples

View source: R/FastaPhylip.R

Description

Writes a PHYLIP multiple sequence alignment file from a physeq object. If sequences are not the same length, there will be an error

Usage

1
WritePhylip(x, filename, blocks = 5, blocksize = 10)

Arguments

x

The physeq object to read from

filename

The name of the file to create

blocks

The number of sequences per block. Default = 5

blocksize

The number of characters per sequence per block. Default = 10

Examples

1
2
3
4
x <- ReadFasta("MSA.fa") #Creates the physeq object 'x'
WritePhylip(x, "MSA.phy")
y <- physeq(c("Seq 1", "Seq 2"), c("RRARRPR", "PKKKRKV"))
WritePhylip(y, "Seqs.phy")

yh986/PhyFormat documentation built on Jan. 3, 2022, 12:50 p.m.