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

Options for high-precision connections #25

Open
stuarteberg opened this issue Aug 18, 2021 · 3 comments
Open

Options for high-precision connections #25

stuarteberg opened this issue Aug 18, 2021 · 3 comments

Comments

@stuarteberg
Copy link
Collaborator

Neuron-neuron connections in neuprint have a weight attribute and a weightHP attribute for "high precision" synapses. Functions in neuprint-python that use edge weights should include an option to use the latter attribute if the user wants to use only high-precision connections.

  • fetch_simple_connections
  • fetch_shortest_paths
  • etc.
@unidesigner
Copy link

What is the difference between a weight and weightHP synapse?

@stuarteberg
Copy link
Collaborator Author

What is the difference between a weight and weightHP synapse?

Each synapse has an associated "confidence" indicating roughly how likely the synapse is real (vs. a false prediction). These can be inspected in the output of fetch_synapses() and fetch_synapse_connections().

But that's only helpful if you're inspecting individual synapse properties. The overall neuron-to-neuron connection strength is precomputed and stored in the :ConnectsTo edge relationship, as the weight attribute. It counts all synapses. If you're interested in a higher precision (but lower recall) version of the edge strength, you can use weightHP. It's also precomputed, but only counts synapses which exceed a minimum confidence score.

In general, the "high precision" threshold could be different from one dataset to the next. In the hemibrain, I believe it is 0.7.

@unidesigner
Copy link

Thanks for the explanation.

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