Giter Site home page Giter Site logo

mmagnus / emacs-pdb-mode Goto Github PK

View Code? Open in Web Editor NEW
13.0 6.0 6.0 359 KB

pdb-mode is an emacs-lisp minor mode for Emacs to perform a number of useful editing functions on Protein DataBank (PDB) formatted files. XEmacs and/or GNU Emacs are available for most computing platforms.

Home Page: http://crystal.scb.uwa.edu.au/charlie/software/pdb-mode/

License: GNU General Public License v2.0

Emacs Lisp 100.00%
pdb-files pdb rna-structure-prediction rna-structure rna-pdb

emacs-pdb-mode's Introduction

emacs-pdb

pdb-mode is an emacs-lisp minor mode for Emacs to perform a number of useful editing functions on Protein DataBank (PDB) formatted files. XEmacs and/or GNU Emacs are available for most computing platforms.

Read more on implemented functions https://crystal.scb.uwa.edu.au/charlie/software/pdb-mode/

(@mmagnus: I'm not an author of this code, I just updated it slightly, fixed it in 2020, all credits go to Charlie Bond & David Love, I asked Charles S. Bond if I can share it and he was OK with that ;-)

emacs-pdb-mode & rna-tools

rna-tools can be used side-by-side https://github.com/mmagnus/emacs-pdb-mode to edit files structural files in the PDB format.

http://rna-tools.readthedocs.io/en/latest/emacs.html

Install

My installation config:

  ;; pdb.el
  (load-file "~/.emacs.d/plugins/pdb-mode/pdb-mode.el")
  (setq pdb-rasmol-name "/usr/bin/pymol")
  (setq auto-mode-alist
       (cons (cons "pdb$" 'pdb-mode) 
             auto-mode-alist ) )
  (autoload 'pdb-mode "PDB")

How to customize the colors?

You can play around with:

(make-face 'pdb-key1-face)
(set-face-background 'pdb-key1-face "dim gray")
(make-face 'pdb-comment-face)
(set-face-foreground 'pdb-comment-face "dark gray")

.. a full list of Emacs color you can get by typing M-x list-colors-display.

Select a residue:

screenshot

.. change Chain ID:

screenshot

Send a part of the PDB file directly to PyMOL:

screenshot

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.