monkeybread.util.contact_count

monkeybread.util.contact_count(contacts, group1, group2)

Counts contact observed by monkeybread.calc.cell_contact().

Sums the number of unique contacts given the contact dictionary and ids corresponding to cells in each group. Can be used to extract more specific contact counts out of a larger dictionary.

Parameters
Return type

int

Returns

The number of unique contacts found between group1 and group2.