View source: R/consensusProfile.R
consensusProfile | R Documentation |
consensusProfile()
takes a DNA multiple alignment as input and
returns all the data needed for subsequent primer and probe design process.
The function is a wrapper to
Biostrings::consensusMatrix()
(Pages et al., 2020).
consensusProfile(x, ambiguityThreshold = 0)
x |
A |
ambiguityThreshold |
"Detection level" for ambiguous bases.
All DNA bases that occur with a relative frequency higher than the
specified value will be included when the IUPAC consensus character
is determined.
Can range from 0 to 0.2, defaults to |
An RprimerProfile
object, which contains the following information:
Position in the alignment.
Proportion of A.
Proportion of C.
Proportion of G.
Proportion of T.
Proportion of bases other than A, C, G, T.
Proportion of gaps (recognized as "-" in the alignment).
Majority consensus sequence. Denotes the most frequently occurring nucleotide. If two or more bases occur with the same frequency, the consensus nucleotide will be randomly selected among these.
Proportion of sequences, among all sequences with a DNA base (i.e., A, C, G or T), that has the majority consensus base.
The consensus sequence expressed in IUPAC format.
The IUPAC consensus sequence only
takes 'A', 'C', 'G', 'T' and '-' as input. Degenerate bases
will be skipped. If a position only contains
degenerate bases, the IUPAC consensus will be NA
at that
position.
Proportion of sequences in the target alignment,
among all sequences with a DNA base, that are covered the IUPAC consensus
character.
The value will be 1 if there are no "remaining" DNA bases (and/or if
ambiguityThreshold = 0
).
Pages, H., Aboyoun, P., Gentleman R., and DebRoy S. (2020). Biostrings: Efficient manipulation of biological strings. R package version 2.57.2.
data("exampleRprimerAlignment")
consensusProfile(exampleRprimerAlignment)
consensusProfile(exampleRprimerAlignment, ambiguityThreshold = 0.05)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.