set_DepbySite_ancestFitness {rSHAPE} | R Documentation |
This is a convenience function for setting the dependent fitness values of sites in an NK fitness landscape model. This allows the dependent fitness of sites to be calculated once and then referenced as mutations occur. It makes exploring this style of fitness landscape a bit more computationally friendly - as it generally isn't.
Description
This is a convenience function for setting the dependent fitness values of sites in an NK fitness landscape model. This allows the dependent fitness of sites to be calculated once and then referenced as mutations occur. It makes exploring this style of fitness landscape a bit more computationally friendly - as it generally isn't.
Usage
set_DepbySite_ancestFitness(func_simModel = getOption("shape_simModel"),
func_const_siteBystate_fitnessMat = getOption("shape_const_siteBystate_fitnessMat"),
func_const_NK_interactionMat = getOption("shape_const_NK_interactionMat"))
Arguments
func_simModel |
This is the fitness landscape model being simulated |
func_const_siteBystate_fitnessMat |
This is the sitewise independent fitness contributions in the fitness landscape |
func_const_NK_interactionMat |
This defines the sitewise dependencies based on the K interactions. |
Value
Either the dependent sitewise fitness contributions in an NK fitness landscape, or NA.
Note
There is no example as this cannot work outisde of a runSHAPE call, it requires data produced by the simulation experiment.
[Package rSHAPE version 0.3.2 Index]