Skip to main content

Corgias

corgias-logo
This logo was generated with the aid from AI (DALL·E).

CORGIAS

CORrelated Genes Identifier by considering Ancestral State

DOI

CORGIAS is a phylogenetic profiling tool for a large-scale dataset comprising of thousands and tens of thousands of orthologs and genomes. As co- and anti-correlated orthologs are expexted to be functionally related, CORGIAS can help functional annotation of orthologs, especially those showing no sequence similarity to functionally known genes.

Platform Support

Feature Linux macOS
Core functionality ✓ ✓
Polars acceleration ✓ ✓
CuPy GPU acceleration ✓ (NVIDIA GPU required) ✗

Installation

Note: Python >=3.10, <3.13 is recommended. ete3 is incompatible with Python 3.13+ (the cgi module was removed).

pip

# CPU-only
pip install corgias

# With GPU support (NVIDIA CUDA 12.x, Linux only)
pip install corgias[gpu]

From source

git clone https://github.com/ynishimuraLv/corgias.git
cd corgias

# Create the virtual environment (Optional, but recommended)
python -m venv .venv
. .venv/bin/activate

# For System with GPU compatible CUDA 12.x
# This option is not available on macOS.
python -m pip install .[gpu]

# For System without a compatible GPU (CPU-only)
python -m pip install .

Usage at a glance

Detailed usage is discreibed here

Ancestral state reconstruction

# Reconstruct by a maximum-likelihood method
corgias asr -t samples/archaea_hq90.tre -d samples/archaea_COG_table99.csv -i 0  \
            --work_dir ML_result -c 4 --prediction_method ML --test 5

# Reconstruct by a maximum-parsimony method
corgias asr -t samples/archaea_hq90.tre -d samples/archaea_COG_table99.csv -i 0  \
            --work_dir MP_result -c 4 --prediction_method MP --test 5

Phylogenetic profiling

# naime method
corgias profiling -m naive -og samples/archaea_COG_table99.csv \
                  -o naive_test.csv -c 4 --test 5

# run lenth encoding (RLE)
corgias profiling -m rle -og samples/archaea_COG_table99.csv \
                  -t samples/archaea_hq90.tre -o rle_test.csv -c 4 --test 5

# clade-wise adjustment (CWA)
corgias profiling -m cwa -og samples/archaea_COG_table99.csv \
                  -t samples/archaea_hq90.tre -o cwa_test.csv -c 4  --test 5

# ancestral state adjustment (ASA)
corgias profiling -m asa -a ML_result -t samples/archaea_hq90.tre -o asa_test.csv -c 4 --test 5

# cotransitions (cotr)
corgias profiling -m cotr -og samples/archaea_COG_table99.csv -t samples/archaea_hq90.tre -o cotr_test.csv -c 4 --test 5

# simultaneous evolution test (SEV)
corgias profiling -m sev -a MP_result -t samples/archaea_hq90.tre -o sev_test.csv -c 4 --test 5

Statistical test

corgias stat -i naive_test.csv -m naive -o stat_naive.csv -c 4
corgias stat -i rle_test.csv -m rle -o stat_rle.csv -c 4
corgias stat -i cwa_test.csv -m cwa -o stat_cwa.csv -c 4
corgias stat -i asa_test.csv -m asa -o stat_asa.csv -c 4
corgias stat -i cotr_test.csv -m cotr -o stat_cotr.csv -c 4
corgias stat -i sev_test.csv -m sev -o stat_sev.csv -c 4

License

This project is licensed under the GPL3.0 License. See the LICENSE file for details.

Citation

If you use CORGIAS in your research, please the paper below:

Yuki Nishimura, Kimiho Omae, Kento Tominnaga, Wataru Iwasaki.
CORGIAS: identifying correlated gene pairs by considering evolutionary history in a large-scale prokaryotic genome dataset
NAR Genomics and Bioinformatics, 2025, https://doi.org/10.1093/nargab/lqaf182

The results in this paper can be reproduced by using the code here

Contact

Yuki Nishimura (The University of Tokyo) yuki-nishimura@g.ecc.u-tokyo.ac.jp

Metadata

Release files for corgias 1.2.0

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

Source distribution (sdist)

Source distribution for corgias 1.2.0
File Size Uploaded Provenance Actions
corgias-1.2.0.tar.gz 1.3 MB Without provenance Details for corgias-1.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 1.4 MB

Release files / corgias-1.2.0.tar.gz

Download URL corgias-1.2.0.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
da1f0930c8f571cbac1bdb3c6681a2e327dc0328a89a6b5a398da2b02a15a413
BLAKE2b-256 checksum
How to use checksums
09cdf847a91fc2fc21bb680a0c6b58962ba766190a8b533292aceff6b6fd8274
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / corgias-1.2.0-py3-none-any.whl

Download URL corgias-1.2.0-py3-none-any.whl
Size 46.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3335d6e825f4dbe21e7f28e1923c7307d0e888f545e19ba4489a276479fbed3c
BLAKE2b-256 checksum
How to use checksums
194bf48adf13807874f262f8c024084ee34bc7afba52102aa51681fe538201c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for corgias 1.2.0

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

1.2.0 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