physeq: physeq constructor

Description Usage Arguments Examples

Description

Creates a new physeq object (a list of sequences) from a vector of headings and sequences, which can then be saved as a FASTA or PHYLIP file.

Usage

1
physeq(headings, sequences)

Arguments

headings

Vector of sequence names

sequences

Vector of nucleotide/amino acid sequences

Examples

1
2
3
4
5
x <- physeq(c("Seq 1", "Seq 2"), c("RRARRPR", "PKKKRKV"))
print(x)
x$Headings #Get or modify headings
x$Sequences #Get or modify sequences
WriteFasta(x, "Seqs.fa")

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