No project description provided
Project description
Skelescope
A simple interactive 3D skeleton viewer for Jupyter
Development installation
Create a virtual environment and install skelescope in editable mode with the optional development dependencies:
python -m venv venv
source venv/bin/activate
pip install -e ".[dev]"
pip install navis
pip install pandas
You then need to install the JavaScript dependencies and run the development server.
npm install
npm run dev
All is set to open example.ipynb in JupyterLab, VS Code, or your favorite editor
to start developing. Any change made in the js folder will be directly reflected
in the notebook.
Proposed Interface (Jakob, edited pha)
viewer = NeuriteViewer(
width = "500", # non-required value. defaults to filling the widget
height = "300"
)
# add neuron to viewer instance
viewer.loadNeuron(
swc, # swc in JSON format
synapses, # JSON format (position, [pre_post_annotation, graph_node_id])
tree_topology = None
cache_folder = None
name = None, # not required, defaults to "<root_id>"
neuronColor, # not required, defaults to random color
synapseColor, # not required
recenter_camera=True # not required
)
# synapses are attached to the neuron as neuron.connectors.
# remove neuron from instance
viewer.deleteNeuron(
name # can be manually assigned name or <root_id>
)
viewer.getNeuronSelection(
names # list of all neuron names to get selection from, not required parameter
)
viewer.getSegmentSelection(
names # list of all neuron names to get selection from, not required parameter
)
viewer.getSynapseSelection(
names # # list of all neuron names to get synapse selection from, not required parameter
)
viewer.show() # renders the widget
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file skelescope-0.0.1.tar.gz.
File metadata
- Download URL: skelescope-0.0.1.tar.gz
- Upload date:
- Size: 7.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.9.7 Darwin/23.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c061d41d824123276c4abce2a142062066f53264c57338942f50aa40aa9a658
|
|
| MD5 |
82e2ddcd0020772365e33c8f6960b23c
|
|
| BLAKE2b-256 |
83d16e0c2a7e4cec1e1e34a3ddc71e9f5d88ac141c5b0978580f024bf6688cbf
|
File details
Details for the file skelescope-0.0.1-py3-none-any.whl.
File metadata
- Download URL: skelescope-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.9.7 Darwin/23.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce0167036ba552302e4b2515a6000ae08fbcb1a5e33e3e69edec8e1d3a30fd1c
|
|
| MD5 |
a2a62291fcce9da7fcb8b460a14b12b5
|
|
| BLAKE2b-256 |
024a799f1489b8fb45ad57456a509fcfe0251d6c39dae260b1d151a90197cdc5
|