View source: R/DataUtilities.R
hlaAlleleSubset | R Documentation |
Get a subset of HLA/KIR types from an object of
hlaAlleleClass
.
hlaAlleleSubset(hla, samp.sel=NULL)
hla |
an object of |
samp.sel |
a logical vector, or an integer vector of indices |
Return hlaAlleleClass
.
Xiuwen Zheng
hlaAllele
, hlaAlleleDigit
head(HLA_Type_Table)
dim(HLA_Type_Table) # 60 13
# 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)
subhla <- hlaAlleleSubset(hla, 1:100)
summary(subhla)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.