Installation and first analysis

Supported Python versions

PhyKIT supports Python 3.12, 3.13, 3.14, and 3.15. Use a virtual environment to keep its dependencies separate from other projects.

Install from PyPI

python -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install phykit
phykit version

On Windows PowerShell, activate the environment with .venv\Scripts\Activate.ps1.

Install with conda

conda create -n phykit -c conda-forge -c bioconda phykit
conda activate phykit
phykit version

Run a first analysis

Download the example alignment and run the command from the directory containing that file.

phykit alignment_length Steenwyk_etal_mBio_2019_EOG091N44MS.aln.fa

Expected output:

624

PhyKIT read an aligned FASTA file and reported its 624 aligned sites. Request structured output with --json:

phykit alignment_length Steenwyk_etal_mBio_2019_EOG091N44MS.aln.fa --json

Find the next command

For any command, display the interface installed in the active environment:

phykit <command> --help