R/sampling_curves.R
make_rand_sampling_curve.RdMake (randomised) sampling curve object for neuron or connection table
make_rand_sampling_curve(x, partners = c("auto", "out", "in"), sample = TRUE, volume = NULL, keep.input = TRUE)
| x | A |
|---|---|
| partners | Whether to examine the input or output partners for given neuron. |
| sample | Whether to randomise the connection order (this is the right thing to do if the input neuron has been completed but was not randomly sampled in the first place.) |
| volume | An optional neuropil volume to which connectors can be
restricted after being fetched from CATMAID. Can be either a character
vector naming the volume or a surface object that is (or can be converted
|
| keep.input | Whether or not to keep the raw input as an attribute on the
|
An object of class samplingcurve
make_rand_sampling_curve is a thin wrapper for
samplingcurve, which has the additional functionality of
fetching (all) the synapses for one or more CATMAID neurons (specified
using any form compatible with catmaid_skids).
sc=make_rand_sampling_curve(2560371, partners='out')#> Warning: Dropping 1 for neuron: 2560371head(sc)#> new partner #> 1 1 1027307 #> 2 2 1037034 #> 3 3 827034 #> 4 4 1031609 #> 5 4 1027307 #> 6 5 852993scin=make_rand_sampling_curve(2560371, partners='in') plot(sc, main='Randomised input sampling curve for rLPTCIN')