generate_branch_changes: Relevant probes for gain, loss, and change in methylation...

Description Usage Arguments Value Examples

View source: R/analyze.R

Description

This function returns relevant probe lists for each node that exhibit a gain or loss in methylation status. It also returns three sets of branch labels: number of methylation changes, number of methylation gains, and number of methylation losses.

Usage

1
generate_branch_changes(tree, probe_node_matrix)

Arguments

tree

ape::phylo tree

probe_node_matrix

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

Value

a structure containing a list of probes with differentially methylated probes for each node, a list of branch labels for the number of total changes in methylation, a list of branch labels for the number of gains in methylation, a list of branch labels for the number of losses in methylation

Examples

1
2
3
4
5
6
probe_information <- generate_branch_changes(tree, probe_node_matrix)
relevant_probes <- probe_information$relevant_probes
total_changes_label <- probe_information$total_changes_label
meth_gains_label <- probe_information$meth_gains_label
meth_losses_label <- probe_information$meth_losses_label
... some visualization 

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