get_MC_flags: get_MC_flags(N, trees) A function that determines whether...

View source: R/learn_MHN.R

get_MC_flagsR Documentation

get_MC_flags(N, trees) A function that determines whether Monte Carlo sampling is needed for each tree

Description

get_MC_flags(N, trees) A function that determines whether Monte Carlo sampling is needed for each tree

Usage

get_MC_flags(N, n, trees, MC_threshold)

Arguments

N

Sample size

n

Number of events

trees

Mutation tree structures

MC_threshold

A threshold on the maximum number of subtrees of a given tree, above which Monte Carlo sampling will be used (Default: 500).

Value

A boolean vector indicating whether Monte Carlo sampling is used for each tree


cbg-ethz/TreeMHN documentation built on Jan. 29, 2024, 1:29 p.m.