Exemplo n.º 1
0
 def test_gene_fusion_missing_implicit(self):
     """Test serialization of a gene fusion to BEL with a implicit missing fusion ranges."""
     dsl = GeneFusion(
         Gene('HGNC', 'TMPRSS2'),
         Gene('HGNC', 'ERG'),
     )
     self.assertEqual('g(fus(HGNC:TMPRSS2, "?", HGNC:ERG, "?"))', dsl.as_bel())
Exemplo n.º 2
0
 def test_GeneFusion(self):
     """Test serialization of a gene fusion to BEL with a explicit fusion ranges."""
     dsl = GeneFusion(Gene('HGNC', 'TMPRSS2'), Gene('HGNC', 'ERG'),
                      EnumeratedFusionRange('c', 1, 79),
                      EnumeratedFusionRange('c', 312, 5034))
     self.assertEqual(
         'g(fus(HGNC:TMPRSS2, "c.1_79", HGNC:ERG, "c.312_5034"))',
         dsl.as_bel())