示例#1
0
 def test_region_string(self):
     record = next(vcf.Reader(self.vcf_file))
     variant = Variant.from_pyvcf(record, None)
     self.assertIsNotNone(variant)
     self.assertEqual(variant.region_string(flank=1), "1:4999478-4999733")
示例#2
0
 def test_region_string(self):
     record = next(vcf.Reader(self.vcf_file))
     variant = Variant.from_pyvcf(record, None)
     with self.assertRaises(ValueError):
         variant.region_string()
     self.assertEqual(variant.region_string(flank=1), "1:931634-931635")