Description Usage Arguments Value Author(s) See Also Examples
View source: R/DataUtilities.R
Combine two objects of hlaAlleleClass
.
1 | hlaCombineAllele(H1, H2)
|
H1 |
the first |
H2 |
the second |
Return hlaAlleleClass
.
Xiuwen Zheng
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 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.