Beispiel #1
0
 def test_replaces_X_with_N_in_rna_variant(self):
     self.assertEqual(utilities.normalize_variant("r.100a>x"), "r.100a>n")
     self.assertEqual(utilities.normalize_variant("r.100_102delinsnnn"),
                      "r.100_102delinsnnn")
Beispiel #2
0
 def test_ignores_invalid_protein_variant(self):
     self.assertEqual(utilities.normalize_variant("p.G4??"), "p.G4??")
Beispiel #3
0
 def test_passes_on_none(self):
     self.assertIsNone(utilities.normalize_variant(None))
Beispiel #4
0
 def test_passes_on_special(self):
     self.assertEqual(utilities.normalize_variant("_wt"), "_wt")
     self.assertEqual(utilities.normalize_variant("_sy"), "_sy")
Beispiel #5
0
 def test_stripts_white_space(self):
     self.assertEqual(utilities.normalize_variant(" c.1A>G "), "c.1A>G")