| hlaSNPID {HIBAG} | R Documentation |
Get the information of SNP ID with or without position.
hlaSNPID(obj, type=c("Position", "Pos+Allele", "RefSNP+Position", "RefSNP"))
obj |
a genotypic object of |
type |
|
If type = "RefSNP+Position",
return paste(obj$snp.id, obj$snp.position, sep="-");
if type = "RefSNP",
return obj$snp.id;
if type = "Position",
return obj$snp.position;
if type = "Pos+Allele",
return paste(obj$snp.position, obj$snp.allele, sep="-").
Xiuwen Zheng
hlaGenoSwitchStrand, hlaGenoCombine
x <- hlaSNPID(HapMap_CEU_Geno) head(x) x <- hlaSNPID(HapMap_CEU_Geno, "RefSNP") head(x) x <- hlaSNPID(HapMap_CEU_Geno, "Position") head(x)