RatchetOptions: Set options for parsimony ratchet

RatchetOptionsR Documentation

Set options for parsimony ratchet

Description

RatchetOptions is an R6 class that defines the set of options for performing a parsimony ratchet phylogenetic analysis in nitro.

Active bindings

iterations

An integer value indicating the number of iterations.

replacements

An integer value indicating the number of replacements (i.e., accepted tree rearrangements) to perform in each perturbation phase.

prob_up

An integer value indicating the probability of upweighting a character.

prob_down

An integer value indicating the probability of downweighting a character.

Methods

Public methods


Method new()

Usage
RatchetOptions$new(
  iterations = 50,
  replacements = 40,
  prob_up = 4,
  prob_down = 4
)
Arguments
iterations

An integer value indicating the number of iterations.

replacements

An integer value indicating the number of replacements (i.e., accepted tree rearrangements) to perform in each perturbation phase.

prob_up

An integer value indicating the probability of upweighting a character.

prob_down

An integer value indicating the probability of downweighting a character.


Method print()

Usage
RatchetOptions$print(...)
Arguments
...

Ignored.


Method queue()

Usage
RatchetOptions$queue(set_only = FALSE)
Arguments
set_only

A logical indicating whether to instruct the command to execute immediately (TRUE) or set the variables for future execution (FALSE).


Method clone()

The objects of this class are cloneable with this method.

Usage
RatchetOptions$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


paravian/nitro documentation built on Jan. 17, 2025, 11:21 p.m.