KIR3DL1_HLA_B_inhibiting: Classifies KIR3DL1 and HLA-B into strong/weak/no inhibiting

Description Usage Arguments Value Examples

View source: R/kir.R

Description

Classifies KIR3DL1 and HLA-B into strong/weak/no inhibiting

Usage

1
KIR3DL1_HLA_B_inhibiting(KIR3DL1_assignment, HLA_B_overall, levels = 2)

Arguments

HLA_B_overall

String vector with HLA-B Bw classification in format "Bw4 - 80T", from HLA_B_classification

levels

Can be set to 2, 3 or 4, default is 2

KIRD3L1_assignment

String vector, KIR3DL1 assignment in fromat "KIR3DL1-H", from KIR3DL1_3DS1_assignment

Value

If levels = 2, string with "Strong inhibiting", "Weak inhibiting/noninhibiting" or "unknown". If levels = 3, split into "Weak inhibiting" and "non-inhibiting". If levels = 4, split "noninhibiting" into "Missing ligand" and "Educated, uninhibiting"

Examples

1
2
3
4
dat <- data.frame(assignment_KIR3DL1 = c("KIR3DL1-L", "KIR3DL1-N", "unknown", "unknown"), HLA_B_group = c("Bw4 - 80T", "Bw4 - 80I", NA, "Bw4 - 80I"), stringsAsFactors = FALSE)
KIR3DL1_HLA_B_inhibiting(dat$assignment_KIR3DL1, dat$HLA_B_group)
KIR3DL1_HLA_B_inhibiting(dat$assignment_KIR3DL1, dat$HLA_B_group, levels = 3)
KIR3DL1_HLA_B_inhibiting(dat$assignment_KIR3DL1, dat$HLA_B_group, levels = 4)

bosefalk/CTUtools documentation built on Feb. 4, 2022, 4:10 p.m.