View source: R/transformationFunctions.R
getHlaFrequencies | R Documentation |
getHlaFrequencies
calculates allele frequencies in HLA calls data
frame.
getHlaFrequencies(
hla_calls,
carrier_frequency = FALSE,
compare = FALSE,
ref_pop = c("USA NMDP African American pop 2", "USA NMDP Chinese",
"USA NMDP European Caucasian", "USA NMDP Hispanic South or Central American",
"USA NMDP Japanese", "USA NMDP North American Amerindian",
"USA NMDP South Asian Indian"),
ref = allele_frequencies
)
hla_calls |
HLA calls data frame, as returned by
|
carrier_frequency |
Logical flag indicating if carrier frequency should be returned. |
compare |
Logical flag indicating if |
ref_pop |
Character vector giving names of reference populations in
|
ref |
Data frame giving reference allele frequencies. See
|
Both gene copies are taken into consideration for frequencies calculation,
frequency = n / (2 * j)
where n
is the number of allele
occurrences and j
is the number of samples in hla_calls
.
Data frame with each row holding HLA allele, it's count and frequency.
getHlaFrequencies(MiDAS_tut_HLA)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.