trees_to_revolver_W: trees_to_revolver_W(n, tree_df) This function computes the...

View source: R/assessment.R

trees_to_revolver_WR Documentation

trees_to_revolver_W(n, tree_df) This function computes the row-normalized W matrix of the REVOLVER algorithm

Description

trees_to_revolver_W(n, tree_df) This function computes the row-normalized W matrix of the REVOLVER algorithm

Usage

trees_to_revolver_W(n, tree_df)

Arguments

n

Number of mutational events

tree_df

A data frame with the following columns:

  • Tree_ID: IDs of mutation trees, unique for each patient

  • Node_ID: IDs of each node in the tree, including the root node (with ID "1"), unique for each node

  • Mutation_ID: IDs of each mutational event, the root node has a mutation ID of "0", other mutation IDs can be duplicated in the tree to allow for parallel mutations

  • Parent_ID: IDs of the parent node ID. The root node has itself as parent (ID "1").

Value

Row-normalized W matrix of the REVOLVER algorithm.

Author(s)

Xiang Ge Luo


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