snpgdsSNPList | 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:
snp.id |
SNP id |
chromosome |
SNP chromosome index |
position |
SNP physical position in basepair |
allele |
reference / non-ref alleles |
afreq |
allele frequency |
Xiuwen Zheng
snpgdsSNPListIntersect
# open an example dataset (HapMap)
genofile <- snpgdsOpen(snpgdsExampleFileName())
# to get a snp list object
snplist <- snpgdsSNPList(genofile)
head(snplist)
# close the file
snpgdsClose(genofile)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.