Description Usage Arguments Value Examples
Constructor for HLAGene objects.
| 1 2 3 4 5 6 | HLAGene(
  locusname,
  db_version = "Latest",
  db_path = getOption("hlatools.local_repos"),
  ...
)
 | 
| locusname | <character>; a valid HLA gene name. | 
| db_version | <character>; IPD-IMGT/HLA version (e.g.: 3.28.0, 3.18.0, ...) | 
| db_path | <character>; Location of local IPD-IMGT/HLA repository. Defaults to ‘~/local/db/IMGTHLA’. | 
| ... | Passed on to the initialiser. | 
A HLAGene object.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run: 
x <- HLAGene("DPB1")
db_version(x)
locusname(x)
length(x)
## extract alleles with complete sequences
x[is_complete(x)]
## extract all Common alleles
x[cwd_status(x) == "Common"]
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.