OrthoFinder – Advanced Comparative Genomics and Orthology Analysis

OrthoFinder is a comprehensive phylogenomic analysis tool designed to identify orthogroups, infer orthologous genes, reconstruct evolutionary trees, and characterize gene duplication events. Its integrated computational framework enables comparative genomics research and systematic investigation of evolutionary relationships across multiple species.

What is OrthoFinder?

What is OrthoFinder?

OrthoFinder is a comparative genomics tool that reconstructs relationships among genes from multiple species. It helps turn a collection of protein sequences into interpretable gene families and evolutionary histories.

From proteins to relationships

Start with one protein FASTA file per species. The analysis groups related genes and investigates their evolutionary history through sequence comparisons and phylogenetic inference.

A framework for research

Use the results to investigate conserved families, duplication patterns, and relationships across lineages. Evolutionary assignments guide further study; they do not alone prove identical function or an adaptive mechanism.

v3Current major release
GPL-3.0Free and open source
6Stages, one command
1,000sOf species with scaling mode
OrthoFinder paper

Cite the OrthoFinder paper

OrthoFinder is developed by David Emms and Steven Kelly at the University of Oxford. Citing the OrthoFinder paper credits the methods behind your orthogroups, gene trees and species tree. Version 3 is described in “OrthoFinder: scalable phylogenetic orthology inference for comparative genomics”.

Emms, D.M. & Kelly, S. OrthoFinder: phylogenetic orthology inference for comparative genomics. Genome Biology 20, 238 (2019).
doi: 10.1186/s13059-019-1832-y
Read the paper
Features

Why researchers choose OrthoFinder

OrthoFinder combines accuracy, speed and complete phylogenetic output, which is why it has become a standard tool in comparative genomics.

Accurate orthogroups

OrthoFinder normalises for gene length bias before clustering, which gives more accurate orthogroups than raw BLAST scores.

Phylogenetic orthologs

OrthoFinder infers orthologs from rooted gene trees, separating orthologs from paralogs with evolutionary context.

Rooted species tree

OrthoFinder infers a species tree and investigates its root using duplication evidence. The tree inference method depends on the release and workflow.

Gene duplication events

OrthoFinder maps every well-supported duplication to its branch on both the gene tree and the species tree.

Fast by default

OrthoFinder uses DIAMOND for searches, running far faster than BLAST with comparable sensitivity.

Ready-made statistics

OrthoFinder writes overall and per-species statistics, ready for tables and figures in your paper.

How it works

How OrthoFinder turns proteomes into evolutionary answers

OrthoFinder runs the complete phylogenetic orthology pipeline from a single command, passing each stage's output straight to the next.

input

Proteomes

One FASTA file per species in a single folder.

-S diamond

All-vs-all search

Every protein compared against every other.

MCL

Orthogroups

Normalised scores clustered into gene families.

-M msa

Gene trees

A tree built for each orthogroup.

species inference

Species tree

Inferred and rooted from gene trees.

output

Orthologs & duplications

Pairwise orthologs and mapped duplication events.

Installation

OrthoFinder conda, pip and Docker installs

OrthoFinder conda installs are the quickest route because the bioconda package brings every default dependency with it. Pick the method that fits your machine or cluster.

Install OrthoFinder with conda

OrthoFinder conda environments keep the tool and its aligners isolated from other software on your system.

$ conda create -n of3_env python=3.12
$ conda activate of3_env
$ conda install -c bioconda orthofinder
$ orthofinder -f ExampleData
Add the bioconda and conda-forge channels first if your conda setup does not already include them.
Command builder

Build your OrthoFinder command

Choose your analysis settings, then copy the command to run OrthoFinder.

