|
387 | 387 | <p class="p6"><span class="s3">A </span><span class="s4">float</span><span class="s3"> scaling factor applied to the individual’s fitness (i.e., the fitness value computed for the individual will be multiplied by this value).<span class="Apple-converted-space"> </span>This provides a simple, fast way to modify the fitness of an individual; conceptually it is similar to returning a fitness effect for the individual from a </span><span class="s4">fitnessEffect()</span><span class="s3"> callback, but without the complexity and performance overhead of implementing such a callback.<span class="Apple-converted-space"> </span>To scale the fitness of all individuals in a subpopulation by the same factor, see the </span><span class="s4">fitnessScaling</span><span class="s3"> property of </span><span class="s4">Subpopulation</span><span class="s3">.</span></p>
|
388 | 388 | <p class="p6"><span class="s3">The value of </span><span class="s4">fitnessScaling</span><span class="s3"> is reset to </span><span class="s4">1.0</span><span class="s3"> every tick, so that any scaling factor set lasts for only a single tick.<span class="Apple-converted-space"> </span>This reset occurs immediately after fitness values are calculated, in both WF and nonWF models.</span></p>
|
389 | 389 | <p class="p5">haploidGenome1 => (object<Haplosome>)</p>
|
390 |
| -<p class="p6">A vector of all <span class="s1">Haplosome</span> objects associated with this individual that are attributed to its first parent (the female parent, in sexual models).<span class="Apple-converted-space"> </span>This method assumes the individual was generated by the typical method for each chromosome type, as explained below; it does not trace back the true ancestry of each haplosome.<span class="Apple-converted-space"> </span>The semantics of this are more obvious for some chromosome types than others, depending on the inheritance pattern of the chromosome as described in <span class="s1">initializeChromosome()</span>.<span class="Apple-converted-space"> </span>For chromosomes with two associated haplosomes (types <span class="s1">"A"</span>, <span class="s1">"X"</span>, <span class="s1">"Z"</span>, <span class="s1">"H-"</span>, and <span class="s1">"-Y"</span>), the first haplosome is assumed to be from the first parent, and is thus included, whereas the second haplosome is assumed to be from the second parent and is thus not included.<span class="Apple-converted-space"> </span>For chromosomes with one associated haplosome that is inherited from the female parent in one way or another (types <span class="s1">"W"</span>, <span class="s1">"HF"</span>, and <span class="s1">"FL"</span>), that haplosome is always included.<span class="Apple-converted-space"> </span>For type <span class="s1">"H"</span>, the single haplosome is assumed to have come from the first parent (since clonal inheritance is the common case), and so is included.<span class="Apple-converted-space"> </span>Other chromosome types (<span class="s1">"Y"</span>, <span class="s1">"HM"</span>, <span class="s1">"ML"</span>) are never included.<span class="Apple-converted-space"> </span>See also the <span class="s1">haploidGenome1NonNull</span> property and the <span class="s1">haplosomesForChromosomes()</span> method.</p> |
| 390 | +<p class="p6">A vector of all <span class="s1">Haplosome</span> objects associated with this individual that are attributed to its first parent (the female parent, in sexual models).<span class="Apple-converted-space"> </span>This method assumes the individual was generated by the typical method for each chromosome type, as explained below; it does not trace back the true ancestry of each haplosome.<span class="Apple-converted-space"> </span>The semantics of this are more obvious for some chromosome types than others, depending on the inheritance pattern of the chromosome as described in <span class="s1">initializeChromosome()</span>.<span class="Apple-converted-space"> </span>For chromosomes with two associated haplosomes (types <span class="s1">"A"</span>, <span class="s1">"X"</span>, <span class="s1">"Z"</span>, <span class="s1">"H-"</span>, and <span class="s1">"-Y"</span>), the first haplosome is assumed to be from the first parent, and is thus included, whereas the second haplosome is assumed to be from the second parent and is thus not included.<span class="Apple-converted-space"> </span>For chromosomes with one associated haplosome that is inherited from the female/first parent in one way or another (types <span class="s1">"W"</span>, <span class="s1">"HF"</span>, and <span class="s1">"FL"</span>), that haplosome is always included.<span class="Apple-converted-space"> </span>For type <span class="s1">"H"</span>, the single haplosome is assumed to have come from the first parent (since clonal inheritance is the common case), and so is included.<span class="Apple-converted-space"> </span>Other chromosome types (<span class="s1">"Y"</span>, <span class="s1">"HM"</span>, <span class="s1">"ML"</span>) are never included.<span class="Apple-converted-space"> </span>See also the <span class="s1">haploidGenome1NonNull</span> property and the <span class="s1">haplosomesForChromosomes()</span> method.</p> |
391 | 391 | <p class="p5">haploidGenome1NonNull => (object<Haplosome>)</p>
|
392 | 392 | <p class="p6">This provides the same vector of haplosomes as the <span class="s1">haploidGenome1</span> property, except that null haplosomes are not included in this property.<span class="Apple-converted-space"> </span>This is a convenience shorthand, sometimes useful in models that involve null haplosomes.<span class="Apple-converted-space"> </span>See also the <span class="s1">haplosomesForChromosomes()</span> method.</p>
|
393 | 393 | <p class="p5">haploidGenome2 => (object<Haplosome>)</p>
|
394 |
| -<p class="p6">A vector of all <span class="s1">Haplosome</span> objects associated with this individual that are attributed to its second parent (the male parent, in sexual models).<span class="Apple-converted-space"> </span>This method assumes the individual was generated by the typical method for each chromosome type, as explained below; it does not trace back the true ancestry of each haplosome.<span class="Apple-converted-space"> </span>The semantics of this are more obvious for some chromosome types than others, depending on the inheritance pattern of the chromosome as described in <span class="s1">initializeChromosome()</span>.<span class="Apple-converted-space"> </span>For chromosomes with two associated haplosomes (types <span class="s1">"A"</span>, <span class="s1">"X"</span>, <span class="s1">"Z"</span>, <span class="s1">"H-"</span>, and<span class="s1">"-Y"</span>), the second haplosome is assumed to be from the second parent, and is thus included, whereas the first haplosome is assumed to be from the first parent and is thus not included.<span class="Apple-converted-space"> </span>For chromosomes with one associated haplosome that is inherited from the male parent in one way or another (types <span class="s1">"Y"</span>, <span class="s1">"HM"</span>, and <span class="s1">"ML"</span>), that haplosome is always included.<span class="Apple-converted-space"> </span>For type <span class="s1">"H"</span>, the single haplosome is assumed to have come from the first parent (since clonal inheritance is the common case), and so is not included.<span class="Apple-converted-space"> </span>Other chromosome types (<span class="s1">"W"</span>, <span class="s1">"HF"</span>, <span class="s1">"FL"</span>) are never included.<span class="Apple-converted-space"> </span>See also the <span class="s1">haploidGenome2NonNull</span> property and the <span class="s1">haplosomesForChromosomes()</span> method.</p> |
| 394 | +<p class="p6">A vector of all <span class="s1">Haplosome</span> objects associated with this individual that are attributed to its second parent (the male parent, in sexual models).<span class="Apple-converted-space"> </span>This method assumes the individual was generated by the typical method for each chromosome type, as explained below; it does not trace back the true ancestry of each haplosome.<span class="Apple-converted-space"> </span>The semantics of this are more obvious for some chromosome types than others, depending on the inheritance pattern of the chromosome as described in <span class="s1">initializeChromosome()</span>.<span class="Apple-converted-space"> </span>For chromosomes with two associated haplosomes (types <span class="s1">"A"</span>, <span class="s1">"X"</span>, <span class="s1">"Z"</span>, <span class="s1">"H-"</span>, and<span class="s1">"-Y"</span>), the second haplosome is assumed to be from the second parent, and is thus included, whereas the first haplosome is assumed to be from the first parent and is thus not included.<span class="Apple-converted-space"> </span>For chromosomes with one associated haplosome that is inherited from the male/second parent in one way or another (types <span class="s1">"Y"</span>, <span class="s1">"HM"</span>, and <span class="s1">"ML"</span>), that haplosome is always included.<span class="Apple-converted-space"> </span>For type <span class="s1">"H"</span>, the single haplosome is assumed to have come from the first parent (since clonal inheritance is the common case), and so is not included.<span class="Apple-converted-space"> </span>Other chromosome types (<span class="s1">"W"</span>, <span class="s1">"HF"</span>, <span class="s1">"FL"</span>) are never included.<span class="Apple-converted-space"> </span>See also the <span class="s1">haploidGenome2NonNull</span> property and the <span class="s1">haplosomesForChromosomes()</span> method.</p> |
395 | 395 | <p class="p5">haploidGenome2NonNull => (object<Haplosome>)</p>
|
396 | 396 | <p class="p6">This provides the same vector of haplosomes as the <span class="s1">haploidGenome2</span> property, except that null haplosomes are not included in this property.<span class="Apple-converted-space"> </span>This is a convenience shorthand, sometimes useful in models that involve null haplosomes.<span class="Apple-converted-space"> </span>See also the <span class="s1">haplosomesForChromosomes()</span> method.</p>
|
397 | 397 | <p class="p5">haplosomes => (object<Haplosome>)</p>
|
|
0 commit comments