Skip to content

ClipKIT

ClipKIT trims multiple sequence alignments before phylogenetic analysis. Instead of only removing poorly aligned sites, it keeps the sites that are informative for building trees.

License

Free to use and open source under the MIT License.

Available

  • Roihu-CPU: 2.12.1 and 2.14.0 (module py-clipkit), via the bio-apps module.

Usage

ClipKIT is part of the bio-apps collection on Roihu. Load the bio-apps module tree and then the ClipKIT module:

module load bio-apps/v202603
module load py-clipkit/2.14.0

Trim an alignment with the default smart-gap mode:

clipkit alignment.fasta -o alignment.trimmed.fasta

Without -o, the output is written to the input file name with a .clipkit suffix. Use -m to choose another trimming mode, for example kpic-smart-gap, which also keeps only parsimony-informative and constant sites. Run clipkit -h to see all the modes and options.

Example batch script

Trimming one alignment takes only seconds. To trim many alignments, for example one per gene, run them in a batch job:

#!/bin/bash
#SBATCH --job-name=clipkit
#SBATCH --account=<project>
#SBATCH --output=output_%j.txt
#SBATCH --error=errors_%j.txt
#SBATCH --partition=small
#SBATCH --time=01:00:00
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=1
#SBATCH --mem=4G

module load bio-apps/v202603
module load py-clipkit/2.14.0

mkdir -p trimmed
for aln in alignments/*.fasta; do
    clipkit "$aln" -o trimmed/$(basename "$aln")
done

Replace <project> with your CSC project (for example project_2001234).

See creating a batch job script for Roihu for more information about running batch jobs.

Support

CSC Service Desk

More information

Do you find this page useful?
Thank you for your feedback!
Thank you! Your feedback is appreciated.

Please let us know how we could improve this page by contacting us or by creating an issue in GitHub. You can also edit this page yourself and contribute your improvements by creating a pull request.

November 13, 2026