Skip to content

About

Perform pairwise secondary structural alignments of proteins using the US-align (TM-align) algorithm and generate an accompanying dendrogram to visualise the structural relationship between them.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

ColabAlign

Fast pairwise protein secondary structure comparisons using multiprocessing

Open In Colab Code DOI Paper DOI

This notebook performs pairwise protein structural alignments using the US-align algorithm by Zhang et al., (2022), then constructs a structure-informed dendrogram using the UPGMA algorithm to visualise similarities.

ColabAlign is designed to run directly in Google Colab for ease-of-use and to remove any local hardware requirements. This implementation also includes multiprocessing support for dramatically increased performance over the base US-align program.


Interpreting MView-like alignments

MView uses an expanded character set to represent groups of amino acids with similar properties. Below is Further information can be found at: https://desmid.github.io/mview/manual/manual.html

Group MView character 1 letter amino acid codes
Alcohol o S, T
Aliphatic l I, L, V
Aromatic a F, H, W, Y
Charged c D, E, H, K, R
Hydrophobic h A, C, F, G, H, I, K, L, M, R, T, V, W, Y
Negative - D, E
Polar p C, D, E, H, K, N, Q, R, S, T
Positive + H, K, R
Small s A, C, D, G, N, P, S, T, V
Tiny u A, G, S
Turn-like t A, C, D, E, G, H, K, N, Q, R, S, T
Stop * *

Installation for local usage

ColabAlign is a Python package with a colabalign command. It also needs three external tools: USalign, BeEM (only for .cif inputs) and TreeCluster.

Conda (recommended). Installs ColabAlign and all external tools:

conda install -c conda-forge -c bioconda colabalign

From source. Create the environment from the provided YAML file, which includes the external tools, then install the package:

conda env create -f colabalign.yml
conda activate colabalign
pip install --no-deps .

pip only. pip install . installs the Python dependencies, but USalign and BeEM must be compiled from source (see their GitHub repos above). Point ColabAlign at the binaries with -u /path/to/USalign and -b /path/to/BeEM if they are not on your PATH.

Usage

colabalign -i structures/ more.zip extra.pdb -o results_dir -c 8 -t 0.20 0.30 -m first

-i accepts .pdb/.cif files, directories of them, and .zip archives. python -m colabalign works too. From Python:

from colabalign import ColabAlign
ColabAlign(inputs=['structures/'], output='results_dir', cores=8, threshold=[0.2, 0.3]).run()

Running the tests

pip install -e ".[test]"
pytest

Tests that need USalign, BeEM or TreeCluster.py are skipped when those tools are not on PATH.

References

BibTeX-formatted references for this project and the associated references can be found in colabalign.bib and associated-references.bib.


Note

Permission to use, copy, modify, and distribute this program for any purpose, with or without fee, is hereby granted, provided that the notices on the head, the reference information, and this copyright notice appear in all copies or substantial portions of the Software. It is provided "as is" without express or implied warranty.

About

Perform pairwise secondary structural alignments of proteins using the US-align (TM-align) algorithm and generate an accompanying dendrogram to visualise the structural relationship between them.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages