Learn R Programming

HIBAG (version 1.8.3)

hlaSNPID: Get SNP IDs and positions

Description

Get the information of SNP ID with or without position.

Usage

hlaSNPID(obj, type=c("RefSNP+Position", "RefSNP", "Position"))

Arguments

obj
a genotypic object of hlaSNPGenoClass, a model object of hlaAttrBagClass or a model object of hlaAttrBagObj
type
"RefSNP+Position" (by default), "RefSNP" or "Position"

Value

If type = "RefSNP+Position", return paste(obj$snp.id, obj$snp.position, sep="-"); if type = "RefSNP", return obj$snp.id; otherwise, return obj$snp.position.

See Also

hlaGenoSwitchStrand, hlaGenoCombine

Examples

Run this code
x <- hlaSNPID(HapMap_CEU_Geno)
head(x)

x <- hlaSNPID(HapMap_CEU_Geno, "RefSNP")
head(x)

x <- hlaSNPID(HapMap_CEU_Geno, "Position")
head(x)

Run the code above in your browser using DataLab