SnpArrays.jl icon indicating copy to clipboard operation
SnpArrays.jl copied to clipboard

Add KING methods for genetic relationship matrix calculation

Open Hua-Zhou opened this issue 4 years ago • 4 comments

For the gym function, we should add the two methods method=:KING_homo and method=:KING_robust, used in the KING software.

The methods are described in this paper: https://doi.org/10.1093/bioinformatics/btq559. :KING_homo (assuming homogeneous population) method is equations (5) and (6). :KING_robust (handling heterogenous populations) is equation (9).

Hua-Zhou avatar Aug 01 '20 00:08 Hua-Zhou

The current implementation of GRMs looks very memory-consuming for kinship pruning. Is there other use of GRMs other than pruning?

kose-y avatar Aug 01 '20 01:08 kose-y

Maybe we can just compute and return a vector of diagonal entries and a vector of off-diagonal entries instead of the entire matrix?

juhkim111 avatar Aug 01 '20 02:08 juhkim111

The current implementation of GRMs looks very memory-consuming for kinship pruning. Is there other use of GRMs other than pruning?

Can you clarify which part is memory-consuming? Calculating GRM or kinship pruning? These are two separate steps.

Hua-Zhou avatar Aug 01 '20 04:08 Hua-Zhou

GRM creating the whole n x n matrix as an output. Isn't a sparse matrix or a graph data structure enough as input for kinship pruning?

kose-y avatar Aug 01 '20 05:08 kose-y