Ejemplo n.º 1
0
class BioGridTestCase(SourceTestCase):
    def setUp(self):
        self.source = BioGrid('rdf_graph', True)
        self.source.settestonly(True)
        self._setDirToSource()
        return

    def tearDown(self):
        self.source = None
        return
Ejemplo n.º 2
0
class BioGridTestCase(SourceTestCase):

    def setUp(self):
        self.source = BioGrid('rdf_graph', True)
        self.source.settestonly(True)
        self._setDirToSource()
        return

    def tearDown(self):
        self.source = None
        return
Ejemplo n.º 3
0
class BioGridTestCase(SourceTestCase):

    def setUp(self):
        self.source = BioGrid()
        self.source.settestonly(True)
        self.source.test_ids = self._get_conf()['test_ids']['gene']
        self._setDirToSource()
        return

    def tearDown(self):
        self.source = None
        return
Ejemplo n.º 4
0
class BioGridTestCase(SourceTestCase):

    def setUp(self):
        self.source = BioGrid('rdf_graph', True)
        self.source.settestonly(True)
        self.source.test_ids = self._get_conf()['test_ids']['gene']
        self._setDirToSource()
        return

    def tearDown(self):
        self.source = None
        return
Ejemplo n.º 5
0
class BioGridTestCase(SourceTestCase):
    def setUp(self):
        self.source = BioGrid('rdf_graph', True)
        self.source.settestonly(True)
        self._setDirToSource()
        return

    def tearDown(self):
        self.source = None
        return

    def test_interactor_to_gene_curie(self):
        self.assertEqual(
            'NCBIGene:3645446',
            self.source._interactor_to_gene_curie(
                'entrez gene/locuslink:3645446'))
        self.assertEqual(
            'BIOGRID:4383875',
            self.source._interactor_to_gene_curie('biogrid:4383875'))
        self.assertEqual(
            'UniProtKB:P0DTD2',
            self.source._interactor_to_gene_curie('uniprot/swiss-prot:P0DTD2'))

        self.assertEqual(None,
                         self.source._interactor_to_gene_curie('NOTAGENEID'))
Ejemplo n.º 6
0
 def setUp(self):
     self.source = BioGrid('rdf_graph', True)
     self.source.settestonly(True)
     self._setDirToSource()
     return
Ejemplo n.º 7
0
 def setUp(self):
     self.source = BioGrid()
     self.source.settestonly(True)
     self.source.test_ids = self._get_conf()['test_ids']['gene']
     self._setDirToSource()
     return
Ejemplo n.º 8
0
 def setUp(self):
     self.source = BioGrid('rdf_graph', True)
     self.source.settestonly(True)
     self._setDirToSource()
     return
Ejemplo n.º 9
0
 def setUp(self):
     self.source = BioGrid('rdf_graph', True)
     self.source.settestonly(True)
     self.source.test_ids = self._get_conf()['test_ids']['gene']
     self._setDirToSource()
     return