https://github.com/a-r-j/biopandas

Working with molecular structures in pandas DataFrames

https://github.com/a-r-j/biopandas

Science Score: 23.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 10 DOI reference(s) in README
  • Academic publication links
    Links to: joss.theoj.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.5%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Working with molecular structures in pandas DataFrames

Basic Info
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Fork of BioPandas/biopandas
Created over 4 years ago · Last pushed about 3 years ago
Metadata Files
Readme Contributing License Code of conduct

README.md

LogoLogo

Working with molecular structures in pandas DataFrames

Continuous Integration Build status Code Coverage PyPI Version License Python 3 JOSS Discuss


Links


If you are a computational biologist, chances are that you cursed one too many times about protein structure files. Yes, I am talking about ye Goode Olde Protein Data Bank format, aka "PDB files." Nothing against PDB, it's a neatly structured format (if deployed correctly); yet, it is a bit cumbersome to work with PDB files in "modern" programming languages -- I am pretty sure we all agree on this.

As machine learning and "data science" person, I fell in love with pandas DataFrames for handling just about everything that can be loaded into memory.
So, why don't we take pandas to the structural biology world? Working with molecular structures of biological macromolecules (from PDB and MOL2 files) in pandas DataFrames is what BioPandas is all about!


Examples

3eiy3eiy

```python

Initialize a new PandasPdb object

and fetch the PDB file from rcsb.org

from biopandas.pdb import PandasPdb ppdb = PandasPdb().fetch_pdb('3eiy') ppdb.df['ATOM'].head() ```

3eiy head3eiy head





3eiy head3eiy head

```python

Load structures from your drive and compute the

Root Mean Square Deviation

from biopandas.pdb import PandasPdb pl1 = PandasPdb().readpdb('./dockingpose1.pdb') pl2 = PandasPdb().readpdb('./dockingpose2.pdb') r = PandasPdb.rmsd(pl1.df['HETATM'], pl2.df['HETATM'], s='hydrogen', invert=True) print('RMSD: %.4f Angstrom' % r)

RMSD: 2.6444 Angstrom ```





Quick Install

  • install the latest version (from GitHub): pip install git+git://github.com/rasbt/biopandas.git#egg=biopandas
  • install the latest PyPI version: pip install biopandas
  • install biopandas via conda-forge: conda install biopandas -c conda-forge

Requirements

For more information, please see https://BioPandas.github.io/biopandas/installation/.





Cite as

If you use BioPandas as part of your workflow in a scientific publication, please consider citing the BioPandas repository with the following DOI:

  • Sebastian Raschka. Biopandas: Working with molecular structures in pandas dataframes. The Journal of Open Source Software, 2(14), jun 2017. doi: 10.21105/joss.00279. URL http://dx.doi.org/10.21105/joss.00279.

@article{raschkas2017biopandas, doi = {10.21105/joss.00279}, url = {http://dx.doi.org/10.21105/joss.00279}, year = {2017}, month = {jun}, publisher = {The Open Journal}, volume = {2}, number = {14}, author = {Sebastian Raschka}, title = {BioPandas: Working with molecular structures in pandas DataFrames}, journal = {The Journal of Open Source Software} }

Owner

  • Name: Arian Jamasb
  • Login: a-r-j
  • Kind: user
  • Location: Basel
  • Company: University of Cambridge

Principal ML Scientist @PrescientDesign / Tensor Jockey / PhD @ University of Cambridge Prev: MILA, Google X, Relation Therapeutic

GitHub Events

Total
Last Year

Dependencies

requirements.txt pypi
  • numpy >=1.16.2
  • pandas >=0.24.2