View source: R/DataUtilities.R
hlaCombineAllele | R Documentation |
Combine two objects of hlaAlleleClass
.
hlaCombineAllele(H1, H2)
H1 |
the first |
H2 |
the second |
Return hlaAlleleClass
.
Xiuwen Zheng
hlaAllele
, hlaAlleleSubset
head(HLA_Type_Table)
dim(HLA_Type_Table) # 60 13
# make a "hlaAlleleClass" object
hla.id <- "C"
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)
subhla1 <- hlaAlleleSubset(hla, 1:100)
summary(subhla1)
subhla2 <- hlaAlleleSubset(hla, 201:300)
summary(subhla2)
H <- hlaCombineAllele(subhla1, subhla2)
summary(H)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.