Skip to content

The align_and_color_with_selection.py script is a PyMOL plugin designed to streamline the comparison of two structural models. It performs structural alignment, highlights differing residues, and creates selections for these residues, making it a valuable tool for structural biologists analyzing homologous structures or variants.

Notifications You must be signed in to change notification settings

keni105/align_and_color_with_selection.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

align_and_color_with_selection.py

The align_and_color_with_selection.py script is a PyMOL plugin designed to streamline the comparison of two structural models. It performs structural alignment, highlights differing residues, and creates selections for these residues, making it a valuable tool for structural biologists analyzing homologous structures or variants.

Key Features

  1. Structural Alignment:

Aligns two structures using PyMOL's align function. Outputs the RMSD value to indicate the quality of alignment.

  1. Residue Comparison:

Compares the residue sequences of the two structures after alignment. Identifies residues that differ between the structures.

  1. Color Coding:

Colors differing residues in red and identical residues in green for visual clarity.

  1. Selection Creation:

Creates selections for the differing residues in each structure. Names the selections <structure_name>_diff_residues, allowing easy manipulation and visualization.

  1. User-Friendly Output:

Provides clear information about the alignment and residue differences. Warns if sequences are of different lengths, ensuring users are aware of potential issues.

Applications

Comparing structural homologs to identify key differences. Analyzing mutations or variations in protein models. Highlighting and selecting regions of interest for further analysis or visualization.

How to Use

  1. Load the script into PyMOL:

    run path/to/align_and_color_with_selection.py

  2. Ensure the two structures are loaded (e.g., model1 and model2).

  3. Execute the command:

    align_and_color_with_selection model1, model2

  4. Differing residues will be colored and selections (model1_diff_residues, model2_diff_residues) will be created for easy reference.

This plugin enhances structural analysis workflows by combining alignment, visualization, and residue selection into a single, efficient process. It is especially useful for identifying functional or structural differences in protein complexes or homologous structures.

Example of the result:

align and color with selection

About

The align_and_color_with_selection.py script is a PyMOL plugin designed to streamline the comparison of two structural models. It performs structural alignment, highlights differing residues, and creates selections for these residues, making it a valuable tool for structural biologists analyzing homologous structures or variants.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages