Metadata-Version: 2.4
Name: bio-corgi
Version: 0.5.8
Summary: Classifier for ORganelle Genomes Inter alia
Keywords: metagenomic classifier,tiara,DNA,bioinformatics,lightning,pytorch,deep learning,command-line interface
Author: Robert Turnbull
Author-email: Robert Turnbull <robert.turnbull@unimelb.edu.au>
License-Expression: Apache-2.0
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
Requires-Dist: torchapp>=0.5.9
Requires-Dist: numpy<2.0.0
Requires-Dist: biopython>=1.79
Requires-Dist: humanize>=3.10.0
Requires-Dist: pyarrow>=5.0.0
Requires-Dist: plotly>=5.3.1
Requires-Dist: appdirs>=1.4.4
Requires-Dist: beautifulsoup4>=4.10.0
Requires-Dist: httpx>=0.20.0
Requires-Dist: cryptography>=36.0.1
Requires-Dist: pymysql>=1.0.2
Requires-Dist: termgraph>=0.5.3
Requires-Dist: torch>=2.0.0
Requires-Dist: hierarchicalsoftmax>=1.4.1
Requires-Dist: attrs>=23.1.0
Requires-Dist: polytorch>=0.1.3
Requires-Dist: seqbank>=0.2.0
Requires-Dist: multitax>=1.3.1
Requires-Dist: kaleido>=1.0 ; extra == 'images'
Requires-Python: >=3.11, <3.15
Project-URL: Homepage, https://github.com/rbturnbull/corgi
Project-URL: Repository, https://github.com/rbturnbull/corgi
Project-URL: Documentation, https://rbturnbull.github.io/corgi/
Provides-Extra: images
Description-Content-Type: text/x-rst

.. image:: https://raw.githubusercontent.com/rbturnbull/corgi/main/docs/images/corgi-banner.jpg

.. start-badges

|pypi badge| |testing badge| |coverage badge| |docs badge| |black badge| |git3moji badge| |torchapp badge|

.. |pypi badge| image:: https://img.shields.io/pypi/v/bio-corgi?color=blue
   :alt: PyPI - Version
   :target: https://pypi.org/project/bio-corgi/

.. |testing badge| image:: https://github.com/rbturnbull/corgi/actions/workflows/testing.yml/badge.svg
    :target: https://github.com/rbturnbull/corgi/actions

.. |docs badge| image:: https://github.com/rbturnbull/corgi/actions/workflows/docs.yml/badge.svg
    :target: https://rbturnbull.github.io/corgi
    
.. |black badge| image:: https://img.shields.io/badge/code%20style-black-000000.svg
    :target: https://github.com/psf/black
    
.. |coverage badge| image:: https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/rbturnbull/ee1b52dd314d6441e0aabc0e1e50dc2c/raw/coverage-badge.json
    :target: https://rbturnbull.github.io/corgi/coverage/

.. |git3moji badge| image:: https://img.shields.io/badge/git3moji-%E2%9A%A1%EF%B8%8F%F0%9F%90%9B%F0%9F%93%BA%F0%9F%91%AE%F0%9F%94%A4-fffad8.svg
    :target: https://robinpokorny.github.io/git3moji/

.. |torchapp badge| image:: https://img.shields.io/badge/torch-app-B1230A.svg
    :target: https://rbturnbull.github.io/torchapp/
        
.. end-badges

.. start-quickstart

Installation
============

The software can be installed using ``pip``

.. code-block:: bash

    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.14. It can also be installed as a command line tool with `uv <https://docs.astral.sh/uv/>`_:

.. code-block:: bash

    uv tool install bio-corgi

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

.. code-block:: bash

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

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

.. code-block:: bash

    pip install "bio-corgi[images]"

.. note ::

    Soon corgi will be able to be installed using conda.

Usage
============

To make predictions, run the ``corgi`` command line tool:

.. code-block:: bash

    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:

.. code-block:: bash

    corgi --help

For help on training a model with corgi, run:

.. code-block:: bash

    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.

.. end-quickstart


Credits
==================================

* `Robert Turnbull <https://robturnbull.com>`_
* Vinícius Salazar
* Edoardo Tescari
* Heroen Verbruggen

With contributions from:

* Yuhao Tong
* Kamalpreet Singh
* Rafsan Al Mamun
* Diego Aranda Villarreal

Citation details to come.

* Created using torchapp (https://github.com/rbturnbull/torchapp)

