filter_by_miss: Function to filter out variants by missing rate p

Description Usage Arguments Value

Description

It removes all variants that missing rate are smaller than p in either sample.

Usage

1
filter_by_miss(M1, M2, missing_cut)

Arguments

M1

the additive coding of genotype for sample1

M2

the additive coding of genotype for sample2

missing_cut

the missing rate cut-off, only keep variants with missing rate <p in both samples

Value

a list including row combined genotype from both sample (M) and a vector of index whether a variant pass the missingness filter (k).


Struglab/RVS documentation built on May 9, 2019, 3:11 p.m.