Learn R Programming

SNPRelate (version 1.6.4)

snpgdsSampMissRate: Missing Rate of Samples

Description

Return the missing fraction for each sample

Usage

snpgdsSampMissRate(gdsobj, sample.id=NULL, snp.id=NULL, with.id=FALSE)

Arguments

gdsobj
an object of class SNPGDSFileClass, a SNP GDS file
sample.id
a vector of sample id specifying selected samples; if NULL, all samples will be used
snp.id
a vector of snp id specifying selected SNPs; if NULL, all SNPs will be used
with.id
if TRUE, the returned value with sample id

Value

A vector of numeric values.

See Also

snpgdsSNPRateFreq

Examples

Run this code
# open an example dataset (HapMap)
genofile <- snpgdsOpen(snpgdsExampleFileName())

RV <- snpgdsSampMissRate(genofile)
summary(RV)

# close the genotype file
snpgdsClose(genofile)

Run the code above in your browser using DataLab