Skip to content

PhyloNet

PhyloNet analyses, reconstructs and evaluates reticulate (non-treelike) evolutionary relationships, such as those caused by hybridisation, as phylogenetic networks. It also infers species trees in the presence of incomplete lineage sorting.

License

Free to download and use from the PhyloNet website. The distribution does not state a specific license.

Available

  • Roihu-CPU: 3.8.5, via the bio-apps module.

Usage

PhyloNet is part of the bio-apps collection on Roihu. Load the bio-apps module tree and then the PhyloNet module:

module load bio-apps/v202603
module load phylonet/3.8.5

PhyloNet reads a NEXUS file that contains the input data, for example gene trees, and a PHYLONET block with the commands to run. For example, network.nex below infers a phylogenetic network with at most one reticulation from three gene trees, using 8 threads:

#NEXUS

BEGIN TREES;
Tree gt1 = ((A,B),(C,D));
Tree gt2 = ((A,C),(B,D));
Tree gt3 = ((A,B),(C,D));
END;

BEGIN PHYLONET;
InferNetwork_MPL (gt1,gt2,gt3) 1 -pl 8;
END;

Run it with:

phylonet network.nex

Commands that can run in parallel, such as InferNetwork_MPL, take the number of threads with -pl. Set it to match the cores reserved for your job. See the PhyloNet documentation for the commands and their options.

PhyloNet is a Java program, and Java may limit it to a fraction of the memory reserved for your job. Set the maximum memory with the JAVA_OPTS environment variable, as in the batch script below.

Example batch script

#!/bin/bash
#SBATCH --job-name=phylonet
#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=8
#SBATCH --mem=16G

module load bio-apps/v202603
module load phylonet/3.8.5

export JAVA_OPTS="-Xmx14g"
phylonet network.nex

-Xmx14g leaves some of the 16 GiB reserved for the job free for Java's own overhead. 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

CSC Service Desk

More information

Do you find this page useful?
Thank you for your feedback!
Thank you! Your feedback is appreciated.

Please let us know how we could improve this page by contacting us or by creating an issue in GitHub. You can also edit this page yourself and contribute your improvements by creating a pull request.

November 13, 2026