Lookup a fit vector for a given tree and model mapping in a data.table of previously run fits.

LookupFit(
  tree,
  modelTypes,
  modelMapping,
  tableFits,
  hashCodes = HashCodes(tree = tree, modelTypes = modelTypes,
    startingNodesRegimesLabels = PCMTreeGetLabels(tree)[PCMTreeGetPartition(tree)],
    modelMapping = modelMapping)
)

Arguments

tree

a phylo object

modelTypes

character vector

modelMapping

an integer or character vector to be matched against modelTypes

tableFits

a data.table having at least the following columns:

  • hashCodeTreean MD5 key column of type character-vector

  • hashCodePartitionNodeLabelsan MD5 key column of type character-vector representing the hash-code of PCMTreeGetLabels(tree)[PCMTreeGetPartition(tree)].

  • hashCodeMappingan MD5 key column of type character-vector

hashCodes

the result of calling HashCodes on the passed arguments tree, modelTypes, modelMapping. Default: HashCodes( tree = tree, modelTypes = modelTypes, startingNodesRegimesLabels = PCMTreeGetLabels(tree)[PCMTreeGetPartition(tree)], modelMapping = modelMapping ).

Value

the corresponding fit-vector to the given tree and model mapping or if no such entry is found, issues an error.