Skip to main content

Alignment trimming software for phylogenetics.

Project description

Logo

Docs · Report Bug · Request Feature


Bioconda Downloads Run ClipKIT on the European Galaxy server

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

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clipkit-2.13.2.tar.gz (45.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clipkit-2.13.2-py3-none-any.whl (48.8 kB view details)

Uploaded Python 3

File details

Details for the file clipkit-2.13.2.tar.gz.

File metadata

  • Download URL: clipkit-2.13.2.tar.gz
  • Upload date:
  • Size: 45.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.10

File hashes

Hashes for clipkit-2.13.2.tar.gz
Algorithm Hash digest
SHA256 66dec68f631b9e4b46cd29648621bab645a720e852e11e8d8f675ea5b4954afe
MD5 cabf06bed4cee2a62c263e0fcaabe57d
BLAKE2b-256 b5b012f8298a64dabd786d0526aea5af4b90e60b1de1520a1f1ce4781a5ca6f8

See more details on using hashes here.

File details

Details for the file clipkit-2.13.2-py3-none-any.whl.

File metadata

  • Download URL: clipkit-2.13.2-py3-none-any.whl
  • Upload date:
  • Size: 48.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.10

File hashes

Hashes for clipkit-2.13.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a609656ad6b373e8455a6875cbfa369b34d322197230a7385ddfd25c507b36e0
MD5 eff04da89d0586c3a141bfefa563626e
BLAKE2b-256 8db7253dcf9e7b34f68d54034aca72878378e2c56329b3d9f2f03c3beaf7ec12

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page