check_hom_matrix: Function to remove the homozygosity of a rare SNP in case or...

Description Usage Arguments Value

Description

Given the original case or control genotype matrix, return the edited matrix

Usage

1
check_hom_matrix(X, hom = 1, multiplier = 1)

Arguments

X

the expected condidtional genotype probablity matrix for grouped rare variants

hom

with value 1 or 2. 1 means making changes with the 1st nonNA element, 2 means making changes with a random nonNA element

multiplier

with value 1 or 2, 1 is dividing by 2 and 2 is mulitpling by 2.

Value

newX the edited expected condidtional genotype probablity matrix


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