No project description provided
Project description
NeoTopology
NeoTopology is NeoBinder's First open soruce project for Protein Topology Toolkit All-In-One SDK.
NeoTopology is heavily designed for Protein Design, OpenMM Preparation & Study
This Package contains:
- IO from files including PDB/PDBx/rdkit
- Mathatics related with Rotation and Alignment
- Protein/Sequence/Ligand Calculations.
Installation
NeoTopology can be installed with:
- source code installation
mkdir -p /path/to/project
cd /path/to/project
git clone git@github.com:NeoBinder/NeoTopology.git
cd /path/to/project/NeoTopology
# installation mode
pip install ./
# or devmode
pip install -e ./
- pypi to be published
Document
NeoTopology Topology Object IO
from ttk.io import topology_parser
# Load From PDB
top = topology_parser.topology_from_pdb(pdbpath)
# Load From PDB content
with open(pdbpath,"r") as f:
content = f.read()
top = topology_parser.topology_from_pdb_content(content)
# Load From Openmm
top=topology_parser.topology_from_openmmm(openmmtop)
print(top.chains)
print(top.n_chains)
print(top.residues)
print(top.n_residues)
print(top.atoms)
print(top.bonds)
# Load Molecule From rdkit
top = topology_parser.topology_from_rdkitmol(mol,res_name)
print(top.residues)
print(top.bonds)
# Export to PDB
from ttk.io import PDBFile
from ttk.io import topology_export
# topology to pdb content
content = PDBFile().to_content(top)
if fname:
with open(fname, "w") as f:
f.write(content)
# topology to file directly
topology_export.topology_to_pdb(top,fname)
Topology modification
# topology add residue
top.add_residue(name,top.chains[0])
# chain add residue
top.chains[0].add_residue(res)
Topology calculations
from ttk.calculators import get_center_of_mass
res = top.get_residues_by_name(res_name)
com = get_center_of_mass(res.atoms)
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
neotopology-1.0.0.tar.gz
(35.2 kB
view details)
Built Distribution
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 neotopology-1.0.0.tar.gz.
File metadata
- Download URL: neotopology-1.0.0.tar.gz
- Upload date:
- Size: 35.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a7447a79895d449de4dafcf14b183c450f137a36f5d8c199cd72f60c5673e03
|
|
| MD5 |
55132c4f6714c6aec0de7e687523bfee
|
|
| BLAKE2b-256 |
ccff07dd8db40e630b389427c4e63e0e086596d27d02c27cb115c444c04d74de
|
File details
Details for the file neotopology-1.0.0-py3-none-any.whl.
File metadata
- Download URL: neotopology-1.0.0-py3-none-any.whl
- Upload date:
- Size: 41.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
175d7efd2536c51729f54d1fdcfbea6490ad373b9671844dd38c0b8a0328395f
|
|
| MD5 |
14d42574f85d45285af7f63ff731aa38
|
|
| BLAKE2b-256 |
69698e1748427918f6f69eeb01aef23c6200a36cda55118f7c0b0ac5b98b9f04
|