Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Neurons from Navis neuPrint tutorial load but without connection tables (no n_connectors) #135

Open
Neurophila opened this issue Dec 13, 2023 · 3 comments

Comments

@Neurophila
Copy link

Description
When following the Navis neuPrint tutorial currently found at https://navis.readthedocs.io/en/latest/source/tutorials/neuprint.html I encounter an issue when trying to load in the example neurons in which the connector tables do not load (no n_connectors).

To Reproduce
I copied and pasted the lines of code found in the example notebook exactly as they are written, with the exception being I used my authorization token stored as a variable.
When I run the following lines:

mbon_skeletons = neu.fetch_skeletons(neu.SegmentCriteria(instance='.*MBON.*_R', regex=True))
mbon_skeletons.head()

I get this output:
image_2023-12-12_161540352

Expected behavior
I expected these tables to populate with n_connectors. I am uncertain if I should be explicitly importing these connection tables elsewhere or if they should be populated already as in the example notebook.

Your system

  • NAVis version: 1.5.0
  • Python version: Python 3.8.0
  • Operating System: Windows 10
@schlegelp
Copy link
Collaborator

Thanks for the detailed report!

neu.fetch_skeletons (and neu.fetch_mesh_neuron) have a with_synapses parameter that defaults to False. I suspect that used to be True when the tutorial was first written.

In any event, change this line should work:

>>> mbon_skeletons = neu.fetch_skeletons(neu.SegmentCriteria(instance='.*MBON.*_R', regex=True),
...                                      with_synapses=True)

I have also updated the tutorial on readthedocs but the changes haven't propagated to the website yet (probably some under-the-hood caching).

@schlegelp
Copy link
Collaborator

Looks like the updated tutorial is now visible. You might still have to deep-reload the website though.

@Neurophila
Copy link
Author

Thank you for such a quick response, we have n_connectors now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants