Relationship-based pruning with --king-cutoff

61 views
Skip to first unread message

Gabriel Doctor

unread,
Jan 25, 2024, 9:28:13 AM1/25/24
to plink2-users
hi christopher
Question:
Using --king-cutoff with a threshold, what determines which ID from a pair (or more) gets kept in the "plink.cutoff.in.id". How is one sample of duplicatoin chosen for inclusion over another? 
BW 
Gabriel
ps plink is amazing, so thank you.

Christopher Chang

unread,
Jan 25, 2024, 3:55:30 PM1/25/24
to plink2-users
https://github.com/chrchang/plink-ng/blob/master/2.0/plink2_matrix_calc.cc#L288

"As long as edges remain,
a. remove partner of first degree-one vertex, if such a vertex exists
b. otherwise, remove first maximal-degree vertex"

(a) tends to remove later sample IDs, while (b) tends to remove earlier sample IDs.
Reply all
Reply to author
Forward
0 new messages