cds2codonaln | R Documentation |
This function takes two single sequence DNAString
's or
two single sequence DNAStringSet
's, converts them into aa, calculates
a global alignment and converts this alignment back into a codon alignment.
cds2codonaln(
cds1,
cds2,
type = "global",
substitutionMatrix = "BLOSUM62",
gapOpening = 10,
gapExtension = 0.5,
remove.gaps = FALSE,
...
)
cds1 |
single sequence |
cds2 |
single sequence |
type |
type of alignment (see
|
substitutionMatrix |
substitution matrix representing the fixed
substitution scores for an alignment (see
|
gapOpening |
the cost for opening a gap in the alignment (see
|
gapExtension |
the incremental cost incurred along the length of the
gap in the alignment (see |
remove.gaps |
specify if gaps in the codon alignment should be removed [default: FALSE] |
... |
other cds2aa parameters |
codon alignment as DNAStringSet
Kristian K Ullrich
Pagès, H et al. (2014) Biostrings: Efficient manipulation of biological strings. R package version, 2(0).
pairwiseAlignment
## define two cds sequences
cds1 <- Biostrings::DNAString("ATGCAACATTGC")
cds2 <- Biostrings::DNAString("ATGCATTGC")
cds2codonaln(cds1, cds2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.