getSignificantMergedGroups: Select Significant Results from 'HierBipartite'

Description Usage Arguments Value Examples

View source: R/HierBipartite.R

Description

Selects clusters from bipartite graph-based hierarchical clustering with p-value less than or equal to a p-value cutoff.

Usage

1
getSignificantMergedGroups(results, p = 0.05)

Arguments

results

list of results from bipartite graph-based hierarchical clustering

p

p-value cutoff

Value

list of results from bipartite graph-based hierarchical clustering, but only with clusters with p-value at or below p-value cutoff

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
# sample bipartite graph-based hierarchical clustering of three groups
data(ctrp2)

groups = ctrp2$groups
X = ctrp2$X
Y = ctrp2$Y

groupNames = names(groups)
groupSmall = groups[groupNames[1:3]]

## Not run: 
result = hierBipartite(X, Y, groupSmall)

# set fictitious p-values, with one cluster with p-value less than the cutoff
# and the other not
result$nodePvals = list(0.03, 0.12)
getSignificantMergedGroups(result, p = 0.05)

## End(Not run)

hierBipartite documentation built on Feb. 16, 2021, 5:07 p.m.