pals: Calculate PALs for Pairs

Description Usage Arguments Value

View source: R/6-propdViz.R

Description

This function finds the Popular Adjacent Ligand or Self (PALs) for each feature in the @results slot of a propd object. Specifically, we define PALs as the adjacent node with the highest amount of connectivity. If node itself has more connectivity than any of its neighbors, it is its own PAL.

Usage

1
pals(object, k)

Arguments

object

A propr or propd object.

k

An integer. For propr methods, the number of co-clusters (where all pairs receive a specified color if and only if both members belong to same the cluster). For propd methods, the maximum number of PALs to index when calculating pals in the network.

Value

A named vector of PALs, ordered by decreasing connectivity of the input nodes. The names of the result refer to the input nodes themselves.


propr documentation built on Dec. 16, 2019, 9:30 a.m.