Utility function to generate all or random pairs of neurons
neuron_pairs(query, target, n = NA, ignoreSelf = TRUE)
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
a data.frame with two character vector columns, query and target.
calc_score_matrix, expand.grid
# NOT RUN { neuron_pairs(nat::kcs20, n=20) # }
Run the code above in your browser using DataCamp Workspace