input_tree_df | R Documentation |
This function processes a dataframe of mutation trees and output a TreeMHN object.
input_tree_df(
n,
tree_df,
patients = NULL,
tree_labels = NULL,
mutations = NULL,
weights = NULL
)
n |
Number of mutational events. |
tree_df |
A data frame with the following columns:
|
patients |
A list of patient labels, which must be unique values. If no labels are given, then the patient IDs will be used. |
tree_labels |
A list of tree labels, which must be unique values. If no labels are given, then the tree IDs will be used. |
mutations |
A list of mutation names, which must be unique values. If no names are given, then the mutation IDs will be used. |
weights |
Weights of the trees. If no values are given, weights are assigned equally to the trees such that each patient has a weight of 1. |
A TreeMHN object
Xiang Ge Luo
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.