Using SWC files and comparing specific neurons in NBLAST

60 views
Skip to first unread message

Amanda Abusaif

unread,
Feb 21, 2022, 10:47:28 PM2/21/22
to nat-user
Hello,

I am trying to use NBLAST to measure the similarity between dotprops made from exporting neurons from FlyWire and from light microscopy data. I would appreciate any help on navigating through the code.
I exported FlyWire neuron skeletons as an SWC file through Python by using fafbseg.flywire.skeletonize_neuron(segment ID) and navis.write_swc. I converted skeleton nrrd files from LM to dotprops through R by using dotprops("my_skeleton.nrrd", k=3). I then downloaded the dotprop as a CSV file by using write.csv(dp,file="my_dotprop.csv"). 
I am trying to run an NBLAST using the resulting SWC file as the query and the CSV file as the target. I am having trouble using the navis.make_dotprops function with the SWC file. It works fine when I try with a CSV file. Also, when I try NBLASTing with another CSV file as the query with the navis.nblast function instead, I get a message reading "'NoneType' object is not iterable". 

How can I solve these issues? Is there a way to convert between SWC and CSV, or a way to export FlyWire neurons as a CSV? How do I go about solving the "'NoneType' object is not iterable" error? I would be happy to receive any advice on this matter.

Thank you,
Amanda Abusaif

Gregory Jefferis

unread,
Feb 24, 2022, 2:41:20 AM2/24/22
to Amanda Abusaif, nat-user, Philipp Schlegel
Dear Amanda,

Thanks for your messsge. This mailing list is focussed on the R natverse packages but it looks like the problem you have is with the NAVis Python packages. Unfortunately the lead NAVis author Philipp Schlegel does not monitor it regularly — I think he prefers problems to be raised as GitHub issues. 


Second, you will need to give more details. Exactly what code were you running? What data were you using as input (share an example in a zip file on GitHub if necessary)? The goal is to make your problem *reproducible* with minimal effort by the developers. 

Good luck!

Greg. 


Sent from my iPhone

On 22 Feb 2022, at 03:47, Amanda Abusaif <aabus...@berkeley.edu> wrote:

Hello,
--
You received this message because you are subscribed to the Google Groups "nat-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nat-user+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/nat-user/36524879-4737-4bf4-a34f-58770b4a47fan%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages