NeRFpy
NeRFpy: A Python implementation and extension of Natural Extension Reference Frame.
Install
Using pip to install:
# for release (stable) version
pip install nerfpy
# for the latest version
pip install git+https://github.com/smu-tao-group/nerfpy.git
Usage
For high level usage, use NERF class to interact with PDB (read, reconstruct and write). There are also utility functions for low level usage.
# interact with PDB file
from nerfpy import NERF
nerf = NERF()
nerf.read_pdb(PDB_PATH)
nerf.reconstruct()
nerf.save_pdb(NEW_PDB_PATH)
# use your own coordinates (n * 3)
from nerf.utils import (
calc_r_from_coords,
calc_alpha_from_coords,
calc_psi_from_coords,
reconstruct_from_internal_coords
)
r = calc_r_from_coords(COORDS)
alpha = calc_alpha_from_coords(COORDS)
psi = calc_psi_from_coords(COORDS)
reconstructed_coords = reconstruct_from_internal_coords(r, alpha, psi)
License
Apache-2.0 license
Release files for nerfpy 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nerfpy-0.0.1.tar.gz | 33.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nerfpy-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 71.0 kB
Release files / nerfpy-0.0.1.tar.gz
| Download URL | nerfpy-0.0.1.tar.gz |
|---|---|
| Size | 33.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f2d72ea78674368f98b5fdb253c59844dc0272a195b7ddcf85e6ca4566f20b0
|
|
BLAKE2b-256 checksum How to use checksums |
1f6acadb1ac1abcedb89a5024a042ac9732511832a9486a550c8a6a0528872c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.13
|
Release files / nerfpy-0.0.1-py3-none-any.whl
| Download URL | nerfpy-0.0.1-py3-none-any.whl |
|---|---|
| Size | 37.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4a74697ff3fbdcf3cd4ac058eaa2ca0ba0fce2bee656917910aee97127b83650
|
|
BLAKE2b-256 checksum How to use checksums |
90dade23f5697e897b03ca97d94b7c5901ae6e81d5cbd33842cf4d5a4a5accfb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.13
|