Description Usage Arguments Value Author(s) See Also Examples
View source: R/DataUtilities.R
To convert a SNP GDS file to an object of hlaSNPGenoClass
.
1 2 | hlaGDS2Geno(gds.fn, rm.invalid.allele=FALSE, import.chr="xMHC",
assembly="auto", verbose=TRUE)
|
gds.fn |
the SNP GDS file used by the |
rm.invalid.allele |
if TRUE, remove SNPs with invalid alleles |
import.chr |
the chromosome, "1" .. "22", "X", "Y", "XY", "MT", "xMHC", or "", where "xMHC" implies the extended MHC on chromosome 6, and "" for all SNPs |
assembly |
the human genome reference: "hg18", "hg19" (default), "hg38"; "auto" refers to "hg19"; "auto-silent" refers to "hg19" without any warning |
verbose |
if TRUE, show information |
Return an object of hlaSNPGenoClass
.
Xiuwen Zheng
1 2 3 4 5 6 7 | # Import a SNP GDS file
fn <- system.file("extdata", "HapMap_CEU_Chr6.gds", package="HIBAG")
geno <- hlaGDS2Geno(fn, assembly="hg18",
rm.invalid.allele=TRUE, import.chr="6")
summary(geno)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.