Skip to content

deangeckt/swc_editor

Repository files navigation

logo192 Neuron SWC editor

Online Editor

A free, browser-based online tool for visualizing and editing morphological neuron .swc files — no installation required.

Features

  • View, edit, import, and export .swc files in both 2D and 3D
  • Export transparent PNG images for figures or presentations
  • Edited .swc files can be used in simulation tools like NEURON and BRIAN
  • Search and load neurons directly from NeuroMorpho.Org using their public API

🎬 See demo below ↓

Demos

Browse for online neurons available at NeuroMorpho.Org

demo.mp4

Remove a specific branch in the tree via the 2D editor, save for later analysis

demo.mp4

Upload your own neuron and change segments color

demo.mp4

MICrONS skeletons example:

To use a skeleton from MICrONS, which can be loaded via skeleton_plot or Meshparty run:

Loading the skeleton:

import skeleton_plot.skel_io as skel_io
skel_path = "s3://bossdb-open-data/iarpa_microns/minnie/minnie65/skeletons/v661/skeletons/"
nucleus_id = 256609
segment_id = 864691135404231406
skel_filename = f"{segment_id}_{nucleus_id}.swc"
sk = skel_io.read_skeleton(skel_path, skel_filename)

Exporting the skeleton to SWC:

import numpy as np
sk.export_to_swc(
    f'{nucleus_id}.swc',
    node_labels=sk.vertex_properties["compartment"],
    radius=np.array(sk.vertex_properties["radius"]),
    xyz_scaling=1
)

About

open-source SWC Neuron Morphology Editor & Viewer (runs directly in-browser!)

Topics

Resources

Stars

Watchers

Forks