Skip to main content

Iterative Gene clUster Analysis, a high-throughput method for gene cluster family identification.

Project description

🦎 IGUA Stars

Iterative Gene clUster Analysis, a high-throughput method for gene cluster family identification.

Actions Coverage PyPI Bioconda AUR Wheel Python Versions Python Implementations License Source Mirror GitHub issues Docs Changelog Downloads Preprint

🗺️ Overview

IGUA is a method for high-throughput content-agnostic identification of Gene Cluster Families (GCFs) from gene clusters of genomic and metagenomic origin. It performs three clustering iterations to perform GCF assignment:

  • Fragment mapping identification: Reduce the input sequence space by identifying which gene clusters are fragments of each other.
  • Nucleotide deduplication: Find similar gene clusters in genomic space, using linear clustering with lower sequence identity and coverage.
  • Protein representation: Compute a numerical representation of gene clusters in term of protein composition, using representatives from a protein sequence clustering, to identify more distant relatives not captured by the previous step.

Compared to similar methods such as BiG-SLiCE or BiG-SCAPE, IGUA does not use Pfam domains to represent gene cluster composition, using instead representatives from an unsupervised clustering. This allows IGUA to accurately account for proteins that may not be covered by Pfam, and avoids performing a costly annotation step. The resulting protein representatives can be later annotated indepently to transfer annotations to the GCFs.

🔧 Installing

Bioconda

IGUA and all of its dependencies are available via Bioconda and can be installed using e.g., conda or pixi:

  1. First, set up Bioconda with Pixi or Conda.

  2. Then, install IGUA using the appropriate method:

With conda:

$ conda install igua

With pixi:

$ pixi add igua

Apptainer, Docker, and Singularity

IGUA (and all of its dependencies) can be run using e.g., Docker, Apptainer, and Singularity, using images available here.

An example using Apptainer (using IGUA v0.1.0):

apptainer pull docker://quay.io/biocontainers/igua:0.1.0--py39h5b94c0b_0

pip

IGUA can be downloaded directly from PyPI, which hosts pre-compiled distributions for Linux, MacOS and Windows. Simply install with pip:

$ pip install igua

Note that you will need to install MMseqs2 yourself through other means.

💡 Running

📥 Inputs

The gene clusters to pass to IGUA must be in GenBank format, with gene annotations inside of CDS features. Several GenBank files can be passed to the same pipeline run.

$ igua -g clusters1.gbk -g clusters2.gbk ...

The GenBank locus identifier will be used as the name of each gene cluster. This may cause problems with gene clusters obtained with some tools, such as antiSMASH. If the input contains duplicate identifiers, the first gene cluster with a given identifier will be used, and a warning will be displayed.

📤 Outputs

The main output of IGUA is a TSV file which assigns a Gene Cluster Family to each gene cluster found in the input. The GCF identifiers are arbitrary, and the prefix can be changed with the --prefix flag. The table will also record the original file from which each record was obtained to facilitate resource management. The table is written to the filename given with the --output flag.

The sequences of the representative proteins extracted from each cluster can be saved to a FASTA file with the --features flag. These proteins are used for compositional representation of gene clusters, and can be used to transfer annotations to the GCF representatives. The final compositional matrix for each GCF representative, which can be useful for computing distances between GCFs, can be saved as an anndata sparse matrix to a filename given with the --compositions flag.

📝 Workspace

MMseqs needs a fast scratch space to work with intermediate files while running linear clustering. By default, this will use a temporary folder obtained with tempfile.TemporaryDirectory, which typically lies inside /tmp. To use a different folder, use the --workdir flag.

🫧 Clustering

By default, IGUA will use average linkage clustering and a relative distance threshold of 0.8, which corresponds to clusters inside a GCF having at most 20% of estimated difference at the amino-acid level. These two options can be changed with the --clustering-method and --clustering-distance flags.

Additionally, the precision of the distance matrix used for the clustering can be lowered to reduce memory usage, using single or half precision floating point numbers instead of the double precision used by default. Use the --clustering-precision flag to control numerical precision.

💭 Feedback

⚠️ Issue Tracker

Found a bug ? Have an enhancement request ? Head over to the GitHub issue tracker if you need to report or ask something. If you are filing in on a bug, please include as much information as you can about the issue, and try to recreate the same bug in a simple, easily reproducible situation.

🏗️ Contributing

Contributions are more than welcome! See CONTRIBUTING.md for more details.

📋 Changelog

This project adheres to Semantic Versioning and provides a changelog in the Keep a Changelog format.

