Learn R Programming

rphast (version 1.6.9)

names.msa: MSA Sequence Names

Description

Returns the sequence names for an MSA object.

Usage

# S3 method for msa
names(x)

Arguments

x

an MSA object

Value

a character vector giving the names of the sequences, or NULL if they are not defined

Examples

Run this code
# NOT RUN {
m <- msa(seqs=c("ACGTAT", "AGGTAA", "AGGTAG"),
         names=c("human", "mouse", "rat"))
names.msa(m)
m <- msa(seqs=c("ACGTAT", "AGGTAA", "AGGTAG"))
names.msa(m)
# }

Run the code above in your browser using DataLab