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

How can I get all the features results in the simple way? #1068

Open
melancholy12 opened this issue Mar 2, 2023 · 1 comment
Open

How can I get all the features results in the simple way? #1068

melancholy12 opened this issue Mar 2, 2023 · 1 comment

Comments

@melancholy12
Copy link

Here is my codes:
import neurom.features as nf
from neurom import load_neuron

neuron2 = load_neuron("/example data2.swc")

morph_features = nf.get(neuron2)

But it returns: TypeError: get() missing 1 required positional argument: 'obj'

So if I read the feature one by one, it seems to be fine.
How can I get all the features?

@arnaudon
Copy link
Contributor

arnaudon commented Mar 3, 2023

Hello! You can use this: https://neurom.readthedocs.io/en/stable/morph_stats.html which has a configuration dictionary to select which features you want. The doc is for a cli, but you can use the python function directly: https://github.com/BlueBrain/NeuroM/blob/master/neurom/apps/morph_stats.py#L164
If you want all available features, you can create the config dict with this function: https://github.com/BlueBrain/NeuroM/blob/master/neurom/apps/morph_stats.py#L266
Good luck!

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