buildAlignments: Build Amino Acid, cDNA and gDNA Alignments

View source: R/buildAlignments.R

buildAlignmentsR Documentation

Build Amino Acid, cDNA and gDNA Alignments

Description

Returns a list of data frames of amino acid, codon, nucleotide and genomic alignments, with version information.

Usage

buildAlignments(loci, source, version = "Latest")

Arguments

loci

A character vector of HLA gene names (e.g., "DRB1", c("A","C")).

source

A character vector of alignment types. The allowed values are "AA", "cDNA", and "gDNA". If 'source' is "cDNA", both codon and cDNA nucleotide alignments are generated. If source is 'AA' or 'gDNA', a single peptide or genomic nucleotide alignment is generated. Up to four alignments will be returned for a locus, as determined by its ability to be transcribed or translated.

version

A character string describing the desired release version (branch) of the ANHIG/IMGTHLA Github repository (e.g. '3.53.0'). The default value ('Latest') returns alignments for the most recent release.

Value

A list object with a data frame of all allele names (and trimmed, two-field allele names) and their corresponding sequences (Amino Acid, codon, cDNA, or gDNA) for a specific locus, as well as version details for the returned information. These alignments identify locations of feature boundaries in relation to amino acid, codon, cDNA, and gDNA sequences. When a three- or four-field allele name includes an expression variant suffix, that suffix is appended to the trimmed name.

Note

For internal HLAtools use.


HLAtools documentation built on June 8, 2025, 12:24 p.m.