⚖️ License

This library is provided under the GNU General Public License v3.0.

This project was developed by Martin Larralde during his PhD project at the European Molecular Biology Laboratory and the Leiden University Medical Center in the Zeller team.

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

igua-0.2.1.tar.gz (532.2 kB view details)

Uploaded Source

Built Distributions

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

igua-0.2.1-cp38-abi3-win_amd64.whl (287.5 kB view details)

Uploaded CPython 3.8+Windows x86-64

igua-0.2.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (456.7 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ x86-64

igua-0.2.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (433.9 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

igua-0.2.1-cp38-abi3-macosx_12_0_x86_64.whl (406.6 kB view details)

Uploaded CPython 3.8+macOS 12.0+ x86-64

igua-0.2.1-cp38-abi3-macosx_11_0_arm64.whl (384.2 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

File details

Details for the file igua-0.2.1.tar.gz.

File metadata

  • Download URL: igua-0.2.1.tar.gz
  • Upload date:
  • Size: 532.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for igua-0.2.1.tar.gz
Algorithm Hash digest
SHA256 1c60f629624d0c67b7dbd14d0b38ed31dbec29729657270e6faf18a6328af0f5
MD5 068f73e3d7b6338d3bb3ba33721ca7df
BLAKE2b-256 625573f54b2efe830d916d1ec5475bf409e0514d987e50800f6571e5740ea3f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for igua-0.2.1.tar.gz:

Publisher: package.yml on zellerlab/IGUA

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file igua-0.2.1-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: igua-0.2.1-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 287.5 kB
  • Tags: CPython 3.8+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for igua-0.2.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 c9daafeb517190bd837de4742f73b7cd7652667d01b5f0db9dc4c4288faaf579
MD5 994ad9bc5670f898f6344517235958e7
BLAKE2b-256 ccab81523eef9b310ac1806433479a4e3a312721ecd83c0b7099f3781a39fc46

See more details on using hashes here.

Provenance

The following attestation bundles were made for igua-0.2.1-cp38-abi3-win_amd64.whl:

Publisher: package.yml on zellerlab/IGUA

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file igua-0.2.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for igua-0.2.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ffc948e5909359982d66f6c8597ce2ef548996158869fd689bc7c33a24c1266f
MD5 b1124997d9db1cdcd435fd48ec290476
BLAKE2b-256 5d1df3025156927572df96c2f1891183515e5df06513a859039404d29a03d82c

See more details on using hashes here.

Provenance

The following attestation bundles were made for igua-0.2.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: package.yml on zellerlab/IGUA

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file igua-0.2.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for igua-0.2.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 296a04d1cdf99bb3c1737eb433d3b84df45480c2ee74974572c7f4b958d61a0d
MD5 006400daa6e29f7fdf5ce056d540f820
BLAKE2b-256 bbee3a970215940284ba0fff51846e123a0ce2a53e1427e6c3c8720165c0b902

See more details on using hashes here.

Provenance

The following attestation bundles were made for igua-0.2.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: package.yml on zellerlab/IGUA

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file igua-0.2.1-cp38-abi3-macosx_12_0_x86_64.whl.

File metadata

  • Download URL: igua-0.2.1-cp38-abi3-macosx_12_0_x86_64.whl
  • Upload date:
  • Size: 406.6 kB
  • Tags: CPython 3.8+, macOS 12.0+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for igua-0.2.1-cp38-abi3-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 08fdd103a20c2ac740c213863c87000241b2173f1f0caa11fe2631e75f07c6b8
MD5 9fcd732c3c2502bbd6db09aeae67f9cf
BLAKE2b-256 5985c0defcd538adc4bc3823fcff5d714493478658cff6a5f5362995eb6ced90

See more details on using hashes here.

Provenance

The following attestation bundles were made for igua-0.2.1-cp38-abi3-macosx_12_0_x86_64.whl:

Publisher: package.yml on zellerlab/IGUA

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file igua-0.2.1-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

  • Download URL: igua-0.2.1-cp38-abi3-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 384.2 kB
  • Tags: CPython 3.8+, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for igua-0.2.1-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3b09732e70dafcece732f38a9221a381e78a7fcf2b1cca665d1732735b687986
MD5 acd15bdfed60d1fa1d2f544818f403a3
BLAKE2b-256 89f6438280f18e2d75fc5334910814d57f737e9d69bb122440c839812818a3a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for igua-0.2.1-cp38-abi3-macosx_11_0_arm64.whl:

Publisher: package.yml on zellerlab/IGUA

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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