Ejemplo n.º 1
0
 def testMetricsEffectiveFoundersBoichardB(self):
     # Example taken from Boichard et al. (1997), Figure 2.
     # Used to test calculation of effective founder number.
     options = {}
     options['messages'] = 'quiet'
     options['pedfile'] = 'tests/boichard/boichard2b.ped'
     options['pedname'] = 'Boichard Pedigree (Family 2 only)'
     options['pedformat'] = 'asdg'
     options['pedigree_is_renumbered'] = '1'
     options['filetag'] = 'example2b'
     example2b = pyp_newclasses.NewPedigree(options)
     example2b.load()
     fe = pyp_metrics.a_effective_founders_boichard(example2b)
     self.assertEqual(round(2.0, 1), round(fe, 1))
Ejemplo n.º 2
0
 def testMetricsEffectiveFoundersBoichardB(self):
     # Example taken from Boichard et al. (1997), Figure 2.
     # Used to test calculation of effective founder number.
     options = {}
     options['messages'] = 'quiet'
     options['pedfile'] = 'tests/boichard/boichard2b.ped'
     options['pedname'] = 'Boichard Pedigree (Family 2 only)'
     options['pedformat'] = 'asdg'
     options['pedigree_is_renumbered'] = '1'
     options['filetag'] = 'example2b'
     example2b = pyp_newclasses.NewPedigree(options)
     example2b.load()
     fe = pyp_metrics.a_effective_founders_boichard(example2b)
     self.assertEqual(round(2.0,1), round(fe,1))