View source: R/DataUtilities.R
hlaSampleAllele | R Documentation |
Get sample IDs from HLA types limited to a set of HLA alleles.
hlaSampleAllele(TrueHLA, allele.limit=NULL, max.resolution="")
TrueHLA |
an object of |
allele.limit |
a list of HLA alleles, the validation samples are
limited to those having HLA alleles in |
max.resolution |
"2-digit", "4-digit", "6-digit", "8-digit", "allele", "protein", "2", "4", "6", "8", "full" or "": "allele" = "2-digit", "protein" = "4-digit", "full" and "" mean no limit on resolution |
Return a list of sample IDs.
Xiuwen Zheng
hlaCompareAllele
# make a "hlaAlleleClass" object
hla.id <- "A"
hla <- hlaAllele(HLA_Type_Table$sample.id,
HLA_Type_Table[, paste(hla.id, ".1", sep="")],
HLA_Type_Table[, paste(hla.id, ".2", sep="")],
locus=hla.id, assembly="hg19")
summary(hla)
hlaSampleAllele(hla)
hlaSampleAllele(hla, allele.limit=c(
"01:01","02:01","02:06", "03:01", "11:01", "23:01"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.