FastOMA is a scalable software package to infer orthology relationship.
FastOMA is a scalable software package to infer orthology relationship.
FastOMA is a scalable software package to infer orthology relationship.
Want to learn more about FastOMA and try it online, check out FastOMA academy and FastOMA talk at ISMB 2023 on YouTube! And read FastOMA's publication in Nature Methods.
Sets of protein sequences in FASTA format (with .fa extension) in the folder proteome.
The name of each fasta file is the name of species. Please make sure that the name of fasta records do not contain special characters including ||.
Rooted Species tree in newick format.
A rough species tree is enough, and it does not need to be binary (fully resolved). Besides, we do not need branch lengths. You could use the NCBI tree via ete3 package via cat list_taxanomic_id.txt | ete3 ncbiquery --tree > species_tree.nwk (see this).
Note that the name of leaves of the tree (species name) should be the same as the file name of FASTAs (without .fa extension) (item 1).
And there shouldn't be any repeated names in leaves names and internal node names. The tree should not be with quotation.
The omamer database which is available for download from the OMA browser.
The FastOMA workflow will automatically download the omamer database for LUCA (7.7 GB) if the argument --omamer_db is not
provided on the command line. The argument can be a local file (e.g. a previously downloaded omamer database file) or
a URL to an alternative omamer database, e.g. a subset of the LUCA database which is smaller, like Primates with this link which is ~100MB. However, to have a broader reference gene families, we recommend to use the LUCA database if possible.
You can see an example in the testdata folder.
$ ls proteome
AQUAE.fa CHLTR.fa MYCGE.fa
$ cat species_tree.nwk
((AQUAE,CHLTR)inter1,MYCGE)inter2;Besides, the internal node should not contain any special character (e.g. \ / or space).
The reason is that FastOMA write some files whose names contain the internal node's name.
If the species tree does not have label for some/all internal nodes, FastOMA labels them sequentially.
The updated tree will be stored in the output folder named as species_tree_checked.nwk.
Orthology information as HOG structure in OrthoXML format which can be used with PyHAM. Learn more about HOG here and here. The details of output are described below.
Additionally, FastOMA generates TSV files for rootlevel HOGs (deepest level) and marker genes groups (one gene per species maximum) together with dumps of fasta files (one per rootlevel HOG / marker gene).
FastOMA is implemented as a nextflow-workflow. As such, FastOMA can be run without any installation steps given the system supports running either docker containers, singularity containers or has conda installed.
nextflow run dessimozlab/FastOMA -profile docker --input /path/to/in_folder --output_folder /path/to/out_folder You could also add specific version to be used by adding -r v0.5.1 to the command line. Without any -r argument,
always the latest available release will be used. With -r dev the latest development release can be used.
[!WARNING] Nextflow caches pulled workflows. Git branches such as
devare therefore not automatically updated. You might need to first runnextflow drop dessimozlab/FastOMAbefore pulling again.
Nextflow will automatically fetch the dessimozlab/FastOMA repository and starts
the FastOMA.nf workflow. The -profile argument must be used to specify the profile to use. We support docker,
singularity and conda which then automatically set up the necessary tools by downloading the required containers or creating
a conda environment with the necessary dependencies.
See also How to install FastOMA for additional ways how to install and run FastOMA. Note also the section on the different profiles.
For more informaton on how Nextflow and Docker work together, see here.
We provide for every commit of the repository a docker image for FastOMA on dockerhub. You can specify the container as
part of the nextflow command with the parameter container_version. If you want to use the container of the current
git checkout version, you can specify this in the following way:
nextflow run FastOMA.nf -profile docker \
--container_version "sha-$(git rev-list --max-count=1 --abbrev-commit HEAD)" \
--input testdata/in_folder \
--output_folder myresult/There are four ways to run/install FastOMA detailed below:
The FastOMA workflow can be run directly without any installation using nextflow's ability to fetch a workflow from github. A specific version can be selected by specifying the -r option to nextflow to select a specific version of FastOMA:
nextflow run dessimozlab/FastOMA -r v0.5.1 -profile conda This will fetch version v0.5.1 from github and run the FastOMA workflow using the conda profile. See section How to run fastOMA.
git clone https://github.com/DessimozLab/FastOMA.git
cd FastOMA
nextflow run FastOMA.nf -profile docker --container_version "sha-$(git rev-list --max-count=1 --abbrev-commit HEAD)" ...install mafft and FastTree and ensure the software is accessible on the PATH.
install python >= 3.9
create virtual environment, activate it and install FastOMA with additional extras inside it:
python3 -m venv .venv
source .venv/bin/activate
pip install FastOMA[report,nextflow] You can also install FastOMA from a clone of the repository in editable mode with pip install -e .[report,nextflow].
run pipeline including with some testdata (For more details, see the section How to run FastOMA on the test data )
nextflow run FastOMA.nf -profile standard --input testdata/in_folder --output_folder output -with-reportIn the FastOMA repository, we provide a conda environment file that can be used to generate a conda / mamba environment.
For Conda installation you need to first download the Miniconda installer from this link.
For MacOS:
curl https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -o Miniconda3.sh
bash Miniconda3.shFor Linux
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -o Miniconda3.sh
bashMiniconda3.shThen follow the instruction on the terminal. Finally, close and re-open the terminal and run
conda env create -n fastoma python=3.9 --file environment-conda.yml
conda activate fastomaThen, clone and install fastOMA using
git clone https://github.com/DessimozLab/FastOMA.git
Alternatively, you could use Mamba instead of Conda (which needs its own installation). Note that it is not encouraged to have both Mamba and conda on one system, more info.
mamba env create -n FastOMA -f environment-conda.yml
mamba activate FastOMAAfterwards, you can run the workflow using nextflow (which is installed as part of the conda environment)
nextflow run FastOMA.nf -profile standard|slurm --input /path/to/input --output_folder /path/to/outputNote that you should use either the profile standard or slurm such the nextflow executor will use the activated environment.
Nextflow provides support to run a workflow on different infrastructures. Selection of this is done using the -profile argument.
For FastOMA, we've implemented the following profiles below. Additional ones can also be created by specifying them in the nextflow.config file.
With -profile docker one can use docker as an execution platform. It requires docker to be installed on the system (see here). The pipeline
will automatically fetch missing containers from dockerhub (e.g. dessimozlab/fastoma) if not found locally. By default, the version
latest is used by the pipeline, however we provide images for any branch and release as well; even for every recent commit.
One can select the desired container via the --container_version argument. We provide containers for x86_64 (amd64) as well
as arm64 architectures.
nextflow run FastOMA.nf -profile docker \
--container_version "sha-$(git rev-list --max-count=1 --abbrev-commit HEAD)" \
--input testdata/in_folder \
--output_folder myresult/This will use the container that is tagged with the current commit id. Similarly, one could also use
--container_version "0.5.1" to use the container with version dessimozlab/fastoma:0.5.1 from dockerhub. Check the latest version on the DockerHub.
Since Docker needs administrator privileges (root access), Singluarity (a.k.a Apptainer) is a good alternative. This can be installed using Conda with conda install conda-forge::singularity. However, in most of the academic HPC cluster, singluarity is already installed and can be called with module load.
With -profile singularity singularity containers will be used to run the workflow. It requires singularity to
be installed on your system. The containers are automatically pulled from dockerhub and converted to singularity
containers. The same options as for Docker will be available.
with -profile conda, the FastOMA workflow will create a conda environment which contains the necessary
dependencies and use this environment to run the workflow steps. Note that this environment does not need
to be activated manually. If you prefer to install the dependencies inside a conda or mamba environment
yourself, this can be achieved as described in .
On a HPC system you typically run processes using a scheduler system such as slurm or LSF. We provide
a basic profile for slurm -profile slurm to run FastOMA with slurm as a scheduler system.
Note that multiple profiles can be combined, e.g. -profile slurm,singularity, or -profile slurm,conda.
For many HPC systems, there exists already a nf-core profile, which can be directly used with FastOMA. Check the available profiles interactively here or on [github](https://github.com/nf-core/c
No open issues yet, or sync has not completed.