Code Monkey home page Code Monkey logo

ramachandran_plots's Introduction

Ramachandran Plots with python

Simple module to plot Ramachandran plots with python. It can extract torsion angles from pdb/cif files, plot Ram plots, or fetch and save pdb files from Protein Data Bank by ID. The rest of the functionality is described in torsion.py docstrings. It's simple!

  • torsion/torsion.py - main module with all needed functions
  • pdb_plot.ipynb - example plots & description of Ramplot.

Quick example

from torsion import fetch_pdb, load_pdb
from torsion import phi_psi_angles, ram_plot

# fetch file from PDB and return as Structure object from biopython
pdb_struct = fetch_pdb("6PCY") 
# or simply load from file
pdb_struct = load_pdb("pdb_data/6pcy.cif")

# extract torsion angles
phi_angles, psi_angles = phi_psi_angles(pdb_struct)

# plot!
ram_plot(phi_angles, psi_angles, pdb_id="6PCY", density=True, secondary=True)

ramplot

Limitations

  • in the current state it is possible to add contour on a plot with gaussian kde contour=True, but it's not the same as "core/not-core" or “core/allowed/generously allowed” regions
  • no chain labels.

ramachandran_plots's People

Contributors

howuhh avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.