fitness_mutant_genotype: Returns the fitnesses for each genotype in 'genotype_table'...

Description Usage Arguments Value

View source: R/generate_model.R

Description

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

Usage

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]))

Arguments

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 (pheno_opt).

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 maxfitness. Its length must be equal to n. Default = numeric(n).

Value

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.


YoannAnciaux/inferenceFitnessLandscape documentation built on Oct. 31, 2019, 1:19 a.m.