Description Usage Arguments Details Value Examples
Draw a saturation plot of the oligotyping input file
1 2 |
aln |
a matrix containing the DNA sequences; this must be of class "DNAbin" |
nseqs |
a value for the number of sequences to pick |
model |
a character string specifying the evolutionary model to be used by |
all |
a logical indicating whether to use all codon positions; defaults to FALSE so only the third codon position is used. |
verbose |
a logical indicating whether to show in screen the progress; defaults to TRUE. |
seed |
a value for the random number generator. This will allow you to repeat the analysis |
Usually oligotyping datasets are very large and perform a full analysis would be computationally really expensive. We
recommend to use up to 5000 random sequences in a desktop computer. You can calculate multiple saturation plots and its associated
statistics using plot_saturation_n
to get a better overview of your alignment.
An object of class “oligodiag” is a list containing at least the following components:
a ggplot object containing the saturation plot
the seed used for picking the random sequences
a matrix of the random selected sequences stored in binary format
mean and standard deviation of transitions and transversions
logical if all codon positions have been used
whether your alignemnt possible presents saturation
1 | saturation_plot <- plot_saturation(aln, nseqs = 1000, all = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.