Quickstart

Installation

The software can be installed using pip

pip install bio-corgi

Warning

Do not try just pip install corgi because that is a different package.

Corgi requires Python 3.11 to 3.15. It can also be installed as a command line tool with uv:

uv tool install bio-corgi

To install the latest version from the repository, you can use this command:

pip install git+https://github.com/rbturnbull/corgi.git

To save static images of SeqTree plots (seqtree sunburst), install the optional images extra:

pip install "bio-corgi[images]"

SeqBanks are stored with the LMDB engine by default, which is always installed. To create or read SeqBanks that use the RocksDict engine, install the optional rocksdict extra:

pip install "bio-corgi[rocksdict]"

Corgi can also be installed with conda from the bioconda channel:

conda install -c conda-forge -c bioconda corgi

Usage

To make predictions, run the corgi command line tool:

corgi --input <input seq file> --output-csv <output csv file>

The input can be a FASTA file, a GenBank file, or a FASTQ file. This can be GZipped or uncompressed. It can also be a URL.

This will output all the predictions in a CSV file.

For more information about the other options, see the help with:

corgi --help

For help on training a model with corgi, run:

corgi-tools --help

This also lists the tools for building the training data, such as refseq-to-seqtree. See the preprocessing tutorial in the documentation for details.