OrthoFinder Command Builder

          
    Use cases

    Put evolutionary relationships to work

    Choose the output that matches the biological question, then inspect the relevant sequences, annotations, and trees before drawing a conclusion.

    Compare gene families

    Compare the distribution and copy counts of families across selected species. Check annotation quality before interpreting an apparent gain, expansion, or loss.

    Identify candidate orthologs

    Investigate relationships between genes in a reference species and a focal organism. Review duplicated branches before transferring a precise functional annotation.

    Study duplication histories

    Use gene trees and mapped events to develop hypotheses about ancestral and recent duplications. Distinguish the inferred event from its proposed biological effect.

    Prepare phylogenetic datasets

    Inspect comparable gene sets and their alignments for evolutionary analysis. Single copy status is useful context, but alignment quality and sampling still matter.

    Results

    Explore the OrthoFinder results folder

    OrthoFinder writes its output to OrthoFinder/Results_<date>/ inside your proteome folder. Click a folder to see what each file holds.

    Results_Nov08/
    Outgroup

    Setting an OrthoFinder outgroup

    OrthoFinder outgroup choice is automatic by default: STRIDE finds the root from gene duplication events. When your study needs a fixed root, give OrthoFinder a rooted species tree instead.

    1. Write your species tree in Newick format, rooted on the outgroup.
    2. Use species names that match your FASTA file names, without extensions.
    3. Run with -s species_tree_rooted.nwk, or rerun from earlier results with -ft.
    $ orthofinder -f proteomes/ -s species_tree_rooted.nwk
    NCBI

    Getting proteomes from NCBI

    OrthoFinder input from NCBI is easy to collect with the NCBI Datasets command-line tool, which downloads the annotated protein FASTA for any assembly accession.

    1. Find the RefSeq or GenBank accession for each species.
    2. Download the protein file and unzip the package.
    3. Keep one protein per gene (longest isoform) and rename each file by species.
    $ datasets download genome accession GCF_000001405.40 --include protein
    $ unzip ncbi_dataset.zip
    Download

    How to download and install OrthoFinder

    Use the Download button in the header or hero to request the ZIP source archive. After the file is saved, extract it before installing OrthoFinder.

    Step 1

    Save the ZIP archive

    ZIP source archive · current development branch

    Click Download in the header or hero. Your browser will request the archive; depending on your browser settings, it may ask where to save the file.

    • Allow the download and wait until it finishes.
    • Find the ZIP in your browser downloads or chosen save location.
    • Keep the original archive so you can identify the source used.

    Extract and install

    Step 2 · source installation

    Extract the ZIP, open a terminal inside the extracted source folder, and use the local source steps in the Installation section. The ZIP contains source code, not a standalone installer.

    • Create and activate an isolated Python environment.
    • Install the local package and ensure the required analysis tools are available.
    • Check the installed version and finish a small test analysis before using your research data.
    Compatibility / comparison

    Choose a compatible setup and the right analysis

    Platform support depends on the installed release and its dependencies. Check your processor architecture as well as the operating system.

    Linux

    Linux is supported. Bundled analysis programs target Intel/AMD x86-64; ARM systems need compatible dependency installations.

    macOS

    macOS is supported with compatible analysis programs. On Apple silicon, install dependencies for the selected environment and architecture.

    Windows with WSL2

    Use the Linux workflow inside WSL2. Validate its environment and file paths before launching a complete analysis.

    OrthoFinder vs similarity search

    Evolutionary relationships

    A similarity search finds sequence matches. OrthoFinder combines sequence evidence with grouping and phylogenetic analysis to investigate orthogroups, orthology, and duplication histories. A best scoring match alone does not establish an evolutionary relationship.

    Version 3 vs earlier workflows

    Choose for the experiment

    Version 3 supports core assignment for larger species collections. Earlier workflows may be needed to reproduce an existing study. Record the release and check its output schema before reusing old scripts; compatible inputs do not guarantee identical results.

    Troubleshooting

    Find the cause before repeating a run

    Keep the first relevant error, command, log, and software version. Test one explanation at a time and preserve valid intermediate results.

    Command not found

    Activate the environment where the package was installed. Check the executable path and run orthofinder --version in that same terminal or scheduled job.

    A dependency fails

    Identify the first failed analysis program in the log. Confirm that the selected tool can execute in the actual environment and that its input and output paths are accessible.

    Input files are rejected

    Check FASTA formatting, empty records, duplicate identifiers, and sequence type. Keep a mapping to the original annotation when correcting names or representative selection.

    The job stops early

    Inspect the exit reason, scheduler limits, memory use, free disk space, and permissions. A stopped job does not necessarily indicate a biological problem with the dataset.

    The results look unexpected

    Review per-species recovery and the families behind the pattern. Incomplete annotations, sparse sampling, and fragmentary sequences can affect interpretation.

    You need to continue a run

    Use the continuation instructions for your installed release and completed stage. Preserve its working files and avoid reusing state after silently changing the input collection.

    System requirements

    Prepare the environment and resources

    The software requirements below describe the current 3.2 release. Older versions and optional methods can differ; inspect the help and dependencies for the release you actually install.

    Operating environment
    Linux, macOS, or Linux through WSL2 on Windows, with analysis programs compatible with the processor architecture.
    Python
    Python 3.11 or newer for release 3.2. The installation example on this page uses a Python 3.12 environment.
    Analysis programs
    DIAMOND, MCL, FAMSA, and FastTree support the standard workflow. Additional methods require their corresponding tools.
    Input data
    One protein FASTA file per species, with a documented representative protein for each intended gene.
    CPU and memory
    Estimate requirements with a representative pilot. Sequence counts, family sizes, selected methods, and concurrency affect resource use; there is no universal RAM value for every dataset.
    Working storage
    Provide writable space for source data, intermediate files, alignments, trees, and outputs. Retain the working state needed for any planned restart.
    Safety

    Use source files and research data responsibly

    A useful safety check covers the software source, execution environment, permissions, and the data included in diagnostic reports. It is not a guarantee that every archive or result is risk free.

    Check source and version

    Record where the archive came from and which release or source revision you installed. Inspect the extracted files before executing commands; do not treat a familiar filename as verification.

    Keep an isolated environment

    Use a dedicated environment and ordinary user permissions. Read commands before running them, especially when they access local folders or modify an existing result directory.

    Protect research data

    Keep unpublished sequences and sensitive metadata in an appropriate location. Remove access tokens, private paths, and unrelated information before sharing error reports.

    Validate scientific conclusions

    Review input quality, sampling, and family evidence before publication. A completed run establishes execution success, while biological claims still require appropriate validation.

    Pros and cons

    Strengths and practical limitations

    Evaluate the workflow against your question, available data, and computing resources rather than expecting one configuration to suit every project.

    Pros

    What the workflow brings together

    • Related gene grouping and phylogenetic interpretation in one workflow.
    • Gene and species context for investigating orthology and duplication.
    • Tables and trees that support several comparative genomics questions.
    • Core assignment options for expanding a well designed analysis.
    • Configurable methods for projects with different analytical needs.
    Cons / limitations

    What still needs attention

    • Results depend on annotation quality and representative sequence selection.
    • Large collections and difficult families can require substantial resources.
    • Command line execution and dependencies need a validated environment.
    • Output names and behavior can change between releases.
    • Orthology and family membership alone do not establish identical function.
    FAQs

    OrthoFinder questions, answered

    Part 01

    Getting started

    What is OrthoFinder used for?

    OrthoFinder supports comparative genomics by identifying related gene groups and reconstructing evolutionary relationships. Its outputs help researchers investigate orthology, gene family history, and duplication patterns.

    What input files do I need?

    Prepare one FASTA file of protein sequences per species and place the files together in an input directory. Keep identifiers traceable to their source annotations.

    Should I include every transcript isoform?

    Use a documented representative selection policy for each locus. Including redundant transcript isoforms can inflate apparent copy counts and complicate comparisons between species.

    How should I name my species files?

    Use clear, distinct filenames and preserve a record of which species and annotation each file represents. Avoid ambiguous names that become difficult to distinguish in output tables.

    How can I install OrthoFinder with conda?

    Create and activate an isolated environment, then install the OrthoFinder package using the appropriate configured channels. Record the resolved package version and environment specification.

    How do I check the installed version?

    Run orthofinder --version in the same environment you will use for analysis. Save the reported version with your research records.

    How can I test the installation?

    Run orthofinder -f ExampleData on the example dataset available with the project. Confirm that the analysis finishes, rather than checking only that the help message opens.

    Can I work on a Windows computer?

    Use a compatible Linux environment such as WSL and validate the required dependencies there. Keep the input paths and working directory accessible from that environment.

    Which release should I use for a study?

    Choose a validated release suited to your workflow. When reproducing published results, match the original software and dependency versions as closely as possible.

    What should I check before a full analysis?

    Audit sequence identifiers, empty records, representative selection, and annotation provenance. Finish a small test first and confirm that adequate memory, storage, and runtime are available.

    Part 02

    Analysis basics

    What is an orthogroup?

    An orthogroup contains genes descended from one ancestral gene at the chosen species comparison level. It can include multiple copies from a species following duplication.

    Are orthogroups and orthologs the same?

    No. An orthogroup is an ancestral grouping, while orthology is a relationship associated with speciation. Genes in one group are not necessarily all pairwise orthologs.

    What are hierarchical orthogroups?

    Hierarchical orthogroups describe ancestral gene groups at particular species tree nodes. Select a node whose descendant species match the clade relevant to your question.

    Can I provide my own species tree?

    Yes. The -s option accepts a supplied species tree. Verify its rooting and ensure that its species labels match the analyzed dataset.

    How should I select species for comparison?

    Choose taxa that address the evolutionary question and cover relevant diversity. Check whether uneven annotation quality or excessive representation of one clade could distort interpretation.

    Can OrthoFinder analyze a large species collection?

    The core assignment workflow supports larger collections by adding species to an existing core analysis. Core selection and available computing resources remain important design decisions.

    Can I adjust processor use?

    The -t and -a options control different aspects of parallel execution. Check the installed help and keep settings within your allocated resources.

    Where can I inspect gene family copy counts?

    Inspect the gene count table in the orthogroup results. Confirm the output schema for your installed release before using the table in downstream scripts.

    Does an unassigned gene prove evolutionary novelty?

    No. Incomplete models, divergence, limited sampling, and detection limits can also explain an unassigned record. Investigate sequence and genomic evidence before claiming a new gene.

    How long will an analysis take?

    Runtime depends on sequence counts, family sizes, selected methods, and hardware. Measure a representative pilot rather than relying on a fixed estimate for every dataset. Clear documentation helps reproducibility across independent analyses.