Skip to content

Strahler order fails on a simplified neuron with no branches #464

@dokato

Description

@dokato

For a neuron with a single branch (e.g. attached) I'd expect Strahler's order to return 1 per each node. Instead it errors out:

> nn
'neuron' with 403 vertices in 1 tree
> plot3d(nn,soma=T)
> summary(nn)
  root nodes segments branchpoints endpoints cable.length
1    1   403        1            0         2     206.8101
> strahler_order(nn)
Error in idxs[i, ] : incorrect number of dimensions

single_branch_neuron.rds.zip

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