voxcov-py
Python bindings for voxcov.
Quick start
Clone voxcov first.
Run maturin develop --release to build and install the plugin. Use the --release flag to get an optimized build.
Coverage example
Import the library
import voxcov as vc
Create a map.
apix = [1.0, 1.0, 1.0]
origin = [0.0, 0.0, 0.0]
# The maximum axis length
size = 256
vox_map = vc.Map(apix, origin, size)
Add and delete spheres.
# Add a sphere of radius 3.5 at (10,10,10)
vox_map.add_sphere([10.0, 10.0, 10.0], 3.5, lambda vox: print("Adding A Covered: ", vox))
# Add another sphere which overlaps mostly of radius 3.5 at (11,10,10)
vox_map.add_sphere([11.0, 10.0, 10.0], 3.5, lambda vox: print("Adding B Covered: ", vox))
# Delete sphere which overlaps mostly of radius 3.5 at (11,10,10)
vox_map.del_sphere([11.0, 10.0, 10.0], 3.5, lambda vox: print("Deleting B uncovered: ", vox))
Blur example
Import the library
import voxcov as vc
Create a blurrer. Note, the API is a bit clunky. Named parameters would be nice.
blurred_map = vc.BlurMap(
[1.084,1.084,1.084], # The cell dimensions
[0,0,0], # The origin
[256,256,256], # The size, 256^3
5.1, # Sigma for gaussian
# e.g. (sigma_coef * resolution)
4.0 # The number of sigma to cutoff at
)
Stick atoms in.
# We pass the center and scale of each gaussian.
blurred_map.add_gaussian([3,4,5], 10)
blurred_map.add_gaussian([4,5,3], 12)
Get a numpy array out.
blurred_map.to_numpy()
Metadata
Release files for voxcov 0.2.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 8.7 MB
Release files / voxcov-0.2.8-cp311-none-win_amd64.whl
| Download URL | voxcov-0.2.8-cp311-none-win_amd64.whl |
|---|---|
| Size | 221.0 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
3f603163d4c8a4dc44c79c54bf607e2f5811d09e269b7627d7605d4c07c66a95
|
|
BLAKE2b-256 checksum How to use checksums |
d823a48edc5d7b106013906b7286b03c88db3b83624fe0c2dd5f6d8408093c94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / voxcov-0.2.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | voxcov-0.2.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
506f25b0942feef9ee11880856582c128b6aef04e4c20d4f1b654addce7f03b1
|
|
BLAKE2b-256 checksum How to use checksums |
61423f1fa28d75e407913905560d8b842942c857f5dd0df32c4ebccaf9848c04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / voxcov-0.2.8-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
| Download URL | voxcov-0.2.8-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl |
|---|---|
| Size | 698.2 kB |
| Tags | CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
9bff0056547c633f12506429a15283e97fbc55992de58882811984baa0290d1b
|
|
BLAKE2b-256 checksum How to use checksums |
0eac8ee4d4b9220c64645e8975b19e45433bb00a1f956c17df9e581580f2909d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / voxcov-0.2.8-cp310-none-win_amd64.whl
| Download URL | voxcov-0.2.8-cp310-none-win_amd64.whl |
|---|---|
| Size | 221.0 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
29ce0fe4cb9c6bdccba6b7c2219adcc103d73f1d8b6847f748219540fdd9a613
|
|
BLAKE2b-256 checksum How to use checksums |
669da129b4be177459382ff30617fb662c51d93b3b4ab8d1a77d6edefc5941b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / voxcov-0.2.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | voxcov-0.2.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
0bfadc94b7f581591afaa1336200f57b20ade90987848dab51bc54abe1d5d766
|
|
BLAKE2b-256 checksum How to use checksums |
f31bdd7acb535399cbbffbdd6b877afa030bf11b95cc974aebcd1ed28af60f85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / voxcov-0.2.8-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
| Download URL | voxcov-0.2.8-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl |
|---|---|
| Size | 698.2 kB |
| Tags | CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
0334cc2f5c4ff470f78cd8b73008388938bb1edc15b2673d84cb1b5af406e937
|
|
BLAKE2b-256 checksum How to use checksums |
b2664acdb4931ac2e13063575ce749b4a05dcf50091ba01caab11fdd4760928e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / voxcov-0.2.8-cp39-none-win_amd64.whl
| Download URL | voxcov-0.2.8-cp39-none-win_amd64.whl |
|---|---|
| Size | 221.1 kB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
f0ed6806562bcca0cbc7ec1e4572bcd1c50c0d4cd7e4a1ec9c4d2ff8f6be9195
|
|
BLAKE2b-256 checksum How to use checksums |
ef3d8b0e71a20eb1d2cdcbbea6c74587a1ff91029486acf7a6b02d5618fc81f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / voxcov-0.2.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | voxcov-0.2.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
18377001020fa9c1ffc1ae7416bf104b1bbb21c1065a9189f06168bcfc4769cf
|
|
BLAKE2b-256 checksum How to use checksums |
511b2d1732c5a87d42ca003a225e8552b108b29a380a71148e5d8f409964f57d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / voxcov-0.2.8-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
| Download URL | voxcov-0.2.8-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl |
|---|---|
| Size | 698.3 kB |
| Tags | CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
964b4120bbc5dfb4dd14ccbb92613efbaef4cc53cdd93404cf761c7a2637f20b
|
|
BLAKE2b-256 checksum How to use checksums |
73557b25c1d3d1084c63035a119fd75f326c7b16a172802a83f0f84476e65e9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / voxcov-0.2.8-cp38-none-win_amd64.whl
| Download URL | voxcov-0.2.8-cp38-none-win_amd64.whl |
|---|---|
| Size | 221.4 kB |
| Tags | CPython 3.8 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
bbdf043c6ba48b5f0b14089aac75f2e878786969fef7c61fdc23482b7f09200d
|
|
BLAKE2b-256 checksum How to use checksums |
19d0e3484f76974ecc07fb990d68c7bb93178c672ba11fa5bb5c67e59ed47141
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / voxcov-0.2.8-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | voxcov-0.2.8-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
3934bcf318245dd98b30fe43eef65a2a9f4fec194f8326385dc3ba1ffad7a396
|
|
BLAKE2b-256 checksum How to use checksums |
bf256585995d2e508414b8241e684301c21ad4edfbd31453ac74821a212d04b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / voxcov-0.2.8-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
| Download URL | voxcov-0.2.8-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl |
|---|---|
| Size | 697.6 kB |
| Tags | CPython 3.8 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
16fbbcfd1fa2b52d27919242b9372eda0684899d4397f80d5b24c730877395dc
|
|
BLAKE2b-256 checksum How to use checksums |
a6634c6b119c775a2e62ef41942ce0be6423ab789e59f749acd88c142858cbcf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|