density_calculator: Calculate mFo-DFc density with Clipper through Gemmi!
Project description
Density Calculator
Density Calculator is a library for calculating a $mFo-DFc$ maps from gemmi in-memory objects.
Installation
pip install density-calculator
Usage
Function Signature:
density_calculator.calculate(structure: gemmi.Structure, mtz: gemmi.Mtz, column_names: List[str]) -> gemmi.Mtz
Example Use:
import density_calculator
import gemmi
mtz: gemmi.Mtz = gemmi.read_mtz_file("reflections.mtz")
st: gemmi.Structure = gemmi.read_structure("model.pdb")
# Calculate the difference map using density_calculator
recalculated_mtz: gemmi.Mtz = density_calculator.calculate(st, mtz, ["FP", "SIGFP"])
# Transform the difference_mtz into a map for calculation use
best_map: gemmi.FloatGrid = recalculated_mtz.transform_f_phi_to_map("FWT", "PHWT")
# Transform the difference_mtz into a map for calculation use
difference_map: gemmi.FloatGrid = recalculated_mtz.transform_f_phi_to_map("DELFWT", "PHDELWT")
Development
pip install --no-build-isolation --config-settings=editable.rebuild=true -Cbuild-dir=build -ve .
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file density_calculator-0.2.1-cp312-abi3-musllinux_1_1_x86_64.whl.
File metadata
- Download URL: density_calculator-0.2.1-cp312-abi3-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 6.6 MB
- Tags: CPython 3.12+, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f635799d00169e4366bb87e991b874a4c4993dcbcf4799828603e469c21f6671
|
|
| MD5 |
9bb4f8ee588a57c825ebccfc3fa9536e
|
|
| BLAKE2b-256 |
d0751a9ceaeada8c46ace300cb75f57c4807ddad921968389440b860457d85aa
|
File details
Details for the file density_calculator-0.2.1-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: density_calculator-0.2.1-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 6.2 MB
- Tags: CPython 3.12+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa427ff228b7ce5958baae7e3e4feed02129e106dba4912f73fc0cfd39407044
|
|
| MD5 |
834f3daa2612c11bd0d252a5de243a09
|
|
| BLAKE2b-256 |
54e5fea0e1e9a24ca03b85fc12ae17072e5e223d2deb71d49be3255b1eb074ee
|
File details
Details for the file density_calculator-0.2.1-cp312-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: density_calculator-0.2.1-cp312-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 5.6 MB
- Tags: CPython 3.12+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14205543911e88464575075e0413ed54c3eb7378dc01041292c96d1275b8f088
|
|
| MD5 |
24e889fd1f84d679148aa1f5bf8fcc3d
|
|
| BLAKE2b-256 |
8902487ee771c4052b7745a4e0a0e86d5c41b792c533a1315b143b7483e5de23
|
File details
Details for the file density_calculator-0.2.1-cp312-abi3-macosx_10_14_x86_64.whl.
File metadata
- Download URL: density_calculator-0.2.1-cp312-abi3-macosx_10_14_x86_64.whl
- Upload date:
- Size: 5.9 MB
- Tags: CPython 3.12+, macOS 10.14+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04d320c2d9571f2e10714136e01a5c3fc9bf3212614f79d6543ba8fd70e2af0f
|
|
| MD5 |
483b0800e0ba7e87dcbc01886a1aca91
|
|
| BLAKE2b-256 |
66e0587e2c8a316d074b62b9b8f20fcbff9fc227980a73d90b61867fc5ace8b7
|
File details
Details for the file density_calculator-0.2.1-cp311-cp311-musllinux_1_1_x86_64.whl.
File metadata
- Download URL: density_calculator-0.2.1-cp311-cp311-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 6.6 MB
- Tags: CPython 3.11, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e77ca00a800501a8e6c8446e95981f97282eafa8b851a4be33a2dacca03c2c0a
|
|
| MD5 |
2faa984c958182ee42be0aec07be6e8f
|
|
| BLAKE2b-256 |
76ad7d3b819b7aae266b7229318626362e8fc0bed9380cf50cfb2c0e633ca513
|
File details
Details for the file density_calculator-0.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: density_calculator-0.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 6.2 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1b32f623323c2befe54493f605f2a463aab32c3682e5aed6d0ae8e5b154768e
|
|
| MD5 |
a2fd89b082a79984ffb79fc8dadd0048
|
|
| BLAKE2b-256 |
424d1e5d00306c82fb870e53bc1b577b0fc015277f91019d7d747fe963b9f9d3
|
File details
Details for the file density_calculator-0.2.1-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: density_calculator-0.2.1-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 5.6 MB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3961ab06a4e665a8e359a2372f34a4863c88c03ad49e6f4bccae95836fd86bcb
|
|
| MD5 |
3643045b3b71d31cd4566ff85f6c9d9b
|
|
| BLAKE2b-256 |
03059ce47f5080d56205feecd38dc3270a3730d804df9d8279d333d71d784c22
|
File details
Details for the file density_calculator-0.2.1-cp311-cp311-macosx_10_14_x86_64.whl.
File metadata
- Download URL: density_calculator-0.2.1-cp311-cp311-macosx_10_14_x86_64.whl
- Upload date:
- Size: 5.9 MB
- Tags: CPython 3.11, macOS 10.14+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2b84ec94eded36fb27e7db455ecfe97bcd8f1d91c381a755f443564c36ead5a
|
|
| MD5 |
7e394bd0e6d67f1ec5b3a83182c4f404
|
|
| BLAKE2b-256 |
ac2147f65b2f0fc63db49fae7dcb2bcbc612673c6b71bf31191ebf0946a1395a
|
File details
Details for the file density_calculator-0.2.1-cp310-cp310-musllinux_1_1_x86_64.whl.
File metadata
- Download URL: density_calculator-0.2.1-cp310-cp310-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 6.6 MB
- Tags: CPython 3.10, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c6103e5190e6785e56f22eb9e0fbff828152a8738694484a6c6368935faf355
|
|
| MD5 |
0b5af57291521717131fc72c250633de
|
|
| BLAKE2b-256 |
3d05766a5b1e2b23b3240e51502e7d2e9562f4ed4cae8513ac3386a8d9544fdb
|
File details
Details for the file density_calculator-0.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: density_calculator-0.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 6.2 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58860b123f9aa31ca941fb0937dc06a463ab0bb1efc495157a92b4c00658be79
|
|
| MD5 |
9a69b0a89d6f5094835e2feb43775c03
|
|
| BLAKE2b-256 |
6ff15407659829f4da07dda1de7b3dde93c22f9bb264ca691921085d17c367d8
|
File details
Details for the file density_calculator-0.2.1-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: density_calculator-0.2.1-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 5.6 MB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a378b4f33cc31ad857ba7e80ed859dd49f22dcc1e40db3721eb3e6a1adfcedf0
|
|
| MD5 |
de06b3878d0a196093b8656afca22630
|
|
| BLAKE2b-256 |
7a3b147c9034b3477859c662ac37f1f9fa8e41bbfd78a9615f43256b418031f5
|
File details
Details for the file density_calculator-0.2.1-cp310-cp310-macosx_10_14_x86_64.whl.
File metadata
- Download URL: density_calculator-0.2.1-cp310-cp310-macosx_10_14_x86_64.whl
- Upload date:
- Size: 5.9 MB
- Tags: CPython 3.10, macOS 10.14+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c0482396005ae60cfc1ccf5512f57ebc2c6ec85115d89ad09b779f6dca04118
|
|
| MD5 |
74eeed5ddbaa5c3624141c2afdbe5375
|
|
| BLAKE2b-256 |
d447428cc4f530d655fcc5d4847a12a9c2102f3f2b9fc254bb98f19772c105b7
|
File details
Details for the file density_calculator-0.2.1-cp39-cp39-musllinux_1_1_x86_64.whl.
File metadata
- Download URL: density_calculator-0.2.1-cp39-cp39-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 6.6 MB
- Tags: CPython 3.9, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d27548a3117cf828679956ccdd6ad7f3a953654bb3d784a0a01e78ca64997a70
|
|
| MD5 |
241e37a7162723984a5d4cf25248751f
|
|
| BLAKE2b-256 |
10c48babcb9288f4b8366e221454ca5c089042d4185d930497f950c7fbdd63dc
|
File details
Details for the file density_calculator-0.2.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: density_calculator-0.2.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 6.2 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83294ac798f42fe538349b881ca83f46341f5ab3a7bb4696d74115a2abda0478
|
|
| MD5 |
9523501d48e00a30a958f3dd93646cd1
|
|
| BLAKE2b-256 |
7a00b0616ca522def9d86a25733974f4b75787a42e4d0465de02ca7377b628bd
|
File details
Details for the file density_calculator-0.2.1-cp39-cp39-macosx_11_0_arm64.whl.
File metadata
- Download URL: density_calculator-0.2.1-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 5.6 MB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8da5ddbb619ba0f66e882335d56dff1807f9bb52f4c55c01085067b60ff1931
|
|
| MD5 |
c1dceb21beb470413194bd5a01baae54
|
|
| BLAKE2b-256 |
57ed2499a2c507e1452af4005c79652f27fd172507db0adb8b5c1be56da3ccf1
|
File details
Details for the file density_calculator-0.2.1-cp39-cp39-macosx_10_14_x86_64.whl.
File metadata
- Download URL: density_calculator-0.2.1-cp39-cp39-macosx_10_14_x86_64.whl
- Upload date:
- Size: 5.9 MB
- Tags: CPython 3.9, macOS 10.14+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c18b150f126fbd6b3c89aa936d6dacc67aafab67729e4862ffeeeb8671d9b69
|
|
| MD5 |
82dbbc95322b491a403f48fdcd4eb731
|
|
| BLAKE2b-256 |
6dcb60322549840c8f635b526d4704a11c9c081ac0ec38c0c5cff4f97d2771db
|