navis.interfaces.r.neuron2r¶
- navis.interfaces.r.neuron2r(x, unit_conversion=None, add_metadata=False)[source]¶
Convert Neuron/List to corresponding R neuron/neuronlist object.
- Parameters:
x (TreeNeuron | Dotprops | NeuronList) –
unit_conversion (bool | int | float, optional) – If not
False
will multiply units by given factor.add_metadata (bool, optional) – If False, will use minimal data necessary to construct the R neuron. If True, will add additional data associated with TreeNeuron - this could impact R functions. Currently not functional!
- Returns:
Either R neuron or neuronlist depending on input.
- Return type:
R neuron