Skip to main content

Logo

Docs · Report Bug · Request Feature

@jlsteenwyk on X
Bioconda Downloads Run ClipKIT on the European Galaxy server
Supported Python versions: 3.12, 3.13, 3.14, and 3.15

Run ClipKIT in the browser and leave the computing up to us!


ClipKIT is a fast and flexible alignment trimming tool that keeps phylogenetically informative sites and removes others.

If you found ClipKIT useful, please cite ClipKIT: a multiple sequence alignment trimming software for accurate phylogenomic inference. Steenwyk et al. 2020, PLOS Biology. doi: 10.1371/journal.pbio.3001007.





This documentation covers downloading and installing ClipKIT. Details about each function as well as tutorials for using ClipKIT are available in the online documentation. Release automation details are documented in RELEASE.md.


Quick Start

# install
pip install clipkit
# run
clipkit input.fa

# mask all in-frame stops in a codon-aligned nucleotide MSA
clipkit coding.fa --codon --sequence_type nt --remove_stop_codons all

# fractionally weight IUPAC ambiguity symbols in entropy/composition analyses
clipkit ambiguous.fa --sequence_type nt --ambiguity_handling fractional

ClipKIT handles recognized IUPAC ambiguity symbols conservatively by default: they are treated as missing evidence and contribute to the effective unavailable fraction used by gap-based modes. Use fractional to distribute them across possible states for entropy, composition, and the clade-entropy part of heterotachy analysis, or literal for legacy behavior. Configured gap characters take precedence, and alignment symbols are never rewritten. See the ambiguity-handling documentation for the full nucleotide/protein mappings and mode-specific behavior.

The same operation is available through the Python API:

from clipkit import clipkit

trim_run, stats = clipkit(
    input_file_path="coding.fa",
    mode="gappy",
    gaps=0.9,
    sequence_type="nt",
    codon=True,
    remove_stop_codons="all",
)
print(trim_run.stop_codon_masking.summary)

eComp archives

ClipKIT can trim Evolutionary Compression (.ecomp) archives directly. Simply pass the .ecomp file to the CLI, and ClipKIT will unpack its metadata sidecar and native payload before trimming the alignment. Archives encoded with zstd require the optional zstandard module; all other payload encodings work out of the box. By default the trimmed alignment is written back as an .ecomp archive (with a gzip fallback payload); specify -of fasta if you prefer a text format.


Installation

ClipKIT supports Python 3.12 through 3.15.

If you are having trouble installing ClipKIT, please contact the lead developer, Jacob L. Steenwyk, via email or twitter to get help.

To install using pip, we strongly recommend building a virtual environment to avoid software dependency issues. To do so, execute the following commands:

# create virtual environment
python -m venv venv
# activate virtual environment
source venv/bin/activate
# install clipkit
pip install clipkit

Note: the virtual environment must be activated to use clipkit.

After using ClipKIT, you may wish to deactivate your virtual environment and can do so using the following command:

# deactivate virtual environment
deactivate

Similarly, to install from source, we strongly recommend using a virtual environment. To do so, use the following commands:

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

To deactivate your virtual environment, use the following command:

# deactivate virtual environment
deactivate

Note: the virtual environment must be activated to use clipkit.


To install via anaconda, execute the following command:

conda install bioconda::clipkit

Visit here for more information: https://anaconda.org/bioconda/clipkit

Metadata

Release files for clipkit 2.16.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for clipkit 2.16.3
File Size Uploaded Provenance Actions
clipkit-2.16.3.tar.gz 54.1 kB Without provenance Details for clipkit-2.16.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for clipkit 2.16.3
File Interpreter ABI Platform Actions
clipkit-2.16.3-py3-none-any.whl Python 3 none any Details for clipkit-2.16.3-py3-none-any.whl

Total release size: 113.1 kB

Release files / clipkit-2.16.3.tar.gz

Download URL clipkit-2.16.3.tar.gz
Size 54.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0ebeda3139d3a1351baef0d842dfc4b39576811e4308237a0a76627329c33f89
BLAKE2b-256 checksum
How to use checksums
d4414404ab2399f235d0228e7857528447980b23b8dd2a921e6e4b863171d2ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / clipkit-2.16.3-py3-none-any.whl

Download URL clipkit-2.16.3-py3-none-any.whl
Size 59.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
489e2b28135185c2fc862eb9d162c683d95fac2755620ce708619505f47f842b
BLAKE2b-256 checksum
How to use checksums
fffa33f2af01ba177af6c2730a4105174f94dafc2082f691778b8ce8a2a2440f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for clipkit 2.16.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.16.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page