Skip to main content

KIF - Key Interactions Finder

A python package to identify the key molecular interactions that regulate any conformational change.

# supports python versions between: 3.12-3.14
pip install --upgrade KIF
# or with uv
uv add KIF

Keep in mind that your trajectory(s) must be imaged before using KIF, to remove periodic effects.

KIF_ReadMe_Pic

In short, this package allows you to:

  • Identify important non-covalent interactions that are associated with any conformational change you are interested in (as long as you can describe the descriptor and sample the descriptor in your MD simulations). The non-covalent interactions are scored according to their association/importance to the conformational change and you can easily convert the per interaction/feature scores to per residue scores as well.
  • Generate PyMOL output scripts that enable you to visualise your results on 3D structures.
  • Generate per residue correlation and distance matrices that can be easily applied to the many graph theory methods available in order to study protein interaction networks and allostery within your system (no descriptor/target variable required for this).

Note that how you define the descriptor is up to you, and you can use either a continuous variable or a categorical variable (some tips on how to decide what to use will be given below).

More Detail Please! For a more complete description of KIF, please refer to our article. Included in the article is a description of some of the generic workflows possible alongside the application of KIF to several different biomolecular systems.

There are also tutorials available (discussed below).

The approximate workflow for this package is as follows:

  1. Run MD simulations on your system(s) of interest with whichever MD engine you want.
  2. (Both can be done simultaneously)
    1. Analyse the trajectory frames with KIF to determine all non-covalent interactions.* See tutorial 0 for how to do this.
    2. (Optional) Calculate the value of a target variable for each frame using whatever approach you see fit (tips provided below).
  3. Load your non-covalent interactions data and optionally generated target data into KIF and perform some combination of machine learning, statistical analysis or network analysis.
  4. Output the results for analysis. This includes visualisation scripts which are compatible with PyMOL so you can see the results on a 3D protein structure.

*The previous implementation of KIF used PyContact (note that this program is not made by us), to determine all the non-covalent interactions in your trajectory. You can still use this approach if desired, see the legacy tutorials section below.

Dependencies and Install

  • Python 3.12, 3.13 or 3.14 is required.
  • Python 3.15 is not supported as catboost and MDAnalysis (dependencies of KIF) do not yet support Python 3.15.

Option 1: Install from PyPI

pip install --upgrade KIF

If you prefer uv:

uv venv --python 3.14
uv add KIF

To install the extra packages needed to run the tutorials, use:

pip install "KIF[tutorials]"

Option 2: Install from source

git clone https://github.com/kamerlinlab/KIF.git
cd KIF
pip install .

** Option 3: Install for Local development of KIF (we use uv)**

git clone https://github.com/kamerlinlab/KIF.git
cd KIF
uv sync --dev

Note that in prior versions of KIF (less than 0.2.0) you would have needed to also install PyContact (see the repo for how to do this). This is no longer the case.

Choosing an Appropriate Target variable.

To perform either the machine learning or statistical analysis methods available in this package you will want to calculate a target variable to go alongside the features (non-covalent interactions identified by KIF). This target variable should as cleanly as possible describe your process of interest.

Below are some examples of what could work for you. Of course, this is use case specific so feel free to select what makes sense for your problem.

Enzyme catalysis - A per frame reacting atom distance for regression or define a max reacting atom distance cut-off to classify each frame as either "active" or "inactive".

Conformational Changes - Calculate the RMSD for each frame in your simulation to each conformational state. In this case of 2 different states, classify each frame as either "State 1", "State 2" or "neither" based on your RMSD metrics.

For example:

  • if RMSD to "State 1" <= 1.5 Å and an RMSD to "State 2" >= 1.5 Å --> assign frame as "State 1".
  • if RMSD to "State 1" => 1.5 Å and an RMSD to "State 2" <= 1.5 Å --> assign frame as "State 2".
  • else --> assign frame as "neither". You can also consider dropping the frames with state "neither" from your analysis to make the calculation cleaner (i.e., turn it into binary classification). This is the approach we took for the enzyme PTP1B, which you can find described in our manuscript.

Tutorials Available

