NeRFpy: A Python implementation and extension of Natural Extension Reference Frame.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nerfpy-0.0.1.tar.gz
(33.4 kB
view details)
Built Distribution
nerfpy-0.0.1-py3-none-any.whl
(37.7 kB
view details)
File details
Details for the file nerfpy-0.0.1.tar.gz
.
File metadata
- Download URL: nerfpy-0.0.1.tar.gz
- Upload date:
- Size: 33.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f2d72ea78674368f98b5fdb253c59844dc0272a195b7ddcf85e6ca4566f20b0 |
|
MD5 | 989f877c386b47fa48898f78c63c556a |
|
BLAKE2b-256 | 1f6acadb1ac1abcedb89a5024a042ac9732511832a9486a550c8a6a0528872c6 |
File details
Details for the file nerfpy-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: nerfpy-0.0.1-py3-none-any.whl
- Upload date:
- Size: 37.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a74697ff3fbdcf3cd4ac058eaa2ca0ba0fce2bee656917910aee97127b83650 |
|
MD5 | a991b9a19e0b4ba34bd838a23b06761b |
|
BLAKE2b-256 | 90dade23f5697e897b03ca97d94b7c5901ae6e81d5cbd33842cf4d5a4a5accfb |