aastring2aabin: aastring2aabin

View source: R/aastring2aabin.R

aastring2aabinR Documentation

aastring2aabin

Description

This function converts an AAStringSet into an ape AAbin.

Usage

aastring2aabin(aa)

Arguments

aa

AAStringSet [mandatory]

Value

An object of class AAbin

Author(s)

Kristian K Ullrich

See Also

as.alignment as.DNAbin.alignment

Examples

## define two cds sequences
cds1 <- Biostrings::DNAString("ATGCAACATTGC")
cds2 <- Biostrings::DNAString("ATG---CATTGC")
cds1.cds2.aln <- c(Biostrings::DNAStringSet(cds1),
    Biostrings::DNAStringSet(cds2))
## convert into AAbin
#aastring2aabin(cds2aa(cds1.cds2.aln))
cds1.cds2.aln |> cds2aa() |> aastring2aabin()

kullrich/MSA2dist documentation built on Nov. 14, 2024, 5:39 p.m.