Esempio n. 1
0
    def setUp(self):
        self.rm = pymaid.CatmaidInstance(
            config_test.server_url,
            config_test.http_user,
            config_test.http_pw,
            config_test.token)

        self.n = pymaid.get_neuron(config_test.test_skids[0],
                                   remote_instance=self.rm)

        self.cn_table = pymaid.get_partners(config_test.test_skids[0],
                                            remote_instance=self.rm)

        self.nB = pymaid.get_neuron(self.cn_table.iloc[0].skeleton_id,
                                    remote_instance=self.rm)

        self.adj = pymaid.adjacency_matrix(
            self.cn_table[self.cn_table.relation == 'upstream'].iloc[:10].skeleton_id.values)
Esempio n. 2
0
 def test_get_cn_table(self):
     self.assertIsInstance(pymaid.get_partners('annotation:%s' % config_test.test_annotations[
                           0], remote_instance=self.rm), pd.DataFrame)
Esempio n. 3
0
 def test_get_partners(self):
     self.assertIsInstance(pymaid.get_partners(
         config_test.test_skids[0], remote_instance=self.rm), pd.DataFrame)