snpgdsSampMissrate: Missing Rate of Samples

Description Usage Arguments Value Author(s) See Also Examples

View source: R/SNPRelate_Main.r

Description

Return the missing fraction for each sample

Usage

1
snpgdsSampMissrate(gdsobj, sample.id=NULL, snp.id=NULL)

Arguments

gdsobj

a GDS file object (gds.class)

sample.id

a vector of sample id specifying selected samples; if NULL, all samples are used

snp.id

a vector of snp id specifying selected SNPs; if NULL, all SNPs are used

Value

a vector of numeric values

Author(s)

Xiuwen Zheng

See Also

snpgdsSNPRateFreq

Examples

1
2
3
4
5
6
7
8
# open an example dataset (HapMap)
genofile <- openfn.gds(snpgdsExampleFileName())

RV <- snpgdsSampMissrate(genofile)
summary(RV)

# close the genotype file
closefn.gds(genofile)

SNPRelate documentation built on May 2, 2019, 4:56 p.m.