Description Usage Arguments Details Value Author(s) See Also Examples
To combine two genotypic data sets into one dataset.
1 2 3 | 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
hlaMakeSNPGeno, hlaMakeSNPHaplo,
hlaHaploSubset, hlaGenoSubset
1 2 3 4 5 6 7 8 9 10 11 12 | # load SNP genotypes
data(HapMap_CEU_Geno, package="HIBAG")
# 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.