View source: R/dnastring2dnabin.R
dnastring2dnabin | R Documentation |
This function converts a DNAStringSet
into an
ape
DNAbin
.
dnastring2dnabin(dna)
dna |
|
An object of class DNAbin
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 DNAbin
#dnastring2dnabin(cds1.cds2.aln)
cds1.cds2.aln |> dnastring2dnabin()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.