nat.nblast (version 1.6.2)

neuron_pairs: Utility function to generate all or random pairs of neurons

Description

Utility function to generate all or random pairs of neurons

Usage

neuron_pairs(query, target, n = NA, ignoreSelf = TRUE)

Arguments

query,target
either neuronlists or character vectors of names. If target is missing, query will be used as both query and target.
n
number of random pairs to draw. When NA, the default, uses expand.grid to draw all pairs.
ignoreSelf
Logical indicating whether to omit pairs consisting of the same neuron (default TRUE).

Value

a data.frame with two character vector columns, query and target.

See Also

calc_score_matrix, expand.grid

Examples

Run this code
neuron_pairs(nat::kcs20, n=20)

Run the code above in your browser using DataLab