Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants