skeliner 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- skeliner-0.1.0/.gitattributes +1 -0
- skeliner-0.1.0/.github/workflows/python-package.yml +40 -0
- skeliner-0.1.0/.github/workflows/python-publish.yml +70 -0
- skeliner-0.1.0/.gitignore +40 -0
- skeliner-0.1.0/PKG-INFO +31 -0
- skeliner-0.1.0/README.md +10 -0
- skeliner-0.1.0/notebooks/example.miminal.ipynb +155 -0
- skeliner-0.1.0/notebooks/example.post.ipynb +1012 -0
- skeliner-0.1.0/notebooks/method.tour.ipynb +284 -0
- skeliner-0.1.0/pyproject.toml +36 -0
- skeliner-0.1.0/skeliner/__init__.py +13 -0
- skeliner-0.1.0/skeliner/core.py +1874 -0
- skeliner-0.1.0/skeliner/dx.py +558 -0
- skeliner-0.1.0/skeliner/io.py +302 -0
- skeliner-0.1.0/skeliner/plot.py +990 -0
- skeliner-0.1.0/skeliner/post.py +263 -0
- skeliner-0.1.0/tests/__init__.py +0 -0
- skeliner-0.1.0/tests/data/60427.ctm +0 -0
- skeliner-0.1.0/tests/test_core.py +45 -0
- skeliner-0.1.0/tests/test_dx.py +80 -0
- skeliner-0.1.0/tests/test_io.py +48 -0
- skeliner-0.1.0/tests/test_post.py +75 -0
- skeliner-0.1.0/uv.lock +1735 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*.ipynb linguist-documentation
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
|
|
2
|
+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
|
|
3
|
+
|
|
4
|
+
name: Python package
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
branches: ["main"]
|
|
9
|
+
pull_request:
|
|
10
|
+
branches: ["main"]
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
build:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
strategy:
|
|
16
|
+
fail-fast: false
|
|
17
|
+
matrix:
|
|
18
|
+
python-version: ["3.10", "3.11", "3.12", "3.13"]
|
|
19
|
+
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v4
|
|
22
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
23
|
+
uses: actions/setup-python@v3
|
|
24
|
+
with:
|
|
25
|
+
python-version: ${{ matrix.python-version }}
|
|
26
|
+
- name: Install dependencies
|
|
27
|
+
run: |
|
|
28
|
+
python -m pip install --upgrade pip
|
|
29
|
+
python -m pip install flake8 pytest
|
|
30
|
+
python -m pip install .[dev]
|
|
31
|
+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
|
32
|
+
- name: Lint with flake8
|
|
33
|
+
run: |
|
|
34
|
+
# stop the build if there are Python syntax errors or undefined names
|
|
35
|
+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
|
36
|
+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
|
37
|
+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
|
38
|
+
- name: Test with pytest
|
|
39
|
+
run: |
|
|
40
|
+
pytest
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# This workflow will upload a Python Package to PyPI when a release is created
|
|
2
|
+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
|
|
3
|
+
|
|
4
|
+
# This workflow uses actions that are not certified by GitHub.
|
|
5
|
+
# They are provided by a third-party and are governed by
|
|
6
|
+
# separate terms of service, privacy policy, and support
|
|
7
|
+
# documentation.
|
|
8
|
+
|
|
9
|
+
name: Upload Python Package
|
|
10
|
+
|
|
11
|
+
on:
|
|
12
|
+
release:
|
|
13
|
+
types: [published]
|
|
14
|
+
|
|
15
|
+
permissions:
|
|
16
|
+
contents: read
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
release-build:
|
|
20
|
+
runs-on: ubuntu-latest
|
|
21
|
+
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v4
|
|
24
|
+
|
|
25
|
+
- uses: actions/setup-python@v5
|
|
26
|
+
with:
|
|
27
|
+
python-version: "3.x"
|
|
28
|
+
|
|
29
|
+
- name: Build release distributions
|
|
30
|
+
run: |
|
|
31
|
+
# NOTE: put your own distribution build steps here.
|
|
32
|
+
python -m pip install build
|
|
33
|
+
python -m build
|
|
34
|
+
|
|
35
|
+
- name: Upload distributions
|
|
36
|
+
uses: actions/upload-artifact@v4
|
|
37
|
+
with:
|
|
38
|
+
name: release-dists
|
|
39
|
+
path: dist/
|
|
40
|
+
|
|
41
|
+
pypi-publish:
|
|
42
|
+
runs-on: ubuntu-latest
|
|
43
|
+
needs:
|
|
44
|
+
- release-build
|
|
45
|
+
permissions:
|
|
46
|
+
# IMPORTANT: this permission is mandatory for trusted publishing
|
|
47
|
+
id-token: write
|
|
48
|
+
|
|
49
|
+
# Dedicated environments with protections for publishing are strongly recommended.
|
|
50
|
+
# For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
|
|
51
|
+
environment:
|
|
52
|
+
name: pypi
|
|
53
|
+
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
|
|
54
|
+
url: https://pypi.org/p/skeliner
|
|
55
|
+
#
|
|
56
|
+
# ALTERNATIVE: if your GitHub Release name is the PyPI project version string
|
|
57
|
+
# ALTERNATIVE: exactly, uncomment the following line instead:
|
|
58
|
+
# url: https://pypi.org/project/YOURPROJECT/${{ github.event.release.name }}
|
|
59
|
+
|
|
60
|
+
steps:
|
|
61
|
+
- name: Retrieve release distributions
|
|
62
|
+
uses: actions/download-artifact@v4
|
|
63
|
+
with:
|
|
64
|
+
name: release-dists
|
|
65
|
+
path: dist/
|
|
66
|
+
|
|
67
|
+
- name: Publish release distributions to PyPI
|
|
68
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
69
|
+
with:
|
|
70
|
+
packages-dir: dist/
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
.pytest_cache
|
|
6
|
+
|
|
7
|
+
# Distribution / packaging
|
|
8
|
+
build/
|
|
9
|
+
dist/
|
|
10
|
+
*.egg-info/
|
|
11
|
+
*.egg
|
|
12
|
+
|
|
13
|
+
# Environments
|
|
14
|
+
.env
|
|
15
|
+
.venv
|
|
16
|
+
env/
|
|
17
|
+
venv/
|
|
18
|
+
|
|
19
|
+
# Jupyter Notebook
|
|
20
|
+
.ipynb_checkpoints
|
|
21
|
+
|
|
22
|
+
# macOS
|
|
23
|
+
.DS_Store
|
|
24
|
+
|
|
25
|
+
# Editor directories and files
|
|
26
|
+
.idea/
|
|
27
|
+
.vscode/
|
|
28
|
+
*.swp
|
|
29
|
+
*.swo
|
|
30
|
+
|
|
31
|
+
data/*
|
|
32
|
+
# !data/20156.obj
|
|
33
|
+
|
|
34
|
+
dev/
|
|
35
|
+
|
|
36
|
+
# Temporary files
|
|
37
|
+
*copy*
|
|
38
|
+
*draft*
|
|
39
|
+
|
|
40
|
+
.python-version
|
skeliner-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: skeliner
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A lightweight neuromorphological mesh skeletonizer.
|
|
5
|
+
Requires-Python: >=3.10.0
|
|
6
|
+
Requires-Dist: igraph>=0.11.8
|
|
7
|
+
Requires-Dist: matplotlib>=3.10.3
|
|
8
|
+
Requires-Dist: numpy>=2.0.2
|
|
9
|
+
Requires-Dist: openctm>=0.0.6; python_version >= '3.12'
|
|
10
|
+
Requires-Dist: python-openctm>=1.0.12; python_version < '3.12'
|
|
11
|
+
Requires-Dist: scipy>=1.13.1
|
|
12
|
+
Requires-Dist: trimesh>=4.6.9
|
|
13
|
+
Provides-Extra: dev
|
|
14
|
+
Requires-Dist: ipykernel>=6.29.5; extra == 'dev'
|
|
15
|
+
Requires-Dist: maturin; extra == 'dev'
|
|
16
|
+
Requires-Dist: pytest; extra == 'dev'
|
|
17
|
+
Requires-Dist: ruff; extra == 'dev'
|
|
18
|
+
Requires-Dist: twine; extra == 'dev'
|
|
19
|
+
Requires-Dist: watermark>=2.5.0; extra == 'dev'
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
|
|
22
|
+
# skeliner
|
|
23
|
+
|
|
24
|
+
A lightweight skeletonizer that converts neuron meshes into biophysical‑modelling‑ready SWC morphologies. It heuristically detects the soma, extracts an acyclic centre‑line skeleton, estimates per‑node radii, and bridges small gaps.
|
|
25
|
+
|
|
26
|
+
## Installation
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
git clone https://github.com/berenslab/skeliner.git
|
|
30
|
+
pip install -e "skeliner[dev]"
|
|
31
|
+
```
|
skeliner-0.1.0/README.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# skeliner
|
|
2
|
+
|
|
3
|
+
A lightweight skeletonizer that converts neuron meshes into biophysical‑modelling‑ready SWC morphologies. It heuristically detects the soma, extracts an acyclic centre‑line skeleton, estimates per‑node radii, and bridges small gaps.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
git clone https://github.com/berenslab/skeliner.git
|
|
9
|
+
pip install -e "skeliner[dev]"
|
|
10
|
+
```
|