A suite of python programs to analyze repeat-protein unfolding data with a 1D Ising model.
| Homopolymer 1D Ising Fit | Heteropolymer 1D Ising Fit |
|---|---|
![]() |
![]() |
This repository contains four main folders. The two main folders (heteropolymer_fit and homopolymer_fit) contain scripts to run 1D Ising analysis.
One is for "capped homopolymeric" NRC-type repeats, and the other is for capped heteropolymeric NRXC-type repeats.
Both perform nonlinear least-squares fits generated plots, and perform and statistical analysis using boostrap resampling.
In addition there is a folder (data_conversion) with some additional scripts to convert and merge data files of different types.
Finally, there is a folder for calculation of partial correlation coefficients from bootstrapped thermodynamic parameters (partial_correlation).
All folders contain data files which contain protein folding data on which the scripts can be run. All programs were written in python 3.8.
A detailed description of this suite of programs and its applications will soon be submitted to the journal Protein Science for publication. A preprint can be obtained from Doug Barrick (barrick@jhu.edu).
To run the most recent code, follow the instructions below:
-
git clone the repository:
git clone https://github.com/barricklab-at-jhu/Ising_programs.git -
Create and activate a new environment (requires conda or miniconda):
conda env create -f environment.yml conda activate ising_py3
To run a version of the code linked to the publication, follow these instructions:
-
git clone the publication branch from the repository:
git clone -b publication_master https://github.com/barricklab-at-jhu/Ising_programs.git -
Create and activate a new environment (requires conda or miniconda):
conda env create -f environment.yml conda activate ising_py3
If one is more comfortable working in virtualenv, a requirements.txt also provided.
-
To run the code via the self-contained instructional notebooks (after setup above):
jupyter notebook- navigate to
homopolymer_fit/ising_fitter_homopolymer_fit.ipynbORheteropolymer_fit/ising_fitter_heteropolymer_fit.ipynb
-
To run each program independently (after setup above):
- Each program can be executed independently in the directory it resides:
- e.g.
python data_conversion.py
- e.g.
- Each program can be executed independently in the directory it resides:

