snpgdsSNPList {SNPRelate} | R Documentation |
A list object of SNP information including rs, chr, pos, allele and allele frequency.
snpgdsSNPList(gdsobj, sample.id=NULL)
gdsobj |
an object of class |
sample.id |
a vector of sample id specifying selected samples; if NULL, all samples are used |
Return an object of snpgdsSNPListClass
including the following
components:
rs.id |
SNP id |
chromosome |
SNP chromosome index |
position |
SNP physical position in basepair |
allele |
reference / non-ref alleles |
afreq |
allele frequency |
Xiuwen Zheng
snpgdsSNPListIntersect
, snpgdsSNPListStrand
# open an example dataset (HapMap) genofile <- snpgdsOpen(snpgdsExampleFileName()) # to get a snp list object snplist <- snpgdsSNPList(genofile) # close the file snpgdsClose(genofile)