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.2.tar.gz
(35.1 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.2.tar.gz.
File metadata
- Download URL: neotopology-1.0.2.tar.gz
- Upload date:
- Size: 35.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4143a11c432f9c8be516e5504c3efacda1b7f781e598f8321cca108fa0ee5dc7
|
|
| MD5 |
a96aeab217e133033bf70c11d84680d6
|
|
| BLAKE2b-256 |
73dbb7ea7e19c58d5bbc5e8db8bd2888408e9c4715122580713d85c097001a6a
|
File details
Details for the file NeoTopology-1.0.2-py3-none-any.whl.
File metadata
- Download URL: NeoTopology-1.0.2-py3-none-any.whl
- Upload date:
- Size: 41.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe09e71ddba037edc68ca7c04fcb0f21d0a781f11d217a8e8e899be8fac69976
|
|
| MD5 |
842e4c39186dd4253621dbfd9ec1816f
|
|
| BLAKE2b-256 |
e3c2389379644189a576a5f0fb994dfaa3b8fd23fcfdbe66dfd32e6a9c8e63b3
|