Giter VIP home page Giter VIP logo

pdb2movie's Introduction

pdb2movie

Code for generating movies of the most relevant movement modes of proteins from their PDB files, using rigidity clustering analysis

Requirements:
PyMOL or VMD
Python libraries: argparse
ffmpeg

Instructions:

Recompiling FIRST and diagstd is necessary!

  1. Go to FIRST-190916-SAW/src and run 'make'.
  2. You should be ready to go!

(Note that if your C++/Fortran compilers are not the ones we use, you might need to edit some Makefiles.)

Usage:

python pdb2movie.py FILE [options]
FILE is your desired PDB file

Options:

--keep MOLECULE LIST - Stops the cleaning routine from removing the listed molecules from the PDB file
--output PATH - Sets the output location for the simulations and videos
--waters - Keeps water molecules in the PDB file (equivalent to --keep HOH)
--confs CONFS - Total number of configurations to be calculated
--freq FREQ - Frequency of saving intermediate configurations
--step STEP - Size of random step
--dstep DSTEP - Size of directed step
--res WID HEI - Video resolution (width, height), range [16, 8192]
--modes MODE LIST - Movement modes to be investigated
--ecuts ECUTS LIST - Energy cutoff values
--video FILE - Python file with PyMOL commands to be run before generating video
--threed - Generates anaglyph stereo videos
--combi - Creates videos combining positive and negative directions for each mode/cutoff energy
--multiple - Keeps multiple chains from the original PDB file (default: uses only chain A)
--videocodec - Use 'mp4' or 'hevc' to enode the videos, resulting in .mp4 or .mov files (defaults to mp4)
--drawingengine - Use 'vmd' or 'pymol' to render pdb files to frames (defaults to pymol for now) --fps - Frames per second of the videos, range [1, 240]

See also the web-server-based implementation at https://pdb2movie.warwick.ac.uk.

pdb2movie's People

Contributors

erickmartins avatar james-panayis avatar rudoroemer avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pdb2movie's Issues

Getting the fresh devel and running

Getting a fresh devel and running

aquarius tmp>python pdb2movie/pdb2movie.py 2B5E_FH.pdb

pdb2movie: cleaning the PDB file

Traceback (most recent call last):
File "pdb2movie/pdb2movie.py", line 128, in
clean_file=cleanpdb.cleanPDB(args,exec_folder)
File "/home/physics/phsht/tmp/pdb2movie/cleanpdb.py", line 96, in cleanPDB
inputfile=open(args.pdbfile[0],'r')
IOError: [Errno 2] No such file or directory: '2B5E_FH.pdb'

whle the previous version works. Is this an end-of-line error somewhere?

Originally posted by @RudoRoemer in #6 (comment)

Setup continuous integration

It would be good to have continuous integration enabled to do unit testing of the code. I would use the 2B5E as the example protein.

make the pymol_temp directory unique

When creating new movies, we generate a directory, e.g. Runs/2.0/Mode07-pos/pymol_temp. But this means that movie generation with different "--video pymol.py" settings share that same pymol_temp directory and hence two such jobs will overwrite each other. It would hence be good if each directory pymol_temp would be unique.

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.