View source: R/aastring2aabin.R
aastring2aabin | R Documentation |
This function converts an AAStringSet
into an ape
AAbin
.
aastring2aabin(aa)
aa |
|
An object of class AAbin
Kristian K Ullrich
as.alignment
as.DNAbin.alignment
## 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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.