Skip to main content

Annotation of genomes and contigs

Project description

## metaerg.py, version 2.2.X

Metaerg.py annotates genomes or sets of mags/bins from microbial ecosystems (bacteria, archaea, viruses). Input data consists of a nucleotide fasta file with one or more contigs. Output files with annotations are in common formats such as .gff, .gbk, .fasta and .html with predicted genes, their functions and taxonomic classifications.

You can interact with a sample visualization [here](https://htmlpreview.github.io/?https://github.com/kinestetika/MetaErg/blob/master/visualization/index.html) and [here](https://htmlpreview.github.io/?https://raw.githubusercontent.com/kinestetika/MetaErg/master/visualization/index_of_features.html). These visualizations show the annotation of a cyanobacterial genome, Candidatus Phormidium alkaliphilum.

Metaerg was originally developed in perl. It was relatively challenging to install and comes with complex database dependencies. This new python version 2.2 overcomes some of those issues. Also, the annotation pipeline has further evolved and has become more refined.

By using gtdbtk for taxonomic classification of genes and transferring functional annotations from the NCBI, metaerg.py uses a controlled vocabulary for taxonomy and a relatively clean vocabulary for functions. This makes annotations much more concise than the original version of metaerg and many other annotation tools. In addition, metaerg uses NCBI’s conserved domain database and RPSBlast to assign genes to subsystems for effective data exploration.

The Metaerg 2.2 pipeline consists of: * (optional) CRISPR regions using [Minced](https://github.com/ctSkennerton/minced). * (optional) tRNAs using [Aragorn](https://www.ansikte.se/ARAGORN/Downloads/). * (required) RNA genes and other non-coding features using [Infernal](http://eddylab.org/infernal/) - cmscan and RFAM. * (optional) retrotransposons with [LTR Harvest](http://genometools.org/tools/gt_ltrharvest.html) - LTRHarvest. * (optional) tandem repeats with [Tandem Repeats Finder](https://tandem.bu.edu/trf/trf.html). * (optional) other repeat regions with [Repeatscout](http://bix.ucsd.edu/repeatscout/) and [Repeatmasker](http://www.repeatmasker.org/RepeatMasker/). * (required) coding genes with [Prodigal](https://github.com/hyattpd/Prodigal). * (required) annotates taxonomy and functions of RNA and protein genes using [Diamond](https://github.com/bbuchfink/diamond), [NCBI blastn](https://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/LATEST/) and a database of 23,145 bacterial, 11,508 viral and 150 eukaryotic genomes. * (required) annotates gene functions using [RPSBlast](https://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/LATEST/) and NCBI’s Conserved Domain Database (CDD). * (optional) annotates genes involved in production of secondary metabolites using [Antismash](https://dl.secondarymetabolites.org/releases). * (optional) annotates membrane amd translocated proteins using [TMHMM and SignalP](https://services.healthtech.dtu.dk/software.php). * (built-in) assigns genes to a built-in database of physiological subsystems. * (built-in) presents annotations in [datatables/jQuery](https://www.datatables.net/)-based intuititve, searchable, colorful HTML that can be explored in a web browser and copy/pasted into excel.

## Usage:

>metaerg –contig_file contig-file.fna –database_dir /path/to/metaerg-databases/

To annotate a set of genomes in a given dir (each file should contain the contigs of a single genome):

>metaerg –contig_file dir-with-contig-files –database_dir /path/to/metaerg-databases/

Metaerg needs 20-30 min to annotate a 4 Mb genome on a desktop computer.

## Installation

For help with installing pipeline programs, have a look at [this script](https://github.com/kinestetika/cloud-computing-for-microbial-ecology/blob/main/cloud_bio_installs.py) for step by step installation instructions/commands.

You can run that script and install everything and more. Briefly, for required programs, install them as follows:

#(infernal) cmsearch 1.1.4 http://eddylab.org/infernal/ wget http://eddylab.org/infernal/infernal-1.1.4-linux-intel-gcc.tar.gz tar -xf infernal-1.1.4-linux-intel-gcc.tar.gz mv infernal-1.1.4-linux-intel-gcc infernal rm infernal-1.1.4-linux-intel-gcc.tar.gz

#(prodigal) prodigal 2.6.3 https://github.com/hyattpd/Prodigal wget https://github.com/hyattpd/Prodigal/releases/download/v2.6.3/prodigal.linux chmod a+x prodigal.linux ln -sf prodigal.linux prodigal

#(ncbi-blast) blastn 2.13.0 https://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/LATEST/ wget https://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/LATEST/ncbi-blast-2.13.0+-x64-linux.tar.gz tar -xf ncbi-blast-2.13.0+-x64-linux.tar.gz mv ncbi-blast-2.13.0+ ncbi-blast rm ncbi-blast-2.13.0+-x64-linux.tar.gz

#(diamond) diamond 2.0.14 https://github.com/bbuchfink/diamond wget https://github.com/bbuchfink/diamond/releases/download/v2.0.15/diamond-linux64.tar.gz tar -xf diamond-linux64.tar.gz rm diamond-linux64.tar.gz

Then, make sure they are in your system’s $PATH.

To install metaerg, run, usually in a virtual environment:

>python -m virtualenv python-env >source python-env/bin/activate >pip install metaerg >deactivate

## Databases

The metaerg annotation databases can be downloaded [here](https://object-arbutus.cloud.computecanada.ca/metaerg/metaerg_db_207_v2.tar.gz) and are created from the following sources: * [gtdbtk](https://ecogenomics.github.io/GTDBTk/index.html) is used for its taxonomy * NCBI annotations of >40K representative archael and bacterial genomes present in gtdb are sourced directly from the ncbi ftp server. * NCBI (refseq) annotations of viral genes are obtained from [viral refseq](https://support.nlm.nih.gov/knowledgebase/article/KA-03474/en-us). * For Eukaryotes, for each taxon within Amoebozoa, Ancyromonadida, Apusozoa, Breviatea, CRuMs, Cryptophyceae, Discoba, Glaucocystophyceae, Haptista, Hemimastigophora, Malawimonadida, Metamonada, Rhodelphea, Rhodophyta, Sar, Aphelida, Choanoflagellata, Filasterea, Fungi, Ichthyosporea, Rotosphaeridagenomes, one genome is added to the database using [ncbi-datasets](https://www.ncbi.nlm.nih.gov/datasets/). * [RFAM](https://rfam.xfam.org/) and [CDD](https://www.ncbi.nlm.nih.gov/Structure/cdd/cdd.shtml) databases are also used. * Specialized function databases - [Cant-Hyd](https://github.com/dgittins/CANT-HYD-HydrocarbonBiodegradation/blob/main/HMMs/concatenated%20HMMs/CANT-HYD.hmm).

If you for some reason need to build this database yourself (this is usually not needed as the metaerg database can be downloaded from the link just provided):

>metaerg-build-databases –target_dir /path/to/metaerg-databases/ –gtdbtk_dir /path/to/gtdbtk-database/ [–tasks [FPVEBRC]]

tasks (default = build all): * F - create database dirs * P - build prokaryotes * V - build viruses * E - build eukaryotes * B - build PVE blast databases * R - build RFAM * C - build CDD * S - build specialized functional databases

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

metaerg-2.2.12.tar.gz (43.0 kB view hashes)

Uploaded Source

Built Distribution

metaerg-2.2.12-py3-none-any.whl (54.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page