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

View source: R/smat.r

neuron_pairsR Documentation

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

neuron_pairs(nat::kcs20, n=20)

nat.nblast documentation built on July 9, 2023, 6:12 p.m.