|
1064 | 1064 | <p class="p6">Declare the current simulation finished.<span class="Apple-converted-space"> </span>This method is equivalent to the <span class="s1">Community</span> method <span class="s1">simulationFinished()</span>, except that this method is only legal to call in single-species models (to provide backward compatibility).<span class="Apple-converted-space"> </span>It is recommended that new code should call the <span class="s1">Community</span> method; this method may be deprecated in the future.</p> |
1065 | 1065 | <p class="p3">– (void)skipTick(void)</p> |
1066 | 1066 | <p class="p6">Deactivate the target species for the current tick.<span class="Apple-converted-space"> </span>This sets the <span class="s1">active</span> property of the species to <span class="s1">F</span>; it also set the <span class="s1">active</span> property of all callbacks that belong to the species (with the species as their <span class="s1">species</span> specifier) to <span class="s1">F</span>, and sets the active property of all events that are synchronized with the species (with the species as their <span class="s1">ticks</span> specifier) to <span class="s1">F</span>.<span class="Apple-converted-space"> </span>The cycle counter for the species will not be incremented at the end of the tick.<span class="Apple-converted-space"> </span>This method may only be called in <span class="s1">first()</span> events, to ensure that species are either active or inactive throughout a given tick.</p> |
1067 | | -<p class="p5">– (object<Mutation>)subsetMutations([No<Mutation>$ exclude = NULL], [Nio<MutationType>$ mutType = NULL], [Ni$ position = NULL], [Nis$ nucleotide = NULL], [Ni$ tag = NULL], [Ni$ id = NULL], [Niso<Chromosome>$ chromosome = NULL])</p> |
1068 | | -<p class="p6">Returns a vector of mutations subset from the list of all active mutations in the species (as would be provided by the <span class="s1">mutations</span> property).<span class="Apple-converted-space"> </span>The parameters specify constraints upon the subset of mutations that will be returned.<span class="Apple-converted-space"> </span>Parameter <span class="s1">exclude</span>, if non-<span class="s1">NULL</span>, may specify a specific mutation that should not be included (typically the focal mutation in some operation).<span class="Apple-converted-space"> </span>Parameter <span class="s1">mutType</span>, if non-<span class="s1">NULL</span>, may specify a mutation type for the mutations to be returned (as either a <span class="s1">MutationType</span> object or an <span class="s1">integer</span> identifier).<span class="Apple-converted-space"> </span>Parameter <span class="s1">position</span>, if non-<span class="s1">NULL</span>, may specify a base position for the mutations to be returned.<span class="Apple-converted-space"> </span>Parameter <span class="s1">nucleotide</span>, if non-<span class="s1">NULL</span>, may specify a nucleotide for the mutations to be returned (either as a string, <span class="s1">"A"</span> / <span class="s1">"C"</span> / <span class="s1">"G"</span> / <span class="s1">"T"</span>, or as an integer, <span class="s1">0</span> / <span class="s1">1</span> / <span class="s1">2</span> / <span class="s1">3</span> respectively).<span class="Apple-converted-space"> </span>Parameter <span class="s1">tag</span>, if non-<span class="s1">NULL</span>, may specify a tag value for the mutations to be returned.<span class="Apple-converted-space"> </span>Parameter <span class="s1">id</span>, if non-<span class="s1">NULL</span>, may specify a required value for the <span class="s1">id</span> property of the mutations to be returned.<span class="Apple-converted-space"> </span>Parameter <span class="s1">chromosome</span>, if non-<span class="s1">NULL</span>, may specify a chromosome with which the mutations returned must be associated (as either an <span class="s1">integer</span> id, a <span class="s1">string</span> symbol, or a <span class="s1">Chromosome</span> object).</p> |
| 1067 | +<p class="p5">– (object<Mutation>)subsetMutations([No<Mutation>$ exclude = NULL], [Nio<MutationType>$ mutType = NULL], [Ni$ position = NULL], [Nis$ nucleotide = NULL], [Ni$ tag = NULL], [Ni$ id = NULL], [Niso<Chromosome> chromosome = NULL])</p> |
| 1068 | +<p class="p6">Returns a vector of mutations subset from the list of all active mutations in the species (as would be provided by the <span class="s1">mutations</span> property).<span class="Apple-converted-space"> </span>The parameters specify constraints upon the subset of mutations that will be returned.<span class="Apple-converted-space"> </span>Parameter <span class="s1">exclude</span>, if non-<span class="s1">NULL</span>, may specify a specific mutation that should not be included (typically the focal mutation in some operation).<span class="Apple-converted-space"> </span>Parameter <span class="s1">mutType</span>, if non-<span class="s1">NULL</span>, may specify a mutation type for the mutations to be returned (as either a <span class="s1">MutationType</span> object or an <span class="s1">integer</span> identifier).<span class="Apple-converted-space"> </span>Parameter <span class="s1">position</span>, if non-<span class="s1">NULL</span>, may specify a base position for the mutations to be returned.<span class="Apple-converted-space"> </span>Parameter <span class="s1">nucleotide</span>, if non-<span class="s1">NULL</span>, may specify a nucleotide for the mutations to be returned (either as a string, <span class="s1">"A"</span> / <span class="s1">"C"</span> / <span class="s1">"G"</span> / <span class="s1">"T"</span>, or as an integer, <span class="s1">0</span> / <span class="s1">1</span> / <span class="s1">2</span> / <span class="s1">3</span> respectively).<span class="Apple-converted-space"> </span>Parameter <span class="s1">tag</span>, if non-<span class="s1">NULL</span>, may specify a tag value for the mutations to be returned.<span class="Apple-converted-space"> </span>Parameter <span class="s1">id</span>, if non-<span class="s1">NULL</span>, may specify a required value for the <span class="s1">id</span> property of the mutations to be returned.<span class="Apple-converted-space"> </span>Parameter <span class="s1">chromosome</span>, if non-<span class="s1">NULL</span>, may specify a chromosome or chromosomes with which the mutations returned must be associated (as either <span class="s1">integer</span> ids, <span class="s1">string</span> symbols, or <span class="s1">Chromosome</span> objects).</p> |
1069 | 1069 | <p class="p6">This method is shorthand for getting the <span class="s1">mutations</span> property of the subpopulation, and then using operator <span class="s1">[]</span> to select only mutations with the desired properties; besides being much simpler than the equivalent Eidos code, it is also much faster.<span class="Apple-converted-space"> </span>Note that if you only need to select on mutation type, the <span class="s1">mutationsOfType()</span> method will be even faster.</p> |
1070 | 1070 | <p class="p5">– (object<Substitution>)substitutionsOfType(io<MutationType>$ mutType)</p> |
1071 | 1071 | <p class="p6">Returns an <span class="s1">object</span> vector of all the substitutions that are of the type specified by <span class="s1">mutType</span>, out of all of the substitutions that are currently present in the species.<span class="Apple-converted-space"> </span>This method is provided for speed; it is much faster than the corresponding Eidos code.<span class="Apple-converted-space"> </span>See also <span class="s1">mutationsOfType()</span>.</p> |
|
0 commit comments