berenslab / MorphoPy

GNU General Public License v3.0
34 stars 11 forks source link

Hi How can I solve this issue~ Thanks! #127

Closed melancholy12 closed 1 year ago

melancholy12 commented 1 year ago

File D:\Python\Python310\lib\site-packages\morphopy\computation\file_manager.py:40, in check_neurontree(neurontree) 38 raise ValueError('Graph has no root defined!') 39 if not neurontree.is_connected(): ---> 40 raise ValueError('Graph has disconnected nodes!')

ValueError: Graph has disconnected nodes!

huangziwei commented 1 year ago

This error means that your swc file contains disconnected neurites, that is, some neurites are not connected to any other neurites or soma. You need to fix that before using MorphoPy.

melancholy12 commented 1 year ago

I think there is nothing wrong when I used the Neurolucida for reconstruction. Can I solve this issue by using python packages? Just remove the disconnected nodes or neurites?

huangziwei commented 1 year ago

MophoPy doesn't handle this use case right now. But I can have a look if you provide some example data.

melancholy12 commented 1 year ago

Could I send you from an email? (Thanks for your time for helping)

huangziwei commented 1 year ago

you can send it to the email address on my Github Profile.