/// <summary> /// Use to add a predefined gene to the gene pool /// </summary> /// <param name="newLocus">The locus to be added to the pool of known gene positions</param> public void AddToBank(ILocus newLocus) { _loci.Add(newLocus); foreach (var allele in newLocus.AlleleManager.Alleles) { _alleleMap.Add(allele.Id, allele); } }
private Gene GenerateNewGene(ILocus locus) { return new Gene(RetrieveAllele(locus.AlleleManager), RetrieveAllele(locus.AlleleManager), locus.LocusId); }