xegaGePrecisionFactory {xegaGeGene}R Documentation

Configure the function for computing the codon precision for grammar evolution.

Description

xegaGePrecisionFactory() implements the selection of one of the functions for computing the codon precision in this package by specifying a text string. The selection fails ungracefully (produces a runtime error), if the label does not match. The functions are specified locally.

Current support:

  1. "Min" returns MinCodonPrecision. Shortest coding, but some choice bias.

  2. "LCM" returns mLCMGCodonPrecision. (Default)

  3. "MaxPBias" returns CodonPrecisionWithThreshold.

Usage

xegaGePrecisionFactory(method = "LCM")

Arguments

method

String specifying the GeneMap function.

Value

Precision of codon function.

See Also

Other Configuration: xegaGeGeneMapFactory()

Examples

CodonPrecision<-xegaGePrecisionFactory("Min")
NT<-sample(5, 50, replace=TRUE)
CodonPrecision(NT)
CodonPrecision<-xegaGePrecisionFactory("MaxPBias")
CodonPrecision(NT, 0.1)

[Package xegaGeGene version 1.0.0.0 Index]