powered by
Utility function to generate all or random pairs of neurons
neuron_pairs(query, target, n = NA, ignoreSelf = TRUE)
a data.frame with two character vector columns, query and target.
either neuronlists or character vectors of names. If target is missing, query will be used as both query and target.
neuronlist
number of random pairs to draw. When NA, the default, uses expand.grid to draw all pairs.
expand.grid
Logical indicating whether to omit pairs consisting of the same neuron (default TRUE).
TRUE
calc_score_matrix, expand.grid
neuron_pairs(nat::kcs20, n=20)
Run the code above in your browser using DataLab