process_node_annot: Apply a function to split annotation

Description Usage Arguments Value Author(s) See Also Examples

Description

Applies a specified function (in the graphDispParams object) to each section of the annotation data.frame after being split by the summary ID. This facilitates mapping metadata supplied in the annotation data.frame to nodes.

Usage

1
process.node.annot(obj, targ.nodes, graph.params, func.name)

Arguments

obj

A variantPriorResult object

targ.nodes

The node names of the graph to be plotted. Should correspond to the summary IDs.

graph.params

A graphDispParams object

func.name

The name of the function-calling method to apply, the resulting function should take a data.frame as the sole argument

Value

process.node.annot

Returns a character vector named by the appropriate summary ID

Author(s)

Daniel Bottomly

See Also

variantPriorResult, graphDispParams, annotatedIGraph, make.target.graph

Examples

1
2
3
4
5
6
7
8
set.seed(123)
data(prior_obj, package="HitWalker")

test.symbs <- sample(annotation(getGraph(prior.obj))$symbol, 10)

graph.params <- makeGraphDispParams(file.name=character())

process.node.annot(obj=prior.obj, targ.nodes=test.symbs, graph.params=graph.params, func.name=shapeFunc)

dbottomly/HitWalker documentation built on May 15, 2019, 1:22 a.m.