macromolecular structures (.pdb/.mmCIF) as pandas dataframes
Project description
MacroMolecular DataFrames (mmdf)
MacroMolecular DataFrames (mmdf
) is a small package for reading macromolecular structure files
(.pdb/.mmCIF) into pandas dataframes.
The heavy lifting of reading structure files is performed by gemmi.
Usage
import mmdf
df = mmdf.read('4v6x.cif')
df.head()
Out[3]:
model chain residue residue_id ... z charge occupancy b_isotropic
0 1 Az ASN 3 ... -54.829 0 1.0 10.0
1 1 Az ASN 3 ... -54.691 0 1.0 10.0
2 1 Az ASN 3 ... -53.642 0 1.0 10.0
3 1 Az ASN 3 ... -53.007 0 1.0 10.0
4 1 Az ASN 3 ... -54.239 0 1.0 10.0
[5 rows x 13 columns]
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
mmdf-0.0.2.tar.gz
(5.7 MB
view details)
Built Distribution
mmdf-0.0.2-py3-none-any.whl
(4.1 kB
view details)
File details
Details for the file mmdf-0.0.2.tar.gz
.
File metadata
- Download URL: mmdf-0.0.2.tar.gz
- Upload date:
- Size: 5.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c21b04082c5f930173e1d05b302d95c91cf27c65d331c1f67c594e6e6c1004a |
|
MD5 | 0cc97a275558062ff462d8f5d6da2b39 |
|
BLAKE2b-256 | 0d9dc5679d49ad86e0405a0df00cb2fd3e6a619059435509c4ca81bff0ba0fee |
File details
Details for the file mmdf-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: mmdf-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c446ad57414e767d3a4ef930e2b690d00e4c23c724329060a921483546ce967b |
|
MD5 | bdc13da1490e242cabaa2835d8246eab |
|
BLAKE2b-256 | 929f66200115e783a5ebab2f50e7ef817aa1203db6e529ca12fa0c9c41533d8b |