def setUp(self): self.test_util = TestUtils() self.source = CTD('rdf_graph', True) self.source.graph = RDFGraph(True) self.test_row = [ 'Nicotine', 'D009538', '', 'TOBACCO ADDICTION, SUSCEPTIBILITY TO', 'OMIM:188890', 'therapeutic', '', '', '', '12345|56789' ] return
def setUp(self): self.graph = Graph() self.curie_map = curie_map.get() self.ctd = CTD('rdf_graph', True) self.ctd.g = self.ctd.graph row1 = [ '06-Paris-LA-66 protocol', 'C046983', 'foo', 'Precursor Cell Lymphoblastic Leukemia-Lymphoma', 'MESH:D054198', 'therapeutic', 'bar', 'baz', 'foo', '4519131' ] row2 = [ '10,10-bis(4-pyridinylmethyl)-9(10H)-anthracenone', 'C112297', 'foo', 'Hyperkinesis', 'MESH:D006948', 'marker/mechanism', 'bar', 'baz', 'foo', '19098162' ] self.ctd._process_interactions(row1) self.ctd._process_interactions(row2)
def setUp(self): self.source = CTD('rdf_graph', True) self.source.settestonly(True) self._setDirToSource() return