View source: R/transformationFunctions.R
getAAFrequencies | R Documentation |
getAAFrequencies
calculates amino acid frequencies in amino acid
data frame.
getAAFrequencies(aa_variation)
aa_variation |
Amino acid variation data frame as returned by hlaToAAVariation. |
Both gene copies are taken into consideration for frequencies calculation,
frequency = n / (2 * j)
where n
is the number of amino acid
occurrences and j
is the number of samples in aa_variation
.
Data frame with each row holding specific amino acid position, it's count and frequency.
aa_variation <- hlaToAAVariation(MiDAS_tut_HLA)
getAAFrequencies(aa_variation)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.