pymaid.has_soma¶
- pymaid.has_soma(x, tag='soma', min_rad=500, return_ids=False, remote_instance=None)[source]¶
Check if neuron(s) has soma.
- Parameters
x –
Neurons which to check for a soma. Can be either:
skeleton ID(s) (int or str)
neuron name(s) (str)
annotation(s): e.g. ‘annotation:PN right’
CatmaidNeuron or CatmaidNeuronList object
tag (str | None, optional) – Tag we expect the soma to have. Set to
None
if not applicable.min_rad (int, optional) – Minimum radius of soma.
return_ids (bool, optional) – If True, will return node IDs of soma(s) found instead of simply if a soma has been found.
remote_instance (CatmaidInstance, optional) – If not passed directly, will try using global.
- Returns
If
return_ids=False
:{skid1: True, skid2: False, ...}
If
return_ids=True
:{skid1: [node_id], skid2: [node_id], ...}
- Return type
dict