Skip to content
/ py-mfdca Public

Simple Python Implementation of mean-field Direct Coupling Analysis

Notifications You must be signed in to change notification settings

utdal/py-mfdca

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Direct Coupling Analysis for Python

mfDCA implementation, adapted from MATLAB version (http://dca.rice.edu/portal/dca/)

Direct Coupling Analysis was developed using MATLAB. This is a python port.

Unit testing Readme and script details output differences from original MATLAB script.

Runtime comparison:

Sequence Length # of sequences MATLAB runtime (s) Python runtime (s)
82 36,540 42.3 148.8
298 11,507 30.7 48.8
217 422 5.4 8.1
79 31,575 26.1 92.7
302 461 13.6 14.7

Installation: When in directory with setup.py,

pip install .

Example Usage:

from dca.dca_class import dca
protein_family = dca('sequence_file')
protein_family.mean_field()
protein_family.DI # contains DI scores for each pair
protein_family.couplings # NxNxqxq matrix of couplings (eij)
protein_family.localfields # Nxq matrix of localfields (h)
protein_family.compute_Hamiltonian('sequence_file') # returns (Hamiltonians,sequence_headers) for input sequences

About

Simple Python Implementation of mean-field Direct Coupling Analysis

Resources

Stars

Watchers

Forks

Packages

No packages published