This function querries if a suite of genotypes exist within the fitness landscape database.
find_neededNeighbours(tmp_possibleNeighbours, tmp_focal_numMuts,
tmp_refTables, maxHamming = getOption("shape_max_numMutations"),
tmp_tableSplit = getOption("shape_db_splitTables"),
tmp_genomeLength = getOption("shape_genomeLength"),
tmpDirection = getOption("shape_allow_backMutations"),
tmpRange_numMuts = NULL, tmp_genCon)
This is a vector of all possible mutants that we're trying to querry within the fitness landscape database.
This is the number of mutations in the focal genotype, it controls - along with other parameters - what tables of the fitness landscape database are querried.
This is the a vector of named tables that exist within the fitness landscape. It can not be passed in which case the database at tmp_genCon is querried for this information.
The maximum number of sites that could be changed by mutation of the tmp_focalGenotype.
This is a logical which controls if the tables which report on all genotypes with X mutations should be forced into a single table or it SHAPE is allowed to split them into multiple tables.
The length of the genomes, or number of mutable sites/positions, being simulated.
This is a logical which controls if reversions are allowed (ie: if TRUE sites can revert from mutated to WT)
This is the range of number of mutations which a mutant neighbour may posses. If not supplied that will be calculated in line via other parameters passed to the function.
This is the filepath for the database file that contains the fitness landscape information.
A vector of the genotypes that need to be created as they've not yet been defined within the fitness landscape.