This release is a pre-release and may not be stable for production use.
Paintera Interactive Agglomeration Server
pias provides a server for interactive updates of a nifty-based agglomeration model for fragments in EM segmentation (but could probably be used in other scenarios, as well). Clients provide positive (two fragments are in the same segment) and negative (two fragments should not be in the same segment) examples for edges (fragment-pairs). Random forest classifiers are trained on these examples to infer weights for all edges of neighboring fragments in a multi-cut problem (constraints for the enforcement of positive/negative examples provided by the client is modeled via appropriate weights).
Installation
The minimum python version is 3.6.
Besides the packages specified in setup.py, you will need to install the following packages that are not installable via pip:
niftyavailable on conda through thecpapechannelz5pyavailable on conda through theconda-forgechannel
You can install these dependencies through conda via the aforementioned channels. Otherwise, follow the build instructions on the linked github repositories.
If you do not install pyzmq through conda make sure that libzmq is installed on your system.
pip install git+https://github.com/saalfeldlab/pias
Server Details
pyzmq is used for communication between server and client. Data should be sent as big endian. The server can be started with the pias command that is installed with the python package. See pias --help for usage details. Once started, the server will start multiple sockets, addressed by extensions of the address_base parameter:
${address_base}-ping- ping the server at this address to see if it is alive (REQ/REP)${address_base}-current-solution- request current solution (REQ/REP)${address_base}-set-edge-labels- set labels for edges: (multiples of)(e1, e2, label)(REQ/REP) where label is one of{0, 1}${address_base}-update-solution- request update of current solution (REQ/REP)${address_base}-new-solution- be notified about updates of the current solution (PUB/SUB)
NOTE: This scheme probably works (reliably) with ipc:// zmq-addresses.
Socket Details
TBD: What kind of input/output does each socket expect/provide?
Metadata
Release files for pias 0.1.0.dev0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pias-0.1.0.dev0.tar.gz | 13.1 kB | Without provenance | Details |
Release files / pias-0.1.0.dev0.tar.gz
| Download URL | pias-0.1.0.dev0.tar.gz |
|---|---|
| Size | 13.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e65d8245c6d9f90094483aae8aa2966835ed57fffaefd4686db2d9898371a0f
|
|
BLAKE2b-256 checksum How to use checksums |
96f418b189c116adada15e8ab46b24227ad6b3f9938f2b20e76a59a0827cb7fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.2
|
Security for pias 0.1.0.dev0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.