getKIRFrequencies.Rd
getKIRFrequencies
calculates KIR genes frequencies in KIR calls data
frame.
getKIRFrequencies(kir_calls)
KIR calls data frame, as returned by
readKirCalls
function.
Data frame with each row holding KIR gene, it's count and frequency.
getKIRFrequencies(MiDAS_tut_KIR)
#> gene Counts Freq
#> 1 KIR3DL3 935 1.0000000
#> 2 KIR2DS2 455 0.4866310
#> 3 KIR2DL2 449 0.4802139
#> 4 KIR2DL3 849 0.9080214
#> 5 KIR2DP1 925 0.9893048
#> 6 KIR2DL1 918 0.9818182
#> 7 KIR3DP1 935 1.0000000
#> 8 KIR2DL4 935 1.0000000
#> 9 KIR3DL1 853 0.9122995
#> 10 KIR3DS1 365 0.3903743
#> 11 KIR2DL5 485 0.5187166
#> 12 KIR2DS3 294 0.3144385
#> 13 KIR2DS5 288 0.3080214
#> 14 KIR2DS4 853 0.9122995
#> 15 KIR2DS1 371 0.3967914
#> 16 KIR3DL2 935 1.0000000