seqalignment: Create seqalignment class object

Description Usage Arguments Details Value Examples

Description

Create seqalignment class object

Usage

1

Arguments

x

A character matrix

Details

This class is, internally, a list containing character matrix $sequences, $type (a guess at what kind of sequence it is: dna, rna, or aa), and $genes (a character vector with labels for the genes; initialized at "1" for all. However, one cool thing about this class is that if you use [] to access elements, this returns elements from within the $sequences object, not the class object itself.

Value

A seqalignment object

Examples

1
2
3
4
5
6
7
library(ape)
data(woodmouse)
mice.raw <- as.character(woodmouse)
print(mice.raw[1:3, 1:20])
mice.seqalignment <- seqalignment(mice.raw)
print(mice.seqalignment[1:3, 1:20])
print(mice.seqalignment$type)

bomeara/sleq documentation built on May 12, 2019, 11:36 p.m.