osteoid 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.
- osteoid-0.1.0/LICENSE +28 -0
- osteoid-0.1.0/PKG-INFO +26 -0
- osteoid-0.1.0/README.md +5 -0
- osteoid-0.1.0/osteoid/__init__.py +2 -0
- osteoid-0.1.0/osteoid/exceptions.py +22 -0
- osteoid-0.1.0/osteoid/lib.py +783 -0
- osteoid-0.1.0/osteoid/skeleton.py +1353 -0
- osteoid-0.1.0/osteoid/util.py +20 -0
- osteoid-0.1.0/osteoid/viewer.py +105 -0
- osteoid-0.1.0/pyproject.toml +18 -0
osteoid-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025, seung-lab
|
|
4
|
+
|
|
5
|
+
Redistribution and use in source and binary forms, with or without
|
|
6
|
+
modification, are permitted provided that the following conditions are met:
|
|
7
|
+
|
|
8
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
9
|
+
list of conditions and the following disclaimer.
|
|
10
|
+
|
|
11
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
12
|
+
this list of conditions and the following disclaimer in the documentation
|
|
13
|
+
and/or other materials provided with the distribution.
|
|
14
|
+
|
|
15
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
16
|
+
contributors may be used to endorse or promote products derived from
|
|
17
|
+
this software without specific prior written permission.
|
|
18
|
+
|
|
19
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
20
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
21
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
22
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
23
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
24
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
25
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
26
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
27
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
28
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
osteoid-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: osteoid
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Skeleton object used for representing neurons, adjacent cells, and organelles.
|
|
5
|
+
License: BSD-3 Clause
|
|
6
|
+
Author: William Silversmith
|
|
7
|
+
Author-email: william.silversmith@gmail.com
|
|
8
|
+
Requires-Python: >=3.9
|
|
9
|
+
Classifier: License :: Other/Proprietary License
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
+
Requires-Dist: fastremap (>=1.15.1,<2.0.0)
|
|
17
|
+
Requires-Dist: networkx (>=3.4.2,<4.0.0)
|
|
18
|
+
Requires-Dist: numpy (>=2.2.3,<3.0.0)
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
|
|
21
|
+
# osteoid
|
|
22
|
+
Skeleton object used for representing neurons, adjacent cells, and organelles.
|
|
23
|
+
|
|
24
|
+
Represents a skeleton compatible with Neuroglancer.
|
|
25
|
+
|
|
26
|
+
|
osteoid-0.1.0/README.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
class SkeletonUnassignedEdgeError(Exception):
|
|
2
|
+
"""This skeleton has an edge to a vertex that doesn't exist."""
|
|
3
|
+
pass
|
|
4
|
+
|
|
5
|
+
class SkeletonDecodeError(Exception):
|
|
6
|
+
"""Unable to decode a binary skeleton into a Python object."""
|
|
7
|
+
pass
|
|
8
|
+
|
|
9
|
+
class SkeletonEncodeError(Exception):
|
|
10
|
+
"""Unable to encode a PrecomputedSkeleton into a binary object."""
|
|
11
|
+
pass
|
|
12
|
+
|
|
13
|
+
class SkeletonTransformError(Exception):
|
|
14
|
+
"""Unable to apply a spatial transfrom to the current coordinate system."""
|
|
15
|
+
pass
|
|
16
|
+
|
|
17
|
+
class SkeletonAttributeMixingError(Exception):
|
|
18
|
+
"""
|
|
19
|
+
These skeletons have different vertex attributes
|
|
20
|
+
and cannot be recombined without manual intervention.
|
|
21
|
+
"""
|
|
22
|
+
pass
|