Skip to main content

SWC Visualizer

SWC Visualizer is a Python tool for validating, summarizing, and visualizing neuronal morphology stored in SWC files.

It is designed for people who are new to neuronal morphology and/or programming, who want to explore SWC files from databases such as NeuroMorpho.Org or other sources.

The tool can:

  • Validate SWC morphology data.
  • Provide basic summary information about neuronal morphology.
  • Generate 2D visualizations of neuronal morphology.
  • Generate interactive 3D visualizations of neuronal morphology.
  • Process SWC files individually or. process all SWC files in a directory sequentially.

Example

See docs/3d_visualizer_example.png And docs/2d_visualizer_example.png

Basic Usage

After installing the package, import and call visualize_swc

from swc_visualizer import visualize_swc

visualize_swc("my/neuron/folder", visualization="3d")

The visualization argument accepts:

  • "2d" — generate a 2D visualization.
  • "3d" — generate a 3D visualization.
  • "both" — generate both 2D and 3D visualizations.

You can provide either an individual SWC file or a directory containing multiple SWC files:

from swc_visualizer import visualize_swc

# Process a single SWC file
visualize_swc("my/neuron.swc", visualization="2d")

# Process all SWC files in a directory
visualize_swc("my/neuron_folder", visualization="both")

Example SWC files from NeuroMorpho are provided in the morphology directory.

Acknowledgements

Special thanks to Marieke Westendorp for her guidance throughout this project.

License

This project is licensed under the MIT License

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swc_visualizer-0.1.1.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

swc_visualizer-0.1.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file swc_visualizer-0.1.1.tar.gz.

File metadata

  • Download URL: swc_visualizer-0.1.1.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.16

File hashes

Hashes for swc_visualizer-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3f1e711661091cdb0af7bc1ff6ee8aab55a7d78f070847784a3f79a527f735e4
MD5 246cc9d9f451450acba1b5e7611c4eb9
BLAKE2b-256 7070c7f0633463946ce302365fade49ba550d778a7b91b7e086cdec7d0c66db2

See more details on using hashes here.

File details

Details for the file swc_visualizer-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: swc_visualizer-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.16

File hashes

Hashes for swc_visualizer-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 033b57c1c3e6414c4b8c0f7192559bddecdec7b0f547db82576ad9dccdbcd7f3
MD5 f261092c4d9869b570b4cdcd0cc99ab4
BLAKE2b-256 16c9d199fd4c5b2a7254c86fec5c881c3c27f8d860f8b20ec7cebe2e00f867f7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page