snpgdsSampMissRate {SNPRelate} | R Documentation |
Return the missing fraction for each sample
snpgdsSampMissRate(gdsobj, sample.id=NULL, snp.id=NULL, with.id=FALSE)
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 |
A vector of numeric values.
Xiuwen Zheng
# open an example dataset (HapMap) genofile <- snpgdsOpen(snpgdsExampleFileName()) RV <- snpgdsSampMissRate(genofile) summary(RV) # close the genotype file snpgdsClose(genofile)