Exemple #1
0
        private static void CalculateParentalGenotypes(Person selectedPerson, TraitRepository traitRepository, PersonRepository personRepository, GenotypeRepository genotypeRepository, RealRandomNumberGenerator rng, GeneticCounsellorDbContext context)
        {
            Genotype        genotypeToTrace   = GetSelectedPersonsGenotype(selectedPerson, traitRepository, personRepository, genotypeRepository, rng, context);
            List <Genotype> parentalGenotypes = genotypeToTrace.CalculateParentalGenotypes(genotypeRepository, rng);

            Console.WriteLine("Here are the potential parental genotypes:");
            Console.WriteLine("====================================================");
            foreach (var genotype in parentalGenotypes)
            {
                Console.WriteLine(genotype);
            }
        }