https://github.com/alleninstitute/skeleton_plot

tools for plotting swc and meshparty skeletons

https://github.com/alleninstitute/skeleton_plot

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 6 committers (16.7%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.5%) to scientific vocabulary

Keywords from Contributors

transform
Last synced: 10 months ago · JSON representation

Repository

tools for plotting swc and meshparty skeletons

Basic Info
  • Host: GitHub
  • Owner: AllenInstitute
  • Language: Jupyter Notebook
  • Default Branch: main
  • Size: 12.4 MB
Statistics
  • Stars: 3
  • Watchers: 2
  • Forks: 4
  • Open Issues: 0
  • Releases: 0
Created over 3 years ago · Last pushed about 1 year ago
Metadata Files
Readme

README.md

Skeleton Plot

cover

skeleton_plot is a plotting tool for neuronal skeletons.

Installation

skeleton_plot can be installed from PyPI using pip:

pip install skeleton-plot

You can also install a local clone (e.g. if you want to install in editable mode):

git clone https://github.com/AllenInstitute/skeleton_plot.git cd skeleton_plot pip install -e .

Input data

skeleton_plot is designed to work with SWC and MeshParty skeletons.

Usage

Usage of skeleton_plot is described in more detail in the demo notebook, using example neurons that can be pulled from the public-facing MICrONS dataset.

A few examples (and how to make this plot) are also described below:

If you have an object with vertices and edges, or vertices and edges:

use skeleton_plot.plot_tools.plot_verts. This is how the leftmost skeleton plot above was plotted:

skeleton_plot.plot_tools.plot_verts(vertices, edges, ax = ax[0], invert_y=True, line_width = 2.2, color = 'maroon', plot_soma = True) note: more arguments are available to be used with this function such as color and radius maps

If you have an meshparty skeleton that you want to plot:

use skeleton_plot.plot_tools.plot_skel. This is how the skeleton plot above in the middle was generated:

skeleton_plot.plot_tools.plot_skel(sk, ax = ax[1], pull_radius = True, pull_compartment_colors = True, invert_y=True, plot_soma = True, line_width = 3, color = 'darkslategray') note: in order to use pull_radius argument, store the radius information in sk.vertex_properties['radius'] via sk.vertex_properties['radius'] = **series with radius of each node of same length as sk.vertices**

If you have a meshparty meshwork:

use skeleton_plot.plot_tools.plot_mw_skel. This is how the skeleton plot on the right was generated:

skeleton_plot.plot_tools.plot_mw_skel(mw, ax = ax[2], pull_radius = True, invert_y=True, line_width = 5, plot_soma = True, pull_compartment_colors = True, plot_presyn = True, plot_postsyn = True) note: in order to use pullradius argument, you should have: - the appropriate root/soma location stored in mw.skeleton.root - basal dendrite labels stored in ``mw.anno[basaltable] - apical labels stored inmw.anno[apicaltable] - axon labels stored inmw.anno[axontable]``

you may also want to plot synapses, in which case they must be stored in - mw.anno.pre_syn['pre_pt_position'] - mw.anno.post_syn['post_pt_position']

Compartment label conventions

Standardized swc files (www.neuromorpho.org) - - 0 - undefined - 1 - soma - 2 - axon - 3 - (basal) dendrite - 4 - apical dendrite - 5+ - custom

Owner

  • Name: Allen Institute
  • Login: AllenInstitute
  • Kind: organization
  • Location: Seattle, WA

Please visit http://alleninstitute.github.io/ for more information.

GitHub Events

Total
  • Issues event: 1
  • Watch event: 1
  • Issue comment event: 1
  • Push event: 1
  • Pull request event: 1
Last Year
  • Issues event: 1
  • Watch event: 1
  • Issue comment event: 1
  • Push event: 1
  • Pull request event: 1

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 62
  • Total Committers: 6
  • Avg Commits per committer: 10.333
  • Development Distribution Score (DDS): 0.226
Past Year
  • Commits: 11
  • Committers: 3
  • Avg Commits per committer: 3.667
  • Development Distribution Score (DDS): 0.273
Top Committers
Name Email Commits
emjoyce e****5@g****m 48
bdpedigo b****o@g****m 5
emjoyce = 5
Keith Wiley k****y@a****g 2
Forrest Collman f****n@g****m 1
bethanny.danskin b****n@g****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 3
  • Total pull requests: 7
  • Average time to close issues: about 1 month
  • Average time to close pull requests: about 2 months
  • Total issue authors: 2
  • Total pull request authors: 4
  • Average comments per issue: 0.67
  • Average comments per pull request: 0.14
  • Merged pull requests: 6
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: 7 days
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 1.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • fcollman (2)
  • bdpedigo (1)
Pull Request Authors
  • kebwi (2)
  • bpdanskin (2)
  • ceesem (2)
  • bdpedigo (1)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 172 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 7
  • Total maintainers: 1
pypi.org: skeleton-plot

package for plotting skeletons

  • Versions: 7
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 172 Last month
Rankings
Dependent packages count: 7.1%
Average: 20.0%
Dependent repos count: 32.8%
Maintainers (1)
Last synced: 10 months ago

Dependencies

requirements.txt pypi
  • matplotlib *
  • meshparty *
  • seaborn *
setup.py pypi