moltransform 💻⚗️
Molecular transformations for graphic displaying using Cartesian coordinates.
How to use it
Generalities:
This package aims to transform (x, y, z) coordinates of molecules by reading and writing directly from a .xyz file and specifying the transformation vector. For each transformation function in the transform module, a verbose flag can be set True to print the transformation matrix to be applied for all (x, y, z) coordinates.
Opening a file
To load a file, we will use the read_xyz function by passing to it the path to the corresponding file to be opened.
An example on how to load a .xyz file:
>>> from moltransform.io import read_xyz
>>> positions_matrix = read_xyz("path/to/file.xyz")
Centering coordinates
Center the molecules' coordinates by finding the center position of all (x, y, z) coordinates.
>>> from moltransform.transform import center
>>> centered_positions = center(positions_matrix)
Translating coordinates
Translate a molecule using a specific vector (a, b, c). This implies:
>>> from moltransform.transform import translate
>>> translated_positions = translate(positions_matrix, [a, b, c])
Scaling coordinates
Scale the molecule along the 3-axis by a vector (a, b, c). This implies:
>>> from moltransform.transform import scale
>>> scaled_positions = scale(positions_matrix, [a, b, c])
Saving into a file
To save transformed coordinates into a file, we will use the write_xyz function by passing to it the path to the corresponding file to be created.
An example on how to save into a .xyz file:
>>> from moltransform.io import write_xyz
>>> write_xyz("path/to/file.xyz", positions_matrix)
Metadata
Release files for moltransform 0.1.3
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 | Actions |
|---|---|---|---|---|
| moltransform-0.1.3.tar.gz | 3.5 kB | Without provenance | Details for moltransform-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| moltransform-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for moltransform-0.1.3-py3-none-any.whl |
Total release size: 7.1 kB
Release files / moltransform-0.1.3.tar.gz
| Download URL | moltransform-0.1.3.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e29675d052c00547ab72f6aeb18f0f7b651b08748610d77d8c7153b02553536
|
|
BLAKE2b-256 checksum How to use checksums |
3e85c68fd5f3da754cc016f7a7ddc20ccf091f36369f5282ac00bc6a68312649
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.16 CPython/3.6.8 Darwin/18.2.0
|
Release files / moltransform-0.1.3-py3-none-any.whl
| Download URL | moltransform-0.1.3-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a269858f0464c18188726a29681490f2cac97b901abcbd864ee9e3db7149ac55
|
|
BLAKE2b-256 checksum How to use checksums |
9f9fe5e5f93fab55bcc2dd1b93d119ec45e9633a4f8f609395382b8cfe15d8ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.16 CPython/3.6.8 Darwin/18.2.0
|
Security for moltransform 0.1.3
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.