natverse / nat.nblast

R package implementing the NBLAST neuron search algorithm, as an add-on for the NeuroAnatomy Toolbox (nat) R package.
http://natverse.org/nat.nblast/
16 stars 6 forks source link

nblast (or nblast_allbyall) fails with error "Cloud has no points" #36

Open jefferis opened 7 years ago

jefferis commented 7 years ago

Example here: https://groups.google.com/forum/#!topic/nat-user/Oe40-OjRDd8 Paavo also had the same error recently. Happens when nabor::knn is called with matrix containing 0 rows. Maybe nat.nblast:::WeightedNNBasedLinesetMatching.default should return NA if either of the inputs have 0 rows.