fetchMGs (1.0 - 1.2) is copyright (c) 2019 Shinichi Sunagawa and Daniel R Mende.
fetchMGs (1.3) - written by Chris Field
fetchMGs (>=2.0) - written by Hans-Joachim Ruscheweyh
Phylogenetic markers are genes (and proteins) which can be used to reconstruct the phylogenetic history of different organisms. One classical phylogenetic marker is the 16S ribosomal RNA gene, which is often-used but is also known to be a sub-optimal phylogenetic marker for some organisms. Efforts to find a good set of protein coding phylogenetic marker genes (Ciccarelli et al., Science, 2006; Sorek et al., Science, 2007) lead to the identification of 40 universal single copy marker genes (MGs). These 40 marker genes occur in single copy in the vast majority of known organisms and they were used to successfully reconstruct a three domain phylogenetic tree (Ciccarelli et al., Science, 2006).
The program fetchMGs
was written to extract the 40 MGs from genomes and metagenomes in an easy and accurate manner. This is done by utilizing Hidden Markov Models (HMMs) trained on protein alignments of known members of the 40 MGs as well as calibrated cutoffs for each of the 40 MGs. Please note that these cutoffs are only accurate when using complete protein sequences as input files. The output of the program are the protein sequences of the identified proteins, as well as their nucleotide sequences, if the nucleotide sequences of all complete genes are given as an additional input.
FetchMGs and all its dependencies can be installed via pip
and have been tested with Python 3.12.
$pip install fetchMGs
Users can submit genes in protein space or (from v2.0 on) longer nucleotide sequences from assembled genomes/metagenomes.
Per input sample (SAMPLE
), fetchMGs will produce 3 output file:
SAMPLE.fetchMGs.faa
--> the marker genes in protein spaceSAMPLE.fetchMGs.fna
--> the marker genes in nucleotide spaceSAMPLE.fetchMGs.scores
--> A link between marker genes and their bitscores
$fetchMGs
Program: FetchMGs extracts the 40
single copy universal marker genes (decribed in Ciccarelli et al.,
Science, 2006 and Sorek et al., Science, 2007) from genomes and metagenomes
in an easy and accurate manner.
fetchMGs <command> [options]
extraction extract marker genes from sequences
Type fetchMGs <command> to print the help menu for a specific command
$fetchMGs extraction
Program: FetchMGs extracts the 40
single copy universal marker genes (decribed in Ciccarelli et al.,
Science, 2006 and Sorek et al., Science, 2007) from genomes and metagenomes
in an easy and accurate manner.
fetchMGs extraction [options]
Positional arguments:
FILE[ FILE] Input file(s) - plain or gzipped. Can be either:
- 1-n genome assembly file(s), requires -m genome. Will
call genes before marker gene extraction.
- 1-n metagenome assembly file(s), requires -m metagenome. Will
call genes before marker gene extraction.
- 1-n gene file(s) in protein space, requires -m gene. nucleotide
sequences can be provided with -d parameter
Input options:
-d FILE[ FILE] Nucleotide files associated with protein files in -i. Same order as
files in -i required. Enabled only in -m gene mode.
Output options:
-o FOLDER Output folder for marker genes
Algorithm options:
-m STR Mode of extraction Values: [gene, genome, metagenome]
-t INT Number of threads. Default=[1]
-v Report only the very best hit per COG and input file. Only useful
if input files contain genes from genomes or are genomes.
- Calibration mode was removed
hmmer
andprodigal
were replaced withpyhmmer
andpyrodigal
- Input is more flexible. Users can now submit multiple files and use different input formats:
- Genes (
-m gene
) - Genomes (
-m genome
) - Metagenomes (
-m metagenome
)
- Genes (
- Output folder was cleaned up. Only one nucleotide and one protein file are generated compared to 40 in previous versions
- FetchMGs was ported from Perl to Python 3