You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
\f4\fs20 \cf2 Returns the mutation\'92s dominance coefficient for the trait(s) specified by
6154
+
\f3\fs18 trait
6155
+
\f4\fs20 ; for both multiplicative traits and additive traits this is the dominance coefficient
6156
+
\f1\i h
6157
+
\f4\i0 . The traits can be specified as
6158
+
\f3\fs18 integer
6159
+
\f4\fs20 indices of traits in the species, or directly as
6160
+
\f3\fs18 Trait
6161
+
\f4\fs20 objects;
6162
+
\f3\fs18 NULL
6163
+
\f4\fs20 represents all of the traits in the species, in the order in which they were defined. Dominance coefficients for a given target mutation will be returned consecutively in the order in which the traits are specified by
\f4\fs20 \cf2 Returns the mutation\'92s effect size for the trait(s) specified by
6172
+
\f3\fs18 trait
6173
+
\f4\fs20 ; for multiplicative traits, this is typically the selection coefficient
6174
+
\f1\i s
6175
+
\f4\i0 , whereas for additive traits it is typically the additive effect size
6176
+
\f1\i a
6177
+
\f4\i0 . The traits can be specified as
6178
+
\f3\fs18 integer
6179
+
\f4\fs20 indices of traits in the species, or directly as
6180
+
\f3\fs18 Trait
6181
+
\f4\fs20 objects;
6182
+
\f3\fs18 NULL
6183
+
\f4\fs20 represents all of the traits in the species, in the order in which they were defined. Effects for a given target mutation will be returned consecutively in the order in which the traits are specified by
\f4\fs20 \cf2 Sets the mutation\'92s dominance coefficient(s) for the trait(s) specified by
6207
+
\f3\fs18 trait
6208
+
\f4\fs20 . The traits can be specified as
6209
+
\f3\fs18 integer
6210
+
\f4\fs20 indices of traits in the species, or directly as
6211
+
\f3\fs18 Trait
6212
+
\f4\fs20 objects;
6213
+
\f3\fs18 NULL
6214
+
\f4\fs20 represents all of the traits in the species, in the order in which they were defined.\
6215
+
The parameter
6216
+
\f3\fs18 dominance
6217
+
\f4\fs20 must follow one of four patterns. In the first pattern,
6218
+
\f3\fs18 dominance
6219
+
\f4\fs20 is
6220
+
\f3\fs18 NULL
6221
+
\f4\fs20 ; this sets the dominance for each of the specified traits to the default dominance coefficient from the mutation type of the mutation in each target mutation. (Note that mutation dominance coefficients are automatically set to these defaults when a mutation is created; this re-sets default dominance values.) In the second pattern,
6222
+
\f3\fs18 dominance
6223
+
\f4\fs20 is a singleton value; this sets the given dominance for each of the specified traits in each target mutation. In the third pattern,
6224
+
\f3\fs18 dominance
6225
+
\f4\fs20 is of length equal to the number of specified traits; this sets the dominance for each of the specified traits to the corresponding dominance value in each target mutation. In the fourth pattern,
6226
+
\f3\fs18 dominance
6227
+
\f4\fs20 is of length equal to the number of specified traits times the number of target mutations; this uses
6228
+
\f3\fs18 dominance
6229
+
\f4\fs20 to provide a different dominance coefficient for each trait in each mutation, using consecutive values from
6230
+
\f3\fs18 dominance
6231
+
\f4\fs20 to set the dominance for each of the specified traits in one mutation before moving to the next mutation.\
\f4\fs20 \cf2 Sets the mutation\'92s effect(s) for the trait(s) specified by
6238
+
\f3\fs18 trait
6239
+
\f4\fs20 . The traits can be specified as
6240
+
\f3\fs18 integer
6241
+
\f4\fs20 indices of traits in the species, or directly as
6242
+
\f3\fs18 Trait
6243
+
\f4\fs20 objects;
6244
+
\f3\fs18 NULL
6245
+
\f4\fs20 represents all of the traits in the species, in the order in which they were defined.\
6246
+
The parameter
6247
+
\f3\fs18 effect
6248
+
\f4\fs20 must follow one of four patterns. In the first pattern,
6249
+
\f3\fs18 effect
6250
+
\f4\fs20 is
6251
+
\f3\fs18 NULL
6252
+
\f4\fs20 ; this draws the effect for each of the specified traits from the corresponding distribution of effect sizes from the mutation type of the mutation in each target mutation. (Note that mutation offsets are automatically drawn from these distributions when a mutation is created; this re-draws new effect values.) In the second pattern,
6253
+
\f3\fs18 effect
6254
+
\f4\fs20 is a singleton value; this sets the given effect for each of the specified traits in each target mutation. In the third pattern,
6255
+
\f3\fs18 effect
6256
+
\f4\fs20 is of length equal to the number of specified traits; this sets the effect for each of the specified traits to the corresponding effect value in each target mutation. In the fourth pattern,
6257
+
\f3\fs18 effect
6258
+
\f4\fs20 is of length equal to the number of specified traits times the number of target mutations; this uses
6259
+
\f3\fs18 effect
6260
+
\f4\fs20 to provide a different effect value for each trait in each mutation, using consecutive values from
6261
+
\f3\fs18 effect
6262
+
\f4\fs20 to set the effect for each of the specified traits in one mutation before moving to the next mutation.\
\f4\fs20 \cf2 Returns the substitution\'92s dominance coefficient for the trait(s) specified by
14022
+
\f3\fs18 trait
14023
+
\f4\fs20 , carried over from the original mutation object. For both multiplicative traits and additive traits this is the dominance coefficient
14024
+
\f1\i h
14025
+
\f4\i0 . The traits can be specified as
14026
+
\f3\fs18 integer
14027
+
\f4\fs20 indices of traits in the species, or directly as
14028
+
\f3\fs18 Trait
14029
+
\f4\fs20 objects;
14030
+
\f3\fs18 NULL
14031
+
\f4\fs20 represents all of the traits in the species, in the order in which they were defined. Dominance coefficients for a given target substitution will be returned consecutively in the order in which the traits are specified by
\f4\fs20 \cf2 Returns the substitution\'92s effect size for the trait(s) specified by
14041
+
\f3\fs18 trait
14042
+
\f4\fs20 , carried over from the original mutation object. For multiplicative traits, this is typically the selection coefficient
14043
+
\f1\i s
14044
+
\f4\i0 , whereas for additive traits it is typically the additive effect size
14045
+
\f1\i a
14046
+
\f4\i0 . The traits can be specified as
14047
+
\f3\fs18 integer
14048
+
\f4\fs20 indices of traits in the species, or directly as
14049
+
\f3\fs18 Trait
14050
+
\f4\fs20 objects;
14051
+
\f3\fs18 NULL
14052
+
\f4\fs20 represents all of the traits in the species, in the order in which they were defined. Effects for a given target substitution will be returned consecutively in the order in which the traits are specified by
Copy file name to clipboardExpand all lines: VERSIONS
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,10 @@ multitrait branch:
60
60
shift from a single global mutation block into per-species mutation blocks, and make a new C++ class, MutationBlock, to encapsulate this
61
61
this is a forced move because we want the mutation block to have a separate buffer of per-trait state for mutations, and the number of traits varies among species
62
62
add effect size and dominance coefficient properties to Mutation and Substitution (but not hooked up to the simulation yet)
63
+
add -effectForTrait([Nio<Trait> traits = NULL]) and -dominanceForTrait([Nio<Trait> traits = NULL]) methods to Mutation and Substitution
// A nucleotide value of -1 is always used here; in nucleotide-based models this gets patched later, but that is sequence-dependent and background-dependent
0 commit comments