Skip to main content

Python package to explore the 2D HP model of Chan and Dill.

Project description

HPSandbox

HPSandbox is a set of Python objects that allow you to quickly write simple python scripts to explore the two-dimensional HP lattice model of proteins of Chan and Dill.

Last Updated: March 2012

GETTING STARTED

Installation

Please define the HPSANDBOXHOME environment variable to be this directory

In bash: $ export HPSANDBOXHOME=/Users/vince/scripts/HPSandbox/trunk/HPSandbox

COPYRIGHT

This python package is Copyright (C) 2007 Vincent Voelz voelz@temple.edu. Feel free to modify this code as needed, as long as you can keep it publicly available!

PACKAGE CONTENTS

  • Chain.py An object to represent the 2D HP lattice chain and its attributes, with method functions.
  • Config.py A data structure to hold configuration parameters.
  • Monty.py A collection of functions to perform Monte Carlo move-set operations on the Chain() object.
  • Replica.py A container object, to hold the Chain() and Monty() objects
  • Trajectory.py A set of functions for creating, reading, writing, and organizing trajectory files

/examples A directory of example scripts /sequences Containing descriptions of the native states of foldable sequences: /clist - contact state lists for chain lengths 10 through 21 /conf - coordinates (conformations) for chain lengths 10 through 19
COUNTS - text file counts of all unique (nonsymmetric) conformations for a given chain length

This package has been tested with Python 2.3 and 2.4. Older/newer versions may work too, but haven't been tested.

SETUP

In order to get these example scripts to work correctly, you need to set up the following:

  • The HPSandbox directory (i.e python module) must be defined in your PYTHONPATH environment variable
  • In the /examples folder mcrex.conf file needs to be changed to reflect the absolute pathname of the sequences/clist/hp** directory.

EXAMPLE SCRIPTS

Please see the /examples directory and the README file therein for some test scripts and examples showing how to use the HPSandbox function.

DOCUMENTATION

Documentation can be obtained using the pydoc standard module of python. For example:

from HPSandbox import *
import pydoc
pydoc.help(Chain)

Frequently Asked Questions (FAQ)

What can HPSandbox do?

HPSandbox can either 1) enumerate, or 2) perform Monte Carlo "dynamics" for 2-dimensional, square-lattice "bead-on-a-string" type chains.

How long a chain can I simulate?

It depends on how long you are willing to wait. For instance, all conformations of 16-mers can be enumerated in a few minutes on a typical personal computer. Each increase in chain length adds a factor of about 2.7 to the calculation.

Can I use other potentials besides the HP model?

Sure! But you'll have to put it in yourself. The code is designed for HP sequences, so if you want to study a model using beads of only two flavors, it is easy to just modify theMonty.energy()class function. More complicated models would require a more thorough, but straightforward reworking of the code.

What are the reference(s) for the HP 2D Model?

Lau, K.F. and K.A. Dill. A Lattice Statistical Mechanics Model of the Conformational and Sequence Spaces of Proteins. Macromolecules 22: 3986-3997 (1989). Dill, K.A., S. Bromberg, K. Yue, K.M. Fiebig, D.P. Yee, P.D. Thomas, and H.S. Chan. Principles of Protein Folding - A Perspective From Simple Exact Models. Protein Science 4: 561-602, 1995. Lau and Dill (1989) is the first use of the HP model, while Dill et al. (1995) is a more comprehensive review.

What movesets are used for the Monte Carlo routines in HPSandbox?

The movesets are described in Dill et al. Protein Science 4: 561-602, 1995:

Vincent Voelz voelz@temple.edu

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hpsandbox-1.0.0b0.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

hpsandbox-1.0.0b0-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file hpsandbox-1.0.0b0.tar.gz.

File metadata

  • Download URL: hpsandbox-1.0.0b0.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.13

File hashes

Hashes for hpsandbox-1.0.0b0.tar.gz
Algorithm Hash digest
SHA256 aa42664bcfa54c0feda1a2568a05e0c400edf7497450aa2af8f22ad539245b85
MD5 95c9c3aed05126aef20affeac6197735
BLAKE2b-256 4bb581f1370d4a98019167f70959873f296c777fc2b4b6738c8db3df25935169

See more details on using hashes here.

File details

Details for the file hpsandbox-1.0.0b0-py3-none-any.whl.

File metadata

  • Download URL: hpsandbox-1.0.0b0-py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.13

File hashes

Hashes for hpsandbox-1.0.0b0-py3-none-any.whl
Algorithm Hash digest
SHA256 2bb3ea83dfed3eb74c2fb16849a23790bf3b1893b0a91c01fd886b63e8da02c4
MD5 9e4715e5ed7e93410f167606cb60e922
BLAKE2b-256 97b4296a96afcc1e7c9754d85aa6ad0162ec49b2d8c186c805cbb6ff254182fc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page