Closed dokato closed 2 years ago
Yes, it looks like that edge case wasn't considered. FWIW stitch_neurons_mst
is generally recommended – and that seems to work
> x <- neuronlist()
> nn = Cell07PNs[1]
> stitch_neurons_mst(c(nn, x))
'neuron' with 180 vertices in 1 tree
did you already track down where this goes wrong in stitch_neurons
?
I try to stitch a single neuron with some of its partners. I use some filter for my selection, so it happens rarely that the partners list is empty. In such case:
Despite what docs say:
Which is weird as calling
c(as.neuronlist(nn), x)
returns correct neuronlist with just a single neuron.