Estimate synonymous and nonsynonymous substitution rates
[
Dn, Ds, Vardn, Vards
]
= dnds(SeqNT1
, SeqNT2
)
[Dn, Ds, Vardn, Vards
]
= dnds(SeqNT1
, SeqNT2
,
...'GeneticCode', GeneticCodeValue
, ...)
[Dn, Ds, Vardn, Vards
]
= dnds(SeqNT1
, SeqNT2
,
...'Method', MethodValue
, ...)
[Dn, Ds, Vardn, Vards
]
= dnds(SeqNT1
, SeqNT2
,
...'Window', WindowValue
, ...)
[Dn, Ds, Vardn, Vards
]
= dnds(SeqNT1
, SeqNT2
,
...'AdjustStops', AdjustStopsValue
, ...)
[Dn, Ds, Vardn, Vards
]
= dnds(SeqNT1
, SeqNT2
,
...'Verbose', VerboseValue
, ...)
SeqNT1 , SeqNT2 | Nucleotide sequences. Enter a character vector, string, or a structure with the field
Sequence . |
GeneticCodeValue | Property to specify a genetic code. Enter a Code Number, a character vector, or string with a
Code Name from the table Genetic Code. If you use a Code
Name, you can truncate it to the first two characters. Default is
1 or Standard . |
MethodValue | Character vector or string specifying the method for calculating substitution rates. Choices are:
|
WindowValue | Integer specifying the sliding window size, in codons, for calculating substitution rates and variances. |
AdjustStopsValue | Controls whether stop codons are excluded from calculations.
Choices are true (default) or false . |
VerboseValue | Property to control the display of the codons considered in
the computations and their amino acid translations. Choices are true or false (default).Tip Specify |
Dn | Nonsynonymous substitution rate(s). |
Ds | Synonymous substitution rate(s). |
Vardn | Variance for the nonsynonymous substitution rate(s). |
Vards | Variance for the synonymous substitutions rate(s). |
[
estimates
the synonymous and nonsynonymous substitution rates per site between
the two homologous nucleotide sequences, Dn, Ds, Vardn, Vards
]
= dnds(SeqNT1
, SeqNT2
)SeqNT1
and SeqNT2
,
by comparing codons using the Nei-Gojobori method.
dnds
returns:
Dn
— Nonsynonymous
substitution rate(s).
Ds
— Synonymous
substitution rate(s).
Vardn
— Variance
for the nonsynonymous substitution rate(s).
Vards
— Variance
for the synonymous substitutions rate(s).
This analysis:
Assumes that the nucleotide sequences, SeqNT1
and SeqNT2
,
are codon-aligned, that is, do not have frame shifts
Tip
If your sequences are not codon-aligned, use the nt2aa
function
to convert them to amino acid sequences, use the nwalign
function
to globally align them, then use the seqinsertgaps
function
to recover the corresponding codon-aligned nucleotide sequences. For
an example, see Estimate synonymous and nonsynonymous substitution rates between two nucleotide sequences.
Excludes codons that include ambiguous nucleotide characters or gaps
Considers the number of codons in the shorter of the two nucleotide sequences
Caution
If SeqNT1
and SeqNT2
are
too short or too divergent, saturation can be reached, and dnds
returns NaN
s
and a warning message.
[
calls Dn, Ds, Vardn, Vards
] =
dnds(SeqNT1
, SeqNT2
,
...'PropertyName
', PropertyValue
,
...)dnds
with optional properties
that use property name/property value pairs. You can specify one or
more properties in any order. Each PropertyName
must
be enclosed in single quotation marks and is case insensitive. These
property name/property value pairs are as follows:
[
calculates synonymous and nonsynonymous substitution rates using the specified genetic
code. Enter a Code Number, a character vector or string with a Code Name from the table
Genetic Code. If you use a Code Name, you can truncate it to the first two
characters. Default is Dn, Ds, Vardn, Vards
]
= dnds(SeqNT1
, SeqNT2
,
...'GeneticCode', GeneticCodeValue
, ...)1
or Standard
.
[
allows
you to calculate synonymous and nonsynonymous substitution rates using
the following algorithms:Dn, Ds, Vardn, Vards
]
= dnds(SeqNT1
, SeqNT2
,
...'Method', MethodValue
, ...)
NG
(default) — Nei-Gojobori
method (1986) uses the number of synonymous and nonsynonymous substitutions
and the number of potentially synonymous and nonsynonymous sites.
Based on the Jukes-Cantor model.
LWL
— Li-Wu-Luo method (1985)
uses the number of transitional and transversional substitutions at
three different levels of degeneracy of the genetic code. Based on
Kimura's two-parameter model.
PBL
— Pamilo-Bianchi-Li
method (1993) is similar to the Li-Wu-Luo method, but with bias correction.
Use this method when the number of transitions is much larger than
the number of transversions.
[
performs
the calculations over a sliding window, specified in codons. Each
output is an array containing a rate or variance for each window.Dn, Ds, Vardn, Vards
]
= dnds(SeqNT1
, SeqNT2
,
...'Window', WindowValue
, ...)
[
controls
whether stop codons are excluded from calculations. Choices are Dn, Ds, Vardn, Vards
]
= dnds(SeqNT1
, SeqNT2
,
...'AdjustStops', AdjustStopsValue
, ...)true
(default)
or false
.
Tip
When the 'AdjustStops'
property is set
to true
, the following are true:
Stop codons are excluded from frequency tables.
Paths containing stop codons are not counted in the Nei-Gojobori method.
[
controls
the display of the codons considered in the computations and their
amino acid translations. Choices are Dn, Ds, Vardn, Vards
]
= dnds(SeqNT1
, SeqNT2
,
...'Verbose', VerboseValue
, ...)true
or false
(default).
Tip
Specify true
to use this display to manually
verify the codon alignment of the two input sequences, SeqNT1
and SeqNT2
.
The presence of stop codons (*
) in the amino acid
translation can indicate that SeqNT1
and SeqNT2
are
not codon-aligned.
[1] Li, W., Wu, C., and Luo, C. (1985). A new method for estimating synonymous and nonsynonymous rates of nucleotide substitution considering the relative likelihood of nucleotide and codon changes. Molecular Biology and Evolution 2(2), 150–174.
[2] Nei, M., and Gojobori, T. (1986). Simple methods for estimating the numbers of synonymous and nonsynonymous nucleotide substitutions. Molecular Biology and Evolution 3(5), 418–426.
[3] Nei, M., and Jin, L. (1989). Variances of the average numbers of nucleotide substitutions within and between populations. Molecular Biology and Evolution 6(3), 290–300.
[4] Nei, M., and Kumar, S. (2000). Synonymous and nonsynonymous nucleotide substitutions” in Molecular Evolution and Phylogenetics (Oxford University Press).
[5] Pamilo, P., and Bianchi, N. (1993). Evolution of the Zfx And Zfy genes: rates and interdependence between the genes. Molecular Biology and Evolution 10(2), 271–281.