yzx9 / swcgeom Goto Github PK
View Code? Open in Web Editor NEWNeuron geometry library for swc format.
License: Apache License 2.0
Neuron geometry library for swc format.
License: Apache License 2.0
We have now provided a function named has_cyclic
to detect if a SWC tree contains a cycle. Going further, we can offer a method to detect the cyclic points. Assuming this is a directed graph, and we start from a point (the root of the tree), then we can definitely find the points where paths overlap.
DO NOT throw out the annatation in SWC files.
def traverse(next):
enter = do_something() # same as the enter callback
children = next(enter)
leave = do_something_else(children) # same as leave the callback
return leave
Tree.from_swc(...).traverse(traverse)
The advantage of this onion-ring API design is that users can hold a closure to easily retain some information. However, I am not quite sure if such a call would lead to a too deep call stack (in some extreme cases, a neuron may have hundreds of thousands of points).
draw.direction_indicator
plot wrong directions, possibly swapping the two axes to get the correct answer
How to asemble a BranchTree
to Tree
?
If available, we can resamble tree by: Tree -> BranchTree -> resamble branches -> assemble BranchTree
to Tree
Maybe rename to neurolit
?
curl
is not a required component, especially on windows
SWC is a representation of neurons composed of the radius of points and their connectivity, therefore there are various specific ways of representation. A typical method is to consider the nodes as spheres, and the connections between them as truncated cones with different radii at the top and bottom surfaces. We can at least support the volume calculation in this manner.
See also: PEP-585 and Deprecated aliases
try:
pip install v3d-py-helper
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.