Skip to content
forked from teamtomo/mmdf

macromolecular structures as pandas DataFrames

License

Notifications You must be signed in to change notification settings

alisterburt/mmdf

This branch is 1 commit ahead of, 8 commits behind teamtomo/mmdf:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

29b9f5e · Jan 20, 2024

History

11 Commits
Jan 20, 2024
Jan 20, 2024
Jan 20, 2024
Jan 20, 2024
Jan 20, 2024
Jan 20, 2024
Jan 20, 2024
Jan 20, 2024
Jan 20, 2024
Jan 20, 2024

Repository files navigation

MacroMolecular DataFrames (mmdf)

License PyPI Python Version CI codecov

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]

Changelog

v0.0.2 (20/01/24)

  • added atomic properties to dataframe output
  • added support for Path arguments in mmdf.read()
  • moved to pyproject.toml based packaging

v0.0.1

  • first release

About

macromolecular structures as pandas DataFrames

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%