hlaCombineAllele {HIBAG} | R Documentation

## Combine two datasets of HLA types

### Description

Combine two objects of `hlaAlleleClass`.

### Usage

    hlaCombineAllele(H1, H2)

### Arguments

`H1` | the first `hlaAlleleClass` object
`H2` | the second `hlaAlleleClass` object

### Value

Return `hlaAlleleClass`.

### Author(s)

Xiuwen Zheng

### See Also

`hlaAllele`, `hlaAlleleSubset`

### Examples

    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)

[Package HIBAG version 1.18.1 Index]