set_const_NK_interactionsMat: This is a function to just return a matrix that defines the...

Description Usage Arguments Value Note

View source: R/sourceSHAPE.R

Description

This is a function to just return a matrix that defines the sitewise dependencies for an NK fitness landscape. If K == 0 or, this is not an NK simulation, it return NULL

Usage

1
2
3
  set_const_NK_interactionsMat(func_simModel = getOption("shape_simModel"),
  func_genomeLength = getOption("shape_genomeLength"),
  func_numInteractions = getOption("shape_const_numInteractions"))

Arguments

func_simModel

This is the fitness landscape model being simulated

func_genomeLength

This is the number of sites in the genome being simulated

func_numInteractions

An integer value defining the number of sites that interact with each other site

Value

Either NULL, or a matrix with K + 1 columns, detailing the sites interacting with a focal site - identified by the row number and the cell values of the columns.

Note

There is no example as this cannot work outisde of a runSHAPE call, it requires data produced by the simulation experiment.


rSHAPE documentation built on July 19, 2019, 5:05 p.m.