All tutorials include the setup and post-processing steps used for each system. All tutorials used datasets we analyzed in our manuscript

  1. identify_contacts.py - Example script showing how you can use KIF to identify all the non-covalent interactions present in your MD simulations. This needs to be determined before using the rest of KIF.

  2. Tutorial_PTP1B_Classification_ML_Stats.ipynb Open in Colab - Perform binary classification ML and statistical analysis on simulations of PTP1B. Used to describe the differences in the closed and open WPD-loop states of PTP1B.

  3. Tutorial_KE07_Regression_ML_Stats.ipynb Open in Colab - Perform regression ML and statistical analysis on a kemp eliminase enzyme. Here the target value is the side chain dihedral of W50.

  4. network_analysis_tutorial Open in Colab - Preparation of PTP1B inputs required for graph theory based calculations. This tutorial is in its own folder, as two additional scripts are provided:

    • A .R script (which uses BIO3D) to perform WISP
    • A python script to generate PyMOL compatible figures depicting the results from the WISP calculation (The .R script will only generate VMD compatible ones.)
  5. Workup_PDZ_Bootstrapping.ipynb Open in Colab - Workup the bootstrapping calculations performed on the PDZ3 domain. As described in the notebook, the bootstrapping itself was computationally intensive to run so only the workup is included in this notebook. We have however included the scripts that we used to perform bootstrapping for both PTP1B and the PDZ3 domain on Zenodo

There are also several legacy tutorials which can be found here. These tutorials are almost identical to the equivalent ones found above, but instead use non-covalent interaction data identified with PyContact instead of KIF.

License and Disclaimer

This software is published under a GNU General Public License v2.0.

As the principal investigator behind this software is employed by Georgia Tech University we must also clarify: “The software is provided “as is.” Neither the Georgia Institute of Technology nor any of its units or its employees, nor the software developers of KIF or any other person affiliated with the creation, implementation, and upkeep of the software’s code base, knowledge base, and servers (collectively, the “Entities”) shall be held liable for your use of the platform or any data that you enter. The Entities do not warrant or make any representations of any kind or nature with respect to the System, and the Entities do not assume or have any responsibility or liability for any claims, damages, or losses resulting from your use of the platform. None of the Entities shall have any liability to you for use charges related to any device that you use to access the platform or use and receive the platform, including, without limitation, charges for Internet data packages and Personal Computers. THE ENTITIES DISCLAIM ALL WARRANTIES WITH REGARD TO THE SERVICE,INCLUDING WARRANTIES OF MERCHANTABILITY, NON-INFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE TO THE FULLEST EXTENT ALLOWED BY LAW.”

Citing this work

If you make use of this package please cite our manuscript:.

KIF – Key Interactions Finder: A Program to Identify the Key Molecular Interactions that Regulate Protein Conformational Changes

Authors: Rory M. Crean, Joanna S. G. Slusky, Peter M. Kasson and Shina Caroline Lynn Kamerlin

DOI: 10.1063/5.0140882

Issues/Questions/Contributions

All welcome. Please feel free to open an issue or submit a pull request as necessary. Feature requests are welcome too. You can also reach me at: rory.crean [at] igp.uu.se

Metadata

Release files for KIF 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for KIF 0.5.0
File Size Uploaded Provenance Actions
kif-0.5.0.tar.gz 51.8 kB Without provenance Details for kif-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for KIF 0.5.0
File Interpreter ABI Platform Actions
kif-0.5.0-py3-none-any.whl Python 3 none any Details for kif-0.5.0-py3-none-any.whl

Total release size: 111.0 kB

Release files / kif-0.5.0.tar.gz

Download URL kif-0.5.0.tar.gz
Size 51.8 kB
Tags Source
SHA-256 checksum
How to use checksums
06f0f8d244b5715dd26952c3b9bb9c7e19e123cf9d4d81d2cde7770a2c110a03
BLAKE2b-256 checksum
How to use checksums
9d8bc6fdb8d3b7bb31635d372ca825aee0336fe21f6d84a8f007dc4a8939bbdc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / kif-0.5.0-py3-none-any.whl

Download URL kif-0.5.0-py3-none-any.whl
Size 59.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
304a0208c1ca3fe010ed30369eb63d5f816e9c81b4bd760dda7e2aeba769cda5
BLAKE2b-256 checksum
How to use checksums
9596debd9a7566d5804a7ea0bde65ec32561b48b5ccbe14a081a89121f0cd931
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for KIF 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page