Skip to main content

macromolecular structures as pandas DataFrames

Project description

macromolecular dataframes (mmdf)

Macromolecular DataFrames (mmdf) is a small package for reading macromolecular structures into pandas dataframes. The heavy lifting of reading structure files is done by gemmi.

Usage

import mmdf

df = mmdf.read('4v6x-ribo.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


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.1.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

mmdf-0.0.1-py2.py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page