Skip to main content

A tool that aggregates, filters and combines the results of BGC prediction tools: antiSMASH, deepBGC, and GECCO.

Project description

comBGC

Werner Siemens Foundation

comBGC is a tool that can be used to combine the results of the prediction tools deepBGC, GECCO, and antiSMASH for detecting bionsynthetic gene clusters (BGCs). It combines the results of all three tools and adds different filters, so only hight quality BGCs are included. Furthermore, a merging step is applied to the datasets. This removes the redundancy and combines the results of the prediction tool. This way no duplicate BGCs are included in the final table.

Installation


To use comBGC, you first need to create an environment using conda:

conda create -n combgc

Activate the environment

conda activate combgc

and install the required packages using pip

pip install -r requirements.txt

Using comBGC


To run comBGC and parse the results of multiple BGC prediction tools into a single table you need to specify diffent parameters which can be displayed with using -h :

python3 combgc/comBGC.py --help

Using --helpt gives you an overview of all parameters that can be modified, of which -i, -o, and --cores are required.

comBGC arguments:
    -h, --help              
    -i [PATH(s) [PATH(s) ...]], --input [PATH(s) [PATH(s) ...]] # required
    -o [PATH], --outdir [PATH]                                  # required
    -a [PATH], --antismash_multiple_samples [PATH] 
    -vv, --verbose          
    -v, --version           
    --cores [CORES]                                             # required
    --min_length [LENGTH]   
    --contig_edge [BASES]   
    --sample_metadata [PATH]
    --contig_metadata
  • -o, --outdir
  • -i, --input path(s) to the required output file(s) of antiSMASH, DeepBGC and/or GECCO these can be:
    - antiSMASH: .gbk and (optional) knownclusterblast/ directory
    - DeepBGC: .bgc.tsv
    - GECCO: .clusters.tsv
    Note: Please provide files from a single sample only. If you would like to summarize multiple samples, please see the --antismash_multiple_samples flag.
  • -o, --outdir directory for comBGC output. Default: current directory
  • -a, --antismash_multiple_samples directory of antiSMASH output. Should contain subfolders (one per sample). Can only be used if --input is not specified.
  • -vv, --verbose increase output verbosity
  • -v, --version show version number and exit
  • --cores number of CPU cores to use
  • --min_length Minimum length [bp] of BGC sequence to keep. Default: 3000 bp
  • --contig_edge Exclude BGCs within X bases on the contig edge. Default: 2 bp
  • --sample_metadata Path to a TSV file containing sample metadata, e.g., 'path/to/sample_metadata.tsv'. The metadata table must have sample names in the first column and contig IDs in the second column.
  • --contig_metadata Path to a TSV file containing contig metadata, e.g., 'path/to/contig_metadata.tsv'. The metadata table must have sample names in the first column and contig IDs in the second column.

Example Usage

python3 combgc/comBGC.py \
-i tests/antismash_example/ECO010-megahit/ECO010-megahit.gbk \
tests/deepbgc_example/ECO010-megahit/ECO010-megahit.bgc.tsv \
tests/gecco_example/ECO010-megahit/ECO010-megahit.clusters.tsv \
-o ./output/ --cores 10

Authors


This tool was initiated by Jasmin Frangenberg (@jasmezz) and expanded by Tom Richtermeier (@tomrichtermeier), while being supervised by Anan Ibrahim (@Darcy220606)

Funding


This project was funded by Werner Siemens Foundation grant ‘Palaeobiotechnology’

Werner Siemens Foundation

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

combgc-0.6.4.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

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

combgc-0.6.4-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file combgc-0.6.4.tar.gz.

File metadata

  • Download URL: combgc-0.6.4.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.2

File hashes

Hashes for combgc-0.6.4.tar.gz
Algorithm Hash digest
SHA256 63d28e49c121d7166b4b1c804864f9dcb60c07631fa1ebdfefddaa8e717e4d3d
MD5 f3b936e7ed3e617cee0e14153f4fdce2
BLAKE2b-256 5bf3bcae42d2690fef1d09ef22c11d88b8cde9127547836f6fb306bd6fc57834

See more details on using hashes here.

File details

Details for the file combgc-0.6.4-py3-none-any.whl.

File metadata

  • Download URL: combgc-0.6.4-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.2

File hashes

Hashes for combgc-0.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3a751177e426a9545d59a16e1774a57557287896fe0803648097ab50983ea6ab
MD5 61eae39ec5759f14e8abf1da0ab70d06
BLAKE2b-256 a9a1c588bace8b0e84c35e6eba258b7befdd03b54a873bd53013665e3336b6cf

See more details on using hashes here.

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