File tree Expand file tree Collapse file tree
ctc_metrics/metrics/biological Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ def get_ids_that_ends_with_split(
2121 counts = counts [parents > 0 ]
2222 parents = parents [parents > 0 ]
2323 ends_with_split = parents [counts > 1 ]
24+ print ("ends_with_split:" , ends_with_split )
2425 return ends_with_split
2526
2627
@@ -83,12 +84,12 @@ def is_matching(
8384 ind = np .argwhere (mr == id_ref ).squeeze ()
8485 if mc [ind ] != id_comp :
8586 return False
86- # Compare children
87- mr , mc = np .asarray (mapped_ref [t2 + 1 ]), np .asarray (mapped_comp [t2 + 1 ])
88- if not np .all (np .isin (comp_children , mc )):
89- return False
90- if not np .all (np .isin (mr [np .isin (mc , comp_children )], ref_children )):
91- return False
87+ # # Compare children ### WHAT IS A CORRECT DETECTED MITOSIS? CHILDREN ARE NOT IMPORTANT NOW
88+ # mr, mc = np.concatenate (mapped_ref[t2 + 1]), np.concatenate (mapped_comp[t2 + 1])
89+ # if not np.all(np.isin(comp_children, mc)):
90+ # return False
91+ # if not np.all(np.isin(mr[np.isin(mc, comp_children)], ref_children)):
92+ # return False
9293 return True
9394
9495def raw_division_metrics (
You can’t perform that action at this time.
0 commit comments