Description Usage Arguments Value Author(s) See Also Examples
Calculate the allele frequency, minor allele frequency and missing rate per SNP.
1 2 |
gdsobj |
an object of class |
sample.id |
a vector of sample id specifying selected samples;
if |
snp.id |
a vector of snp id specifying selected SNPs;
if |
with.id |
if |
with.sample.id |
if |
with.snp.id |
if |
Return a list:
AlleleFreq |
allele frequencies |
MinorFreq |
minor allele frequencies |
MissingRate |
missing rates |
sample.id |
sample id, if |
snp.id |
SNP id, if |
Xiuwen Zheng
1 2 3 4 5 6 7 8 9 10 11 | # open an example dataset (HapMap)
genofile <- snpgdsOpen(snpgdsExampleFileName())
RV <- snpgdsSNPRateFreq(genofile, with.snp.id=TRUE)
head(data.frame(RV))
hist(RV$AlleleFreq, breaks=128)
summary(RV$MissingRate)
# close the file
snpgdsClose(genofile)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.