PytrimAl Stars#

Cython bindings and Python interface to trimAl, a tool for automated alignment trimming.

Actions Coverage PyPI Bioconda AUR Wheel Versions Implementations License Source Mirror Issues Docs Changelog Downloads

Overview#

PytrimAl is a Python module that provides bindings to trimAl using Cython. It directly interacts with the trimAl internals, which has the following advantages:

Batteries-included

Just add pytrimal as a pip or conda dependency, no need for the trimAl binary or any external dependency.

Flexible

Create input Alignment objects programmatically through the Python API.

Efficient

Use the full power of your CPU with SIMD instructions to compute alignment statistics, selected with dynamic dispatch on the runtime platform.

Consistent

Get the same results as the most recent trimAl version (2.0, unreleased), tested on a set of gold-standard alignments.

Feature-complete

Access all the features of the original CLI through the Python API.

Fault-tolerant

Recover errors occuring in trimAl as Python exceptions, including an informative error message.

Setup#

Run pip install pytrimal in a shell to download the latest release and all its dependencies from PyPi, or have a look at the Installation page to find other ways to install pytrimal.

Library#

License#

This library is provided under the GNU General Public License v3.0. trimAl is developed by the trimAl team and is distributed under the terms of the GPLv3 as well.

This project is in no way not affiliated, sponsored, or otherwise endorsed by the original trimAl authors. It was developed by Martin Larralde during his PhD project at the European Molecular Biology Laboratory in the Zeller team.