rbh2kaks | R Documentation |
This function calculates Ka/Ks (dN/dS; accoring to
Li (1993) or Yang and Nielson (2000) for each
(conditional-)reciprocal best hit (CRBHit) pair. The names of the rbh
columns must match the names of the corresponding cds1
and cds2
DNAStringSet
vectors.
rbh2kaks(
rbhpairs,
cds1,
cds2,
model = "Li",
plotHistPlot = FALSE,
plotDotPlot = FALSE,
dag = NULL,
gene.position.cds1 = NULL,
gene.position.cds2 = NULL,
tandem.dups.cds1 = NULL,
tandem.dups.cds2 = NULL,
colorBy = "none",
threads = 1,
...
)
rbhpairs |
(conditional-)reciprocal best hit (CRBHit) pair result
(see |
cds1 |
cds1 sequences as |
cds2 |
cds2 sequences as |
model |
specify codon model either "Li" or "NG86" or one of KaKs_Calculator2 model "NG", "LWL", "LPB", "MLWL", "MLPB", "GY", "YN", "MYN", "MS", "MA", "GNG", "GLWL", "GLPB", "GMLWL", "GMLPB", "GYN", "GMYN" [default: Li] |
plotHistPlot |
specify if histogram should be plotted [default: TRUE] |
plotDotPlot |
specify if dotplot should be plotted (mandatory to define
|
dag |
specify DAGchainer results as obtained via 'rbh2dagchainer()' [default: NULL] |
gene.position.cds1 |
specify gene position for cds1 sequences
(see |
gene.position.cds2 |
specify gene position for cds2 sequences
(see |
tandem.dups.cds1 |
specify tandem duplicates for cds1 sequences
(see |
tandem.dups.cds2 |
specify tandem duplicates for cds2 sequences
(see |
colorBy |
specify if Ka/Ks gene pairs should be colored by "rbh_class", dagchainer", "tandemdups" or "none" [default: none] |
threads |
number of parallel threads [default: 1] |
... |
other codon alignment parameters
(see |
Ka/Ks values
Kristian K Ullrich
Li WH. (1993) Unbiased estimation of the rates of synonymous and nonsynonymous substitution. J. Mol. Evol., 36, 96-99.
Wang D, Zhang Y et al. (2010) KaKs_Calculator 2.0: a toolkit incorporating gamma-series methods and sliding window strategies. Genomics Proteomics Bioinformatics. 8(1), 77-80.
Yang Z and Nielson R. (2000) Estimating synonymous and nonsynonymous substitution rates under realistic evolutionary models. Mol. Biol. Evol., 17(1), 32-43.
dnastring2kaks
,
isoform2longest
,
cds2genepos
,
plot_kaks
,
rbh2dagchainer
,
tandemdups
## load example sequence data
data("ath", package="CRBHits")
data("aly", package="CRBHits")
## load example CRBHit pairs
data("ath_aly_crbh", package="CRBHits")
## only analyse subset of CRBHit pairs
ath_aly_crbh$crbh.pairs <- head(ath_aly_crbh$crbh.pairs)
ath_aly_crbh.kaks <- rbh2kaks(
rbhpairs=ath_aly_crbh,
cds1=ath,
cds2=aly,
model="Li")
head(ath_aly_crbh.kaks)
## plot kaks
g.kaks <- plot_kaks(ath_aly_crbh.kaks)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.