| hlaGenoCombine {HIBAG} | R Documentation |
To combine two genotypic data sets into one dataset.
hlaGenoCombine(geno1, geno2,
match.type=c("RefSNP+Position", "RefSNP", "Position"),
allele.check=TRUE, same.strand=FALSE, verbose=TRUE)
geno1 |
the first genotype object of |
geno2 |
the second genotype object of |
match.type |
|
allele.check |
if |
same.strand |
|
verbose |
show information, if TRUE |
The function merges two SNP dataset geno1 and geno2, and
returns a SNP dataset consisting of the SNP intersect between geno1 and
geno2, and having the same SNP information (allele and position) as
geno1.
An object of hlaSNPGenoClass.
Xiuwen Zheng
# import a PLINK BED file
bed.fn <- system.file("extdata", "HapMap_CEU.bed", package="HIBAG")
fam.fn <- system.file("extdata", "HapMap_CEU.fam", package="HIBAG")
bim.fn <- system.file("extdata", "HapMap_CEU.bim", package="HIBAG")
hapmap.ceu <- hlaBED2Geno(bed.fn, fam.fn, bim.fn, assembly="hg19")
# combine two datasets together
geno <- hlaGenoCombine(HapMap_CEU_Geno, hapmap.ceu)
summary(geno)