Description Usage Arguments Value
View source: R/generate_model.R
Returns the fitnesses for each genotype in genotype_table
based on the phenotype
of the wild_type (pheno_wt
), the phenotype to fitness function in
fitness_fun
and the phenotypic mutation effects in pheno_mut_effect
1 2 3 | fitness_mutant_genotype(pheno_mut_effect, pheno_wt, genotype_table,
maxfitness, alpha = 1/2, Q = 2,
pheno_opt = numeric(dim(pheno_mut_effect)[2]))
|
pheno_mut_effect |
A matrix of real numbers. Phenotypic effects of mutations by rows. The mutations in rows correspond to the columns of genotype_table. |
pheno_wt |
A vector of real number. Phenotype of the wild type. |
genotype_table |
A matrix of 0 and 1. The rows correspond to different genotypes and the columns to the mutations that are considered for these genotypes. A genotype (at a certain row) has a given mutation when there is a 1 in the corresponding column. A row with only zeros correspond to the wild type. |
maxfitness |
A real number. The maximum fitness in the landscape. The
fitness at the phenotypic optimum ( |
alpha |
A strictly positive real number. Scaling factor for the fitness function. Default=1/2 in the cannonical FGM with a quadratic fitness function. |
Q |
A strictly positive number. "Shape" of the fitness function. Default=2 in the cannonical FGM with a quadratic fitness function. |
pheno_opt |
A vector of coordinates for the position of the phenotypic
optimum at which the fitness is equal to |
A vector of real numbers. Each element is the fitness of the corresponding
genotype in genotype_table
. They are in the same order as the rows of
genotype_table
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.