Coder Social home page Coder Social logo

namanpujari / res_energies Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 52.22 MB

Processes pdb files to generate individual residue energies of an entire protein structure. Can be used in theory to calculate the energy of an unfolded protein.

Python 21.33% Shell 77.00% Smarty 1.67%
residue pdb energy python-programming

res_energies's Introduction

res_energies

Python programs that process pdb files to generate individual residue energies of an entire protein structure. Can be used in theory to calculate the energy of an unfolded protein.

PLEASE NOTE

Added an elementary way of efficiently running the code. When first running, set the mcce_result_present status to False. A bunch of statements indicating that the residues have been sent to the cluster will appear. Check qstat multiple times and wait till all jobs are complete. Then change mcce_result_present to True and run the the thing again with the same command in terminal. Check the output folder. It should have everything.

Usage


Typing python main.py --help in the command line gives the following:

usage: main.py [-h] -pdb PDB_LOCATION -e MCCE_DIRECTORY -out OUTPUT_DIRECTORY
               [-s SUBMIT_JOB]

Run MCCE on multiple PDB files

optional arguments:
  -h, --help            show this help message and exit

Required arguments (please write absolute
                                                paths for all locations:
  -pdb PDB_LOCATION, --pdb_location PDB_LOCATION
                        Location where pdb (to be analysed is stored
  -e MCCE_DIRECTORY, --mcce_directory MCCE_DIRECTORY
                        Path to the directory where MCCE is installed.
  -out OUTPUT_DIRECTORY, --output_directory OUTPUT_DIRECTORY
                        Location where analysis will be stored

Optional arguments:
  -s SUBMIT_JOB, --submit_job SUBMIT_JOB
                        Flag whether to submit calculation for processing
                        through the server. Default is False, meaning the
                        machine will run it locally

Please note that SUBMIT_JOB is not implemented as of yet.

What it does


  1. Grabs the targeted pdb, and strips it of comments (basically any line not classified) as ATOM or HETATM.
  2. Using a splitting algorithm defined in individual_res_energies.py it produces all the residues as their own pdb files
  3. Using automated_mcce.py, it runs MCCE on each, individual residue.
  4. Analyses all the fort.36 (wherever present) for all residue and finds average at each pH. Sums the values for all residues and provides a neat .csv for the final result. Csv files are also produced for each individual residues average energie for reference.

Example


An example, and how the out_gfp46 folder was created in this repository.

  1. Set mcce_results_present (in main.py) to False, then...
python main.py -pdb /home/naman/res_energies/gfp46.pdb -e /home/mcce/mcce3.5/ -out /home/naman/res_energies/out_gfp46
  1. Wait till qstat returns nothing
  2. Set mcce_results_present (in main.py) to True, then the same command as in step 1...
python main.py -pdb /home/naman/res_energies/gfp46.pdb -e /home/mcce/mcce3.5/ -out /home/naman/res_energies/out_gfp46

res_energies's People

Contributors

namanpujari 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.