README.md

This R package implements the TreeMHN model for the joint inference of exclusivity patterns and recurrent trajectories from tumor mutation trees. (bioRxiv preprint)

Quick start

TreeMHN takes as input a set of independent tumor mutation trees containing a total number of n mutations. The format is a dataframe with five columns:

The output is an n-by-n matrix representing the Mutual Hazard Network. The diagonal entries of this matrix indicate how often each mutation will occur and fixate independent of the other mutations. The off-diagonal entries encode the exclusivity and co-occurrence patterns of mutations. Conditioned on the estimated matrix, we can compute the probabilities of different evolutionary trajectories or evaluate the most likely next mutational events given a tumor tree.

Please see Demo.md for more details.

Installation

For Mac users, please compile the package with g++ instead of clang. To do this, you need to first install gcc using Homebrew:

brew install gcc

Then, create ~/.R/Makevars with entry

CXX=$(brew --prefix)/bin/g++-[INSTALLED VERSION]

For all users, install the devtools package in R and run

devtools::install_github("cbg-ethz/TreeMHN")

The installation typically takes around one minute to finish.



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