-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathhlaUniqueAllele.Rd
68 lines (63 loc) · 2.59 KB
/
hlaUniqueAllele.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
\name{hlaUniqueAllele}
\alias{hlaUniqueAllele}
\title{
Get unique HLA alleles
}
\description{
Get unique HLA alleles, which are in ascending order.
}
\usage{
hlaUniqueAllele(hla, all=NA)
}
\arguments{
\item{hla}{character-type HLA alleles, a \code{\link{hlaAlleleClass}}
object, a \code{link{hlaAttrBagClass}} object, or
a \code{link{hlaAttrBagObj}} object}
\item{all}{when \code{hla} is a \code{hlaAlleleClass} object and
\code{all=TRUE}, return all HLA alleles if \code{hla$dosage} or
\code{hla$postprob} exists; otherwise, only return the alleles in
\code{hla$value}}
}
\details{
Each HLA allele name has a unique number corresponding to up to four sets
of digits separated by colons. The name designation depends on the sequence of
the allele and that of its nearest relative. The digits before the first colon
describe the type, which often corresponds to the serological antigen carried
by an allotype. The next set of digits are used to list the subtypes, numbers
being assigned in the order in which DNA sequences have been determined.
Alleles whose numbers differ in the two sets of digits must differ in one or
more nucleotide substitutions that change the amino acid sequence of the
encoded protein. Alleles that differ only by synonymous nucleotide substitutions
(also called silent or non-coding substitutions) within the coding sequence
are distinguished by the use of the third set of digits. Alleles that only
differ by sequence polymorphisms in the introns or in the 5' or 3' untranslated
regions that flank the exons and introns are distinguished by the use of the
fourth set of digits.
In addition to the unique allele number there are additional optional
suffixes that may be added to an allele to indicate its expression status.
Alleles that have been shown not to be expressed, 'Null' alleles have been
given the suffix 'N'. Those alleles which have been shown to be alternatively
expressed may have the suffix 'L', 'S', 'C', 'A' or 'Q'.
\url{http://hla.alleles.org/nomenclature/index.html}
}
\value{
Return a character vector of HLA alleles
}
\author{Xiuwen Zheng}
\seealso{
\code{\link{hlaAllele}}, \code{\link{hlaAlleleDigit}}
}
\examples{
# make a "hlaAlleleClass" object
hla.id <- "A"
hla <- hlaAllele(HLA_Type_Table$sample.id,
H1 = HLA_Type_Table[, paste(hla.id, ".1", sep="")],
H2 = HLA_Type_Table[, paste(hla.id, ".2", sep="")],
locus=hla.id, assembly="hg19")
summary(hla)
hlaUniqueAllele(hla)
hlaUniqueAllele(c("01", "01:03", "01:01", "03:05", "03:01G",
"03:05P", "03:104:01", "104:01"))
}
\keyword{HLA}
\keyword{genetics}