OMAmer - tree-driven and alignment-free protein assignment to subfamilies
OMAmer is a novel alignment-free protein family assignment method, which limits over-specific subfamily assignments and is suited to phylogenomic databases with thousands of genomes. It is based on an innovative method using evolutionary-informed k-mers for alignment-free mapping to ancestral protein subfamilies. Whilst able to reject non-homologous family-level assignments, it has provided better and quicker subfamily-level assignments than a method based on closest sequences (using DIAMOND).
Installation
Requires Python >= 3.10. Download the package from the PyPI, resolving the dependencies by using pip install omamer.
Alternatively, clone this repository and install manually.
Pre-Built Databases
Pre-built databases are available for the latest OMA release from the download section on the OMA Browser website.
- LUCA: https://omabrowser.org/All/LUCA.h5
- Metazoa: https://omabrowser.org/All/Metazoa.h5
- Viridiplantae: https://omabrowser.org/All/Viridiplantae.h5
- Saccharomyceta: https://omabrowser.org/All/Saccharomyceta.h5
- Primates: https://omabrowser.org/All/Primates.h5
Their names indicate the root-taxon parameter used. Other non-required parameters were left to default.
Note: databases included in the Zenodo upload from the manuscript are not supported by the most recent version of OMAmer. We recommend using the most recent release with databases built on the most recent OMA browser release.
omamer search - Searching a Database
Assign proteins to families and subfamilies in a pre-existing database.
Usage
Required arguments: --db, --query
usage: omamer search [-h] -d DB -q QUERY [--threshold THRESHOLD] [--family_alpha FAMILY_ALPHA] [-fo] [-n TOP_N_FAMS] [--reference_taxon REFERENCE_TAXON]
[-o OUT] [--include_extant_genes] [-c CHUNKSIZE] [-t {0,1,2,3,4,5,6,7,8}] [--log_level {debug,info,warning}] [--silent]
Arguments
Quick reference table
| Short Flag | Flag | Default | Description |
|---|---|---|---|
-d |
--db |
Path to existing database (including filename) | |
-q |
--query |
Path to FASTA formatted sequences | |
--threshold |
0.1 | Threshold applied on the OMAmer-score that is used to vary the specificity of predicted HOGs. The lower the theshold the more (over-)specific predicted HOGs will be. | |
--family_alpha |
1e-6 | Significance threshold used when filtering families. | |
-fo |
--family_only |
False | If set, only place at the family level. Useful for certain analysis. Note: subfamily_medianseqlen in the results is for the family level. |
-n |
--top_n_fams |
1 | Number of top level families to place into. By default, placed into only the best scoring family. |
-o |
--out |
stdout | Path to output. If not set, defaults to stdout. |
--include_extant_genes |
Include extant gene IDs as comma separated entry in results | ||
-c |
--chunksize |
10000 | Number of queries to process at once. |
-t |
--nthreads |
1 | Number of threads to use |
--log_level |
info | Logging level (options debug, info, warning) | |
--silent |
Set to silence the output. |
Output
Output is in the form of a tab-seperated value file (TSV), with metadata added to the header using !<tag>: <value>. A parser can be imported for further analysis in python as from omamer.results_reader import results_reader.
Output Columns
Query sequence identifier (qseqid)
The sequence identifier from the input FASTA-formatted sequences.
Predicted HOG identifier (hogid)
The identifier of the hierarchical orthologous group (HOG) in OMA, which you can access through the OMA browser search bar or its REST API (https://omabrowser.org/api/docs).
A HOG identifier is composed of the root-HOG identifier (following “HOG:” and before the first dot), which is followed by its sub-HOGs (before each subsequent dot). For example, for subfamily HOG:0487954.3l.27l, HOG:0487954 is the root-HOG (HOG without-parent), HOG:0487954.3l is its child and HOG:0487954.3l.27l its grandchild.
Predicted HOG taxonomic level (hoglevel)
The taxonomic level that the predicted HOG is defined at.
Family p-value (family_p)
p-value of having as many or more of k-mers in common under a binomial distribution. Reported in negative natural log units.
Family count (family_count)
Count of k-mers in common with the family / root level HOG.
Family normalised count (family_normcount)
Family count, normalised by the expected number of hits for the query's sequence length, with the family's k-mer content.
Sub-Family score (subfamily_score)
The OMAmer-score of the predicted HOG. At the subfamily level, this score captures the excess of similarity that is shared between the query and a given HOG, thus excluding the similarity with regions conserved in more ancestral HOGs.
Sub-Family count (subfamily_count)
Count of k-mers in common with the sub-family / HOG.
Query sequence length (qseqlen)
Count of k-mers in common with the sub-family / HOG.
Sub-Family median sequence length (subfamily_medianseqlen)
Median length of the sequences that are present in the predicted HOG. In the case of family-only placement, this is instead reported at the root-HOG level.
Query sequence overlap (qseq_overlap)
The proportion of the query sequence overlapping with k-mers of reference root-HOGs. This may be helpful to reject partially homologous matches that are problematic in some applications.
Sub-Family gene set (subfamily_geneset)
Optionally printed (see --include_extant_genes). Comma-seperated list of extant gene IDs of predicted HOG. The OMA browser can be used to find out more information. In particular, using the REST API, or via the Python API Client.
omamer mkdb - Building a Database
A database can be built from one of:
- the OMA browser's database file and species tree (
--oma_path), e.g. - HOGs in an OrthoXML file (e.g. from FastOMA) and the proteomes as FASTA files (
--orthoxml,--sequences). The species tree is read from the<taxonomy>of the OrthoXML file (OrthoXML >= 0.5), or given as newick file with--species_tree.
The taxon names in the species tree below the root taxon must be unique.
Usage
Required arguments: --db, and --oma_path or --orthoxml and --sequences
usage: omamer mkdb [-h] --db DB [--nthreads NTHREADS] [--min_fam_size MIN_FAM_SIZE] [--min_fam_completeness MIN_FAM_COMPLETENESS] [--logic {AND,OR}]
[--root_taxon ROOT_TAXON] [--hidden_taxa HIDDEN_TAXA] [--reduced_alphabet] [--k K] [--oma_path OMA_PATH]
[--orthoxml ORTHOXML] [--species_tree SPECIES_TREE] [--sequences [SEQUENCES ...]]
[--log_level {debug,info,warning}]
Arguments
| Flag | Default | Description |
|---|---|---|
--db |
Path to new database (including filename) | |
--nthreads |
1 | Number of threads to use |
--min_fam_size |
6 | Only root-HOGs with a protein count passing this threshold are used. |
--min_fam_completeness |
0.5 | Only root-HOGs passing this threshold are used. The completeness of a HOG is defined as the number of observed species divided by the expected number of species at the HOG taxonomic level. |
--logic |
OR | Logic used between the two above arguments to filter root-HOGs. Options are "AND" or "OR". |
--root_taxon |
root of speciestree.nwk | HOGs defined at, or descending from, this taxon are uses as root-HOGs. |
--hidden_taxa |
The proteins from these taxa are removed before the database computation. Usage: a file containing taxa on seperate lines (scientific name). These must match EXACTLY with the node name in the tree given. | |
--reduced_alphabet |
Use reduced alphabet from Linclust paper | |
--k |
6 | k-mer length |
--oma_path |
Path to a directory with both OmaServer.h5 and speciestree.nwk | |
--orthoxml |
Path to an OrthoXML file with the HOGs | |
--species_tree |
<taxonomy> of the OrthoXML file |
Path to a newick species tree for --orthoxml. Required if the OrthoXML file has no taxonomy (OrthoXML < 0.5). |
--sequences |
FASTA files with the proteins of the species in the OrthoXML file | |
--log_level |
info | Logging level |
License
OMAmer is a free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
OMAmer is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with OMAmer. If not, see http://www.gnu.org/licenses/.
Citation
Victor Rossier, Alex Warwick Vesztrocy, Marc Robinson-Rechavi, Christophe Dessimoz, OMAmer: tree-driven and alignment-free protein assignment to subfamilies outperforms closest sequence approaches, Bioinformatics, 2021;, btab219, https://doi.org/10.1093/bioinformatics/btab219
Metadata
Release files for omamer 2.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| omamer-2.2.0.tar.gz | 91.6 kB | With provenance | Details for omamer-2.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| omamer-2.2.0-py3-none-any.whl | Python 3 | none | any | Details for omamer-2.2.0-py3-none-any.whl |
Total release size: 173.5 kB
Release files / omamer-2.2.0.tar.gz
| Download URL | omamer-2.2.0.tar.gz |
|---|---|
| Size | 91.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
edd60962ec8ec45c123ccedfc2eb21f54b8eee4b150141d797724fcb22652241
|
|
BLAKE2b-256 checksum How to use checksums |
43c7b458d0a0d6256a69bea1621fe8c6aa4a8887ce159cf9a112b93fcb7348bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logRelease files / omamer-2.2.0-py3-none-any.whl
| Download URL | omamer-2.2.0-py3-none-any.whl |
|---|---|
| Size | 81.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7c754ede2ee43fc1dec4b1c8691cbe5d248e38d722ec922de37c0e65a3f9cdc4
|
|
BLAKE2b-256 checksum How to use checksums |
2f2929711e4a65b12139c788236413321de672b122fc15f3751c558ff9793a02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logSecurity for omamer 2.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for omamer-2.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logA 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.