uniSearch {HLAtools}R Documentation

Search Sequences at a Single Position for an Allele

Description

Generates a character string of the peptide, codon or nucleotide sequence at the specified position for the specified HLA allele.

Usage

uniSearch(alignType, locus, allele, position, prefix = TRUE, trimmed = FALSE)

Arguments

alignType

The type of alignment being searched. Allowed values are "prot", "codon", "nuc" and "gen". Only one 'alignType' value is allowed.

locus

A specific HLA locus.

allele

The name of the allele being searched.

position

The specified position.

prefix

A logical that indicates if the position number(s) should be included in the result.

trimmed

A logical identifying whether 'allele' is a two-field, 'trimmed' allele name (trimmed=TRUE), or a full-length name (trimmed=FALSE). The default value is FALSE.

Value

The peptide residue, codon or nucleotide sequence at specified position for specified allele as available in the ANHIG/IMGTHLA Github Repository.

Note

For internal HLAtools use.


[Package HLAtools version 1.1.1 Index]