add_data: Add to probe-node matrix at a new node

Description Usage Arguments Value Examples

View source: R/editTree.R

Description

At a given node, this function adds data to the probe-node matrix at node n_new. Make sure that the sizes of data and the probe-node matrix are compatible before calling this function.

Usage

1
add_data(probe_node_matrix, n_new., data)

Arguments

probe_node_matrix

matrix storing the methylation status across all probes and nodes on a tree

data

column matrix of methylation status for a node across many probes

n_new

node number

Value

probe-node matrix with data stored at node n_new

Examples

1
2
tree <- add_data(probe_node_matrix, 12, probe_node_matrix['6'])
... some visualization 

ethanmoyer/MethylConstruct documentation built on July 10, 2020, 12:28 a.m.