Skip to contents

Helper function used in plotPairwiseAdjacency.Region and plotChordDiagram.Region Pulls pairwise adjacency results for the Region, resolving aggregate flag, then pivots data to wide (matrix) format, where feature 1 is represented by rownames and feature 2 is represented by column names, and the values are as specified by values_from

Usage

pull_pairwise_adjacency_results(
  object,
  nn,
  feature,
  aggregate_flag,
  callsite,
  values_from,
  values_fill
)

Arguments

object

A Region object

nn

The name of a nearestNeighborGraph from object (character).

feature

The name of a cellMetadata column (character).

aggregate_flag

Passed through from higher-level functions to indicate when sample-level aggregation/summarization should be performed. Set to TRUE if pairwiseAdjacency was performed with sample-level aggregation/summarization.

callsite

The name of the function calling this helper. Used for printing errors.

values_from

Used for pivoting results from pairwiseAdjacency. Passed to tidyr::pivot_wider().

values_fill

Used for pivoting results from pairwiseAdjacency. Passed to tidyr::pivot_wider().

Scroll to top