OrthoFinder¶
OrthoFinder finds the orthogroups and orthologs of a set of species from their proteomes. It also infers rooted gene trees, a rooted species tree and gene duplication events, and computes comparative genomics statistics.
License¶
Free to use and open source under the GNU General Public License v3.0.
Available¶
- Roihu-CPU: 3.2, via the
bio-appsmodule.
Usage¶
OrthoFinder is part of the bio-apps collection on Roihu. Load the bio-apps module tree and then the OrthoFinder module:
The module also loads the programs OrthoFinder runs. With the default options,
OrthoFinder uses DIAMOND, MCL, FAMSA and FastTree. The other programs are used only
with the options that choose them: BLAST+, MMseqs2, MAFFT, MUSCLE, IQ-TREE and RAxML
for the alternative methods listed below, FastME for DendroBLAST gene trees
(-M dendroblast), and ASTRAL-Pro for species trees with -ST astral-pro and when
adding species with --assign.
Input¶
OrthoFinder needs one FASTA file of protein sequences for each species, all in one
directory. Each file should contain one representative sequence for each gene. If
your proteomes contain several transcript isoforms per gene, keep only the longest
isoform of each gene with primary_transcript:
This writes the filtered files to proteomes/primary_transcripts/.
Running OrthoFinder¶
The -t option sets the number of threads for the sequence searches and -a the number of
threads for the analysis steps. The results are written to
proteomes/OrthoFinder/Results_<date>, unless you give another directory with -o.
The main orthogroup file is Orthogroups/Orthogroups.tsv; see the
guide to the results
for the other files.
You can choose other programs for the different steps, for example:
-Ssequence search:diamond(default),diamond_ultra_sens,blastp,mmseqs-Aalignment:famsa(default),mafft,muscle-Tgene trees:fasttree(default),fasttree_fastest,raxml,iqtree3
For more than about 100 species, run OrthoFinder first on a core set of species and
then add the others to the results with --assign <new species dir> --core <Results_dir>.
Run orthofinder -h to see all options.
To test OrthoFinder, copy the example data to your own directory and run it there:
Example batch script¶
#!/bin/bash
#SBATCH --job-name=orthofinder
#SBATCH --account=<project>
#SBATCH --output=output_%j.txt
#SBATCH --error=errors_%j.txt
#SBATCH --partition=small
#SBATCH --time=24:00:00
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=32
#SBATCH --mem=64G
module load bio-apps/v202603
module load orthofinder/3.2
orthofinder -f proteomes/ -t $SLURM_CPUS_PER_TASK -a 8
Replace <project> with your CSC project (for example project_2001234).
See creating a batch job script for Roihu for more information about running batch jobs.
Support¶
More information¶
- OrthoFinder GitHub repository
- Emms, D. M., Liu, Y., Belcher, L., Holmes, J. & Kelly, S. (2026). OrthoFinder: improved phylogenetic orthology inference with enhanced accuracy and scalability. Nature Methods 23, 1327–1333
- Emms, D. M. & Kelly, S. (2019). OrthoFinder: phylogenetic orthology inference for comparative genomics. Genome Biology 20, 238