Installation and first trim

ClipKIT supports Python 3.12 through 3.15.

Install from PyPI

Create a virtual environment and install ClipKIT into it.

python -m venv .venv
source .venv/bin/activate
python -m pip install clipkit
clipkit --help

On Windows PowerShell, activate the environment with .venv\Scripts\Activate.ps1. Keep the environment active while using ClipKIT. Run deactivate when you finish.

Install with conda

Install the Bioconda package into a dedicated environment.

conda create -n clipkit -c conda-forge -c bioconda clipkit
conda activate clipkit
clipkit --help

Install from source

git clone https://github.com/JLSteenwyk/ClipKIT.git
cd ClipKIT
python -m venv .venv
source .venv/bin/activate
make install

Use the virtual environment to install without writing to the system Python environment.

Trim an alignment

Run ClipKIT on a multiple sequence alignment in FASTA format. Replace input.fa with the path to your aligned file.

clipkit input.fa

The default smart-gap mode chooses a gap threshold from the input alignment. ClipKIT writes the result to input.fa.clipkit. To choose a different output path, use -o.

clipkit input.fa -o trimmed.fa

ClipKIT also reads and writes Evolutionary Compression (.ecomp) archives. Pass an archive directly with clipkit alignment.ecomp. Unless you select another format with -of, ClipKIT writes an .ecomp archive with a gzip fallback payload. Install the optional zstandard package to decode zstd-compressed payloads.

Continue to trimming modes and CLI options to select a mode, configure gaps, or inspect trimming decisions.