model_fgmsmut: Function generating the fitness of the mutants' genotypes in...

Description Usage Arguments Value

View source: R/generate_model.R

Description

Function generating the fitness of the mutants' genotypes in genotype_table The mutants are produced by combining nb_mut selected mutations generated from the wt with fitness fitness_wt. Fitnesses are computed using an isotropic FGM with the parameter n, lambda, maxfitness, alpha, Q, m. See generate_selected_mutation for more information on the selected mutations and fitness_mutant_genotype for the fitness of the genotypes.

Usage

1
2
model_fgmsmut(nb_mut, genotype_table, fitness_wt, n, lambda, maxfitness,
  alpha, Q, m, fun_args)

Arguments

nb_mut

A natural number. Number of mutations in the output.

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.

fitness_wt

A real number. Fitness of the wild type in the new environment.

n

A natural number. Number of dimensions of the phenotypic space in which the random mutations are drawn.

lambda

A positive real number. Variance of the effect of mutations on phenotype per phenotypic dimension.

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.

m

A natural number inferior to n. Level of restricted pleiotropy which corresponds to the number of dimensions for which each mutation have a non-zero phenotypic effect. i.e. effects are equal to 0 in n-m dimensions. Default=n which corresponds to full pleiotropy.

fun_args

List with a single element called nb_mut_rand. For more information see generate_selected_mutation

Value

A vector of real numbers. Each element is the fitness of the corresponding selected mutants 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.