antbs: samples HLA antibodies

View source: R/histo.R

antbsR Documentation

samples HLA antibodies

Description

creates a sample of HLA antibodies (abs) for a given candidate according with a cPRA value.

Usage

antbs(
  cA = c("2", "29"),
  cB = c("7", "15"),
  cDR = c("4", "7"),
  cPRA = 85,
  origin = "PT",
  n_seed = 3
)

Arguments

cA

candidate's HLA-A typing

cB

candidate's HLA-B typing

cDR

candidate's HLA-DR typing

cPRA

candidate's cPRA value

origin

A character value from options: 'API', 'AFA', 'CAU' and 'HIS'

n_seed

a numeric seed that will be used for random number generation.

Value

a character vector with HLA abs.

Examples

antbs(cA = c('2','29'), cB = c('7','15'), cDR = c('4','7'),
cPRA = 85, origin = 'PT', n_seed = 3)

balima78/simK documentation built on May 23, 2023, 5:02 p.m.