navis 1.4.0
  • Install
  • Quickstart
  • Tutorials
  • API
  • Changelog
  • Github
  • Ecosystem
  • Site
    • Page
        • navis.combine_neurons
          • combine_neurons()

    navis.combine_neurons¶

    navis.combine_neurons(*x)[source]¶

    Combine multiple neurons into one.

    Parameters:

    x (NeuronList | Neuron/List) – Neurons to combine. Must all be of the same type. Does not yet work with VoxelNeurons. The combined neuron will inherit its name, id, units, etc. from the first neuron in x.

    Returns:

    Combined neuron.

    Return type:

    Neuron

    See also

    navis.stitch_skeletons()

    Stitches multiple skeletons together to create one continuous neuron.

    Examples

    Combine skeletons:

    >>> import navis
    >>> nl = navis.example_neurons(3)
    >>> comb = navis.combine_neurons(nl)
    

    Combine meshes:

    >>> import navis
    >>> nl = navis.example_neurons(3, kind='mesh')
    >>> comb = navis.combine_neurons(nl)
    

    Combine dotprops:

    >>> import navis
    >>> nl = navis.example_neurons(3)
    >>> dp = navis.make_dotprops(nl)
    >>> comb = navis.combine_neurons(dp)
    

    Back to top

    Source

    © Copyright 2018, Philipp Schlegel.
    Created using Sphinx 5.3.0.