Description Usage Arguments Value Author(s) See Also Examples
A list object of SNP information including rs, chr, pos, allele and allele frequency.
1 | 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
1 2 3 4 5 6 7 8 9 | # 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.