def test_clustresults(self): res = pymaid.cluster_by_connectivity(config_test.test_skids) self.assertIsNotNone(res.linkage, np.ndarray) self.assertIsNotNone(res.leafs) self.assertIsNotNone(res.cophenet) self.assertIsNotNone(res.agg_coeff) res.to_selection() self.assertIsInstance(res.get_colormap(k=2), dict) self.assertIsInstance(res.get_clusters(k=2), list)
def test_connectivity_cluster(self): self.assertIsInstance(pymaid.cluster_by_connectivity(config_test.test_skids), pymaid.ClustResults)