Maximal_independent_set() guide correction


#1

After running pc_relate using statistics=“kin”, I follow the guide in:
https://hail.is/docs/0.2/methods/misc.html?highlight=maximal_independent_set#hail.methods.maximal_independent_set
to remove related individuals with a “case” preference. I manage to to filter and create pairs keyed with case/control, creating a meaningful data structure for the tie_breaker() function.
When calling maximal_indpendent_set() the TypeError: bad operand ~:struct.
The tie_breaker function needs to reference the value: l.is_case.value, and not l.is_case.


#2

Sorry, don’t totally understand. We test that the code snippets in the docs run as part of our testing process – that code definitely runs on the inputs we use in the docs.

Could you paste the code you ran?