Skip to content

simplify_neuron fails when spine has 1 branch only #40

@jefferis

Description

@jefferis
> library(lhns)
> simplify_neuron(most.lhns[['fru-F-400011']])
Error in apply(dd[bps_available, ], 2, min, na.rm = T) : 
  dim(X) must have a positive length

This looks like a classic issue where R drops dimensions / names when there is only one item on one dimension of a 2d array (which happens when the spine contains only 1 branchpoint).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions