R6 Class "HLAGene"
R6 Class "HLAGene"
A container for the allelic information of an HLA gene.
new()Create a new HLAgene object.
HLAGene_$new(
locusname,
db_version,
db_path = getOption("hlatools.local_repos"),
ncores = parallel::detectCores() - 2,
with_dist = FALSE
)locusnameName of locus.
db_versionVersion number of IPD-IMGT/HLA release or "Latest".
db_pathLocal path to IPD-IMGT/HLA.
ncoresHow many cores are used for parsing the data.
with_distCalulate Levenshtein distances between all alleles.
A new HLAgene object.
print()Display a HLAgene object.
HLAGene_$print()
get_hlatools_version()The package version under which a HLAGene object was created.
HLAGene_$get_hlatools_version()
get_db_version()The IPD-IMGT/HLA database version.
HLAGene_$get_db_version()
get_locusname()The name of the HLA locus.
HLAGene_$get_locusname()
get_alleles()A HLAAllele object.
HLAGene_$get_alleles(allele)
alleleThe allele code.
has_distances()Has a distance matrix between all alleles been calculated?
HLAGene_$has_distances()
calculate_exon_distance_matrix()Calculate a distance matrix between all alleles based on the available exon sequences.
HLAGene_$calculate_exon_distance_matrix()
get_closest_complete_neighbor()Get the full-length allele that is closest to the query allele, based on the available exon sequences.
HLAGene_$get_closest_complete_neighbor(allele, partially = TRUE)
alleleThe allele code.
partiallyIf TRUE match partial allele names.
get_reference_sequence()Get the reference sequence for query allele extended to full length by filling up missing sequence information with the closest complete neighbour.
HLAGene_$get_reference_sequence(allele)
alleleThe allele code.
get_all_reference_sequences()Get the reference sequences for all allele extended to full length by filling up missing sequence information with the closest complete neighbours.
HLAGene_$get_all_reference_sequences(allele)
alleleThe allele code.
get_reference_sequence_as_ft()Get the reference sequence for query allele extended to full length by filling up missing sequence information with the closest complete neighbour formatted as a GenBank Feature Table.
HLAGene_$get_reference_sequence_as_ft(allele)
alleleThe allele code.
get_all_reference_sequences_as_ft()Get the reference sequences for all allele extended to full length by filling up missing sequence information with the closest complete neighbours formatted as a GenBank Feature Table.
HLAGene_$get_all_reference_sequences_as_ft(allele)
alleleThe allele code.
get_extended_reference_set()TODO: Documentation
HLAGene_$get_extended_reference_set(verbose = FALSE)
verboseEmit progress messages.
clone()The objects of this class are cloneable with this method.
HLAGene_$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.