R: Calculate PALs for Pairs

pals {propr} | R Documentation

## Calculate PALs for Pairs

### 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

    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.

[Package propr version 4.2.6 Index]