Skip to main content

Python API for working with WEBKNOSSOS datasets, annotations, and for WEBKNOSSOS server interaction.

Project description

WEBKNOSSOS Python Library

PyPI version Supported Python Versions Build Status Documentation Code Style

Python API for working with WEBKNOSSOS datasets, annotations, and for WEBKNOSSOS server interaction.

For the WEBKNOSSOS server, please refer to https://github.com/scalableminds/webknossos.

Features

  • easy-to-use dataset API for reading/writing/editing raw 2D/3D image data and volume annotations/segmentation in WEBKNOSSOS wrap (*.wkw) format
    • add/remove layers
    • update metadata (datasource-properties.json)
    • up/downsample layers
    • compress layers
    • add/remove magnifications
    • execute any of the wkCuber operations from your code
  • manipulation of WEBKNOSSOS skeleton annotations (*.nml) as Python objects
    • access to nodes, comments, trees, bounding boxes, metadata, etc.
    • create new skeleton annotation from Graph structures or Python objects
  • interaction, connection & scripting with your WEBKNOSSOS instance over the REST API
    • up- & downloading annotations and datasets

Please refer to the documentation for further instructions.

Installation

The webknossos package requires at least Python 3.7+.

You can install it from pypi, e.g. via pip:

pip install webknossos

Examples

See the examples folder or the the documentation.

Contributions & Development

Please see the respective documentation page.

License

AGPLv3 Copyright scalable minds

Test Data Credits

Excerpts for testing purposes have been sampled from:

  • Dow Jacobo Hossain Siletti Hudspeth (2018). Connectomics of the zebrafish's lateral-line neuromast reveals wiring and miswiring in a simple microcircuit. eLife. DOI:10.7554/eLife.33988
  • Zheng Lauritzen Perlman Robinson Nichols Milkie Torrens Price Fisher Sharifi Calle-Schuler Kmecova Ali Karsh Trautman Bogovic Hanslovsky Jefferis Kazhdan Khairy Saalfeld Fetter Bock (2018). A Complete Electron Microscopy Volume of the Brain of Adult Drosophila melanogaster. Cell. DOI:10.1016/j.cell.2018.06.019. License: CC BY-NC 4.0
  • Bosch Ackels Pacureanu et al (2022). Functional and multiscale 3D structural investigation of brain tissue through correlative in vivo physiology, synchrotron microtomography and volume electron microscopy. Nature Communications. DOI:10.1038/s41467-022-30199-6

Release history Release notifications | RSS feed

Download files

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

Source Distribution

webknossos-0.11.3.tar.gz (171.0 kB view details)

Uploaded Source

Built Distribution

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

webknossos-0.11.3-py3-none-any.whl (311.0 kB view details)

Uploaded Python 3

File details

Details for the file webknossos-0.11.3.tar.gz.

File metadata

  • Download URL: webknossos-0.11.3.tar.gz
  • Upload date:
  • Size: 171.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.8.16 Linux/5.15.0-1031-azure

File hashes

Hashes for webknossos-0.11.3.tar.gz
Algorithm Hash digest
SHA256 612f1467f0b6e75af07ad8f54d14cea8902f6230967e83b56df42ccba967398d
MD5 b8a2d2366b7c4e7844dbdd1fe8f289ef
BLAKE2b-256 349ead90082f069d93b7f688de667f6aaf41bfb0ffa0a2f991f887f10ff4da4e

See more details on using hashes here.

File details

Details for the file webknossos-0.11.3-py3-none-any.whl.

File metadata

  • Download URL: webknossos-0.11.3-py3-none-any.whl
  • Upload date:
  • Size: 311.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.8.16 Linux/5.15.0-1031-azure

File hashes

Hashes for webknossos-0.11.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3ebdddde356a4b0dc0848697ddd391657f5d464ae1f8997ad1fd4aefa40de46f
MD5 3f5af1e721df90e8548f07c2e679492d
BLAKE2b-256 35cd665fa1053c3b85aed2cd3186f3bc669b1f36cffb7b7ce7f1b26129250264

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 Pingdom Monitoring Sentry Error logging StatusPage Status page