bioinformatics/pggb:202607241950514225c6
Version sha256.7d6d81d2474d37f9d82982ed75731e7f032a23591877a3facd978980e868527d
Image size: 2.8 GB
For more on pulling from the registry, see the ilifu documentation.
First, once: add the registry and make it your default
singularity remote add --no-login idia-registry https://sregistry.idia.ac.za
singularity remote use idia-registry
If you added it before, as the ilifu docs describe, remote add says it already exists: just run remote use.
Log in, for a private collection
singularity remote login idia-registry
Paste a token from your token page when asked. Public collections need no login.
Pull the container
singularity pull library://bioinformatics/pggb:202607241950514225c6
Shell into the container
singularity shell library://bioinformatics/pggb:202607241950514225c6
Run the container
singularity run library://bioinformatics/pggb:202607241950514225c6
First, once: add the registry and make it your default
apptainer remote add --no-login idia-registry https://sregistry.idia.ac.za
apptainer remote use idia-registry
If you added it before, as the ilifu docs describe, remote add says it already exists: just run remote use.
Log in, for a private collection
apptainer remote login idia-registry
Paste a token from your token page when asked. Public collections need no login.
Pull the container
apptainer pull library://bioinformatics/pggb:202607241950514225c6
Shell into the container
apptainer shell library://bioinformatics/pggb:202607241950514225c6
Run the container
apptainer run library://bioinformatics/pggb:202607241950514225c6
PGGB, the PanGenome Graph Builder, builds pangenome variation graphs from a set of input
sequences. This is upstream's build of commit 4225c6c on master (2026-07-24), newer than
the last tagged release, v0.7.4.
Usage:
singularity run pggb_202607241950514225c6.sif -i sequences.fa.gz -o output_dir -t 16
The image's other tools are apps: partition-before-pggb, wfmash, seqwish, smoothxg, odgi,
gfaffix, impg, vcfbub, vcfwave and agc, e.g.
singularity run --app odgi pggb_202607241950514225c6.sif stats -i graph.og -S
It also has vg 1.71.0, which pggb uses for -V; for vg itself, use the newer
library://ci-bot/bioinformatics/vg:1.78.0.
Documentation: https://pggb.readthedocs.io
This image has 10 apps. Pick one to see how to use it.
singularity run --app agc library://bioinformatics/pggb:202607241950514225c6
This works once you've added the registry as a remote (see the CLI tab). Add the app's arguments after the command. With Apptainer, start it with apptainer instead.
Help
Assembled Genomes Compressor: packs a collection of genome assemblies into one compact
.agc archive, from which single samples or contigs can be pulled quickly. pggb and
partition-before-pggb take an .agc archive as -i directly.
singularity run --app agc pggb_202607241950514225c6.sif create -t 16 -o genomes.agc \
ref.fa sample1.fa sample2.fa
singularity run --app agc pggb_202607241950514225c6.sif getset genomes.agc sample1 > sample1.fa
Upstream: https://github.com/refresh-bio/agc (v3.2.1)
Docs: https://github.com/refresh-bio/agc/blob/v3.2.1/README.md
Runs
exec agc "$@"
singularity run --app gfaffix library://bioinformatics/pggb:202607241950514225c6
This works once you've added the registry as a remote (see the CLI tab). Add the app's arguments after the command. With Apptainer, start it with apptainer instead.
Help
Collapses walk-preserving shared affixes (redundant prefixes and suffixes of sibling
nodes) in a GFA graph without changing the sequences its paths spell. pggb's last
normalisation step. Threads are --threads: -t names a transformation report file.
singularity run --app gfaffix pggb_202607241950514225c6.sif graph.smooth.gfa \
-o graph.fix.gfa --threads 16 > affixes.tsv
Upstream: https://github.com/marschall-lab/GFAffix (commit 460e0dd)
Docs: https://github.com/marschall-lab/GFAffix/blob/460e0dd798a9da7d12aef4f9181419d71489da95/README.md
Runs
exec gfaffix "$@"
singularity run --app impg library://bioinformatics/pggb:202607241950514225c6
This works once you've added the registry as a remote (see the CLI tab). Add the app's arguments after the command. With Apptainer, start it with apptainer instead.
Help
Implicit pangenome graph: projects a target range through all-vs-all alignments to
find the homologous range in every genome, without building a graph. Subcommands
include query, partition, refine, similarity, graph and stats. The PAF needs base-level
CIGARs with =/X (wfmash without -m, or minimap2 --eqx); -x makes the query transitive.
singularity run --app impg pggb_202607241950514225c6.sif query -a alignments.paf \
-r 'HG002#1#chr1:1000000-1100000' -x > homologous.bed
Upstream: https://github.com/pangenome/impg (commit f773342)
Docs: https://github.com/pangenome/impg/blob/f773342a75da244f05bc93663857b77c3bc8a9f7/README.md
Runs
exec impg "$@"
singularity run --app odgi library://bioinformatics/pggb:202607241950514225c6
This works once you've added the registry as a remote (see the CLI tab). Add the app's arguments after the command. With Apptainer, start it with apptainer instead.
Help
Toolkit for large pangenome graphs: build (GFA to .og), stats, viz, layout, draw,
extract, paths, untangle and more (odgi --help lists them). pggb uses it for its
statistics and pictures.
singularity run --app odgi pggb_202607241950514225c6.sif build -t 16 -g graph.gfa -o graph.og
singularity run --app odgi pggb_202607241950514225c6.sif stats -i graph.og -S
Upstream: https://github.com/pangenome/odgi (commit 405be8f, v0.9.4 plus 2 commits, from
smoothxg's submodule)
Docs: https://odgi.readthedocs.io
Runs
exec odgi "$@"
singularity run --app partition-before-pggb library://bioinformatics/pggb:202607241950514225c6
This works once you've added the registry as a remote (see the CLI tab). Add the app's arguments after the command. With Apptainer, start it with apptainer instead.
Help
Maps all input sequences with wfmash and splits them into communities, which for
whole-genome assemblies are usually the chromosomes. It writes one FASTA per community
and prints the pggb command to run on each. Takes pggb's options; the input needs a
samtools faidx index, or can be an .agc archive.
singularity run --app partition-before-pggb pggb_202607241950514225c6.sif \
-i sequences.fa.gz -o partitions -t 16
Docs: https://pggb.readthedocs.io/en/latest/rst/tutorials/sequence_partitioning.html
Runs
exec partition-before-pggb "$@"
singularity run --app seqwish library://bioinformatics/pggb:202607241950514225c6
This works once you've added the registry as a remote (see the CLI tab). Add the app's arguments after the command. With Apptainer, start it with apptainer instead.
Help
Induces a variation graph (GFA) from sequences and their pairwise alignments, by
transitive closure of the alignment matches. pggb's second step.
singularity run --app seqwish pggb_202607241950514225c6.sif -t 16 -s sequences.fa.gz \
-p alignments.paf -k 23 -g graph.seqwish.gfa
Upstream: https://github.com/pangenome/seqwish (commit aab5bee)
Docs: https://github.com/pangenome/seqwish/blob/aab5beeb8d734134dfb7cc0c44fc5a38cb580a4b/README.md
Runs
exec seqwish "$@"
singularity run --app smoothxg library://bioinformatics/pggb:202607241950514225c6
This works once you've added the registry as a remote (see the CLI tab). Add the app's arguments after the command. With Apptainer, start it with apptainer instead.
Help
Normalises a variation graph: finds collinear blocks, realigns each with partial order
alignment (POA) and splices the results back in. pggb's third step; -r is the number
of haplotypes.
singularity run --app smoothxg pggb_202607241950514225c6.sif -t 16 -r 9 \
-g graph.seqwish.gfa -o graph.smooth.gfa
Upstream: https://github.com/pangenome/smoothxg (commit 0ea0470)
Docs: https://github.com/pangenome/smoothxg/blob/0ea0470a6034b29776689b05b75916c609d06d1e/README.md
Runs
exec smoothxg "$@"
singularity run --app vcfbub library://bioinformatics/pggb:202607241950514225c6
This works once you've added the registry as a remote (see the CLI tab). Add the app's arguments after the command. With Apptainer, start it with apptainer instead.
Help
Filters the nested bubbles in a VCF from vg deconstruct, e.g. keeping only top-level
sites (-l 0) and dropping sites with alleles longer than -a. pggb runs it on its -V
output.
singularity run --app vcfbub pggb_202607241950514225c6.sif -l 0 -a 100000 \
--input graph.vcf.gz > graph.bub.vcf
Upstream: https://github.com/pangenome/vcfbub (commit 7728965)
Docs: https://github.com/pangenome/vcfbub/blob/77289654b246a4e3422902d04277e258d9fabe9a/README.md
Runs
exec vcfbub "$@"
singularity run --app vcfwave library://bioinformatics/pggb:202607241950514225c6
This works once you've added the registry as a remote (see the CLI tab). Add the app's arguments after the command. With Apptainer, start it with apptainer instead.
Help
Realigns each record's REF and ALT alleles with the wavefront algorithm (WFA) and
splits complex records into their primitive alleles, keeping genotypes. pggb runs it
after vcfbub to decompose its -V output.
singularity run --app vcfwave pggb_202607241950514225c6.sif -I 1000 -t 4 \
graph.bub.vcf > graph.decomposed.vcf
Upstream: https://github.com/vcflib/vcflib (commit b118a9b)
Docs: https://github.com/vcflib/vcflib/blob/b118a9bfd99b07da9d40d0bd8b3c2bdc4523b568/doc/vcfwave.md
Runs
exec vcfwave "$@"
singularity run --app wfmash library://bioinformatics/pggb:202607241950514225c6
This works once you've added the registry as a remote (see the CLI tab). Add the app's arguments after the command. With Apptainer, start it with apptainer instead.
Help
Whole-genome aligner: MashMap-style mapping, then base-level alignment with the
wavefront algorithm (WFA), written as PAF. pggb's first step. The target FASTA needs a
samtools faidx index; given one file, it aligns all against all.
singularity run --app wfmash pggb_202607241950514225c6.sif -t 16 -p 90 -s 5k -Y '#' \
sequences.fa.gz > alignments.paf
Upstream: https://github.com/waveygang/wfmash (v0.14.1)
Docs: https://github.com/waveygang/wfmash/blob/v0.14.1/README.md
Runs
exec wfmash "$@"
Bootstrap: docker
From: ghcr.io/pangenome/pggb:202607241950514225c6
%labels
Maintainer IDIA <support@ilifu.ac.za>
Version 202607241950514225c6
Commit 4225c6c
Source https://github.com/pangenome/pggb
%help
PGGB, the PanGenome Graph Builder, builds pangenome variation graphs from a set of input
sequences. This is upstream's build of commit 4225c6c on master (2026-07-24), newer than
the last tagged release, v0.7.4.
Usage:
singularity run pggb_202607241950514225c6.sif -i sequences.fa.gz -o output_dir -t 16
The image's other tools are apps: partition-before-pggb, wfmash, seqwish, smoothxg, odgi,
gfaffix, impg, vcfbub, vcfwave and agc, e.g.
singularity run --app odgi pggb_202607241950514225c6.sif stats -i graph.og -S
It also has vg 1.71.0, which pggb uses for -V; for vg itself, use the newer
library://ci-bot/bioinformatics/vg:1.78.0.
Documentation: https://pggb.readthedocs.io
%runscript
exec pggb "$@"
%apprun partition-before-pggb
exec partition-before-pggb "$@"
%apphelp partition-before-pggb
Maps all input sequences with wfmash and splits them into communities, which for
whole-genome assemblies are usually the chromosomes. It writes one FASTA per community
and prints the pggb command to run on each. Takes pggb's options; the input needs a
samtools faidx index, or can be an .agc archive.
singularity run --app partition-before-pggb pggb_202607241950514225c6.sif \
-i sequences.fa.gz -o partitions -t 16
Docs: https://pggb.readthedocs.io/en/latest/rst/tutorials/sequence_partitioning.html
%apprun wfmash
exec wfmash "$@"
%apphelp wfmash
Whole-genome aligner: MashMap-style mapping, then base-level alignment with the
wavefront algorithm (WFA), written as PAF. pggb's first step. The target FASTA needs a
samtools faidx index; given one file, it aligns all against all.
singularity run --app wfmash pggb_202607241950514225c6.sif -t 16 -p 90 -s 5k -Y '#' \
sequences.fa.gz > alignments.paf
Upstream: https://github.com/waveygang/wfmash (v0.14.1)
Docs: https://github.com/waveygang/wfmash/blob/v0.14.1/README.md
%apprun seqwish
exec seqwish "$@"
%apphelp seqwish
Induces a variation graph (GFA) from sequences and their pairwise alignments, by
transitive closure of the alignment matches. pggb's second step.
singularity run --app seqwish pggb_202607241950514225c6.sif -t 16 -s sequences.fa.gz \
-p alignments.paf -k 23 -g graph.seqwish.gfa
Upstream: https://github.com/pangenome/seqwish (commit aab5bee)
Docs: https://github.com/pangenome/seqwish/blob/aab5beeb8d734134dfb7cc0c44fc5a38cb580a4b/README.md
%apprun smoothxg
exec smoothxg "$@"
%apphelp smoothxg
Normalises a variation graph: finds collinear blocks, realigns each with partial order
alignment (POA) and splices the results back in. pggb's third step; -r is the number
of haplotypes.
singularity run --app smoothxg pggb_202607241950514225c6.sif -t 16 -r 9 \
-g graph.seqwish.gfa -o graph.smooth.gfa
Upstream: https://github.com/pangenome/smoothxg (commit 0ea0470)
Docs: https://github.com/pangenome/smoothxg/blob/0ea0470a6034b29776689b05b75916c609d06d1e/README.md
%apprun odgi
exec odgi "$@"
%apphelp odgi
Toolkit for large pangenome graphs: build (GFA to .og), stats, viz, layout, draw,
extract, paths, untangle and more (odgi --help lists them). pggb uses it for its
statistics and pictures.
singularity run --app odgi pggb_202607241950514225c6.sif build -t 16 -g graph.gfa -o graph.og
singularity run --app odgi pggb_202607241950514225c6.sif stats -i graph.og -S
Upstream: https://github.com/pangenome/odgi (commit 405be8f, v0.9.4 plus 2 commits, from
smoothxg's submodule)
Docs: https://odgi.readthedocs.io
%apprun gfaffix
exec gfaffix "$@"
%apphelp gfaffix
Collapses walk-preserving shared affixes (redundant prefixes and suffixes of sibling
nodes) in a GFA graph without changing the sequences its paths spell. pggb's last
normalisation step. Threads are --threads: -t names a transformation report file.
singularity run --app gfaffix pggb_202607241950514225c6.sif graph.smooth.gfa \
-o graph.fix.gfa --threads 16 > affixes.tsv
Upstream: https://github.com/marschall-lab/GFAffix (commit 460e0dd)
Docs: https://github.com/marschall-lab/GFAffix/blob/460e0dd798a9da7d12aef4f9181419d71489da95/README.md
%apprun impg
exec impg "$@"
%apphelp impg
Implicit pangenome graph: projects a target range through all-vs-all alignments to
find the homologous range in every genome, without building a graph. Subcommands
include query, partition, refine, similarity, graph and stats. The PAF needs base-level
CIGARs with =/X (wfmash without -m, or minimap2 --eqx); -x makes the query transitive.
singularity run --app impg pggb_202607241950514225c6.sif query -a alignments.paf \
-r 'HG002#1#chr1:1000000-1100000' -x > homologous.bed
Upstream: https://github.com/pangenome/impg (commit f773342)
Docs: https://github.com/pangenome/impg/blob/f773342a75da244f05bc93663857b77c3bc8a9f7/README.md
%apprun vcfbub
exec vcfbub "$@"
%apphelp vcfbub
Filters the nested bubbles in a VCF from vg deconstruct, e.g. keeping only top-level
sites (-l 0) and dropping sites with alleles longer than -a. pggb runs it on its -V
output.
singularity run --app vcfbub pggb_202607241950514225c6.sif -l 0 -a 100000 \
--input graph.vcf.gz > graph.bub.vcf
Upstream: https://github.com/pangenome/vcfbub (commit 7728965)
Docs: https://github.com/pangenome/vcfbub/blob/77289654b246a4e3422902d04277e258d9fabe9a/README.md
%apprun vcfwave
exec vcfwave "$@"
%apphelp vcfwave
Realigns each record's REF and ALT alleles with the wavefront algorithm (WFA) and
splits complex records into their primitive alleles, keeping genotypes. pggb runs it
after vcfbub to decompose its -V output.
singularity run --app vcfwave pggb_202607241950514225c6.sif -I 1000 -t 4 \
graph.bub.vcf > graph.decomposed.vcf
Upstream: https://github.com/vcflib/vcflib (commit b118a9b)
Docs: https://github.com/vcflib/vcflib/blob/b118a9bfd99b07da9d40d0bd8b3c2bdc4523b568/doc/vcfwave.md
%apprun agc
exec agc "$@"
%apphelp agc
Assembled Genomes Compressor: packs a collection of genome assemblies into one compact
.agc archive, from which single samples or contigs can be pulled quickly. pggb and
partition-before-pggb take an .agc archive as -i directly.
singularity run --app agc pggb_202607241950514225c6.sif create -t 16 -o genomes.agc \
ref.fa sample1.fa sample2.fa
singularity run --app agc pggb_202607241950514225c6.sif getset genomes.agc sample1 > sample1.fa
Upstream: https://github.com/refresh-bio/agc (v3.2.1)
Docs: https://github.com/refresh-bio/agc/blob/v3.2.1/README.md
%test
command -v pggb >/dev/null || exit 1
for app in partition-before-pggb wfmash seqwish smoothxg odgi gfaffix impg vcfbub \
vcfwave agc; do
command -v "$app" >/dev/null || exit 1
done
Download bioinformatics-pggb_202607241950514225c6.def
#!/bin/sh
exec pggb "$@"
#!/bin/sh
command -v pggb >/dev/null || exit 1
for app in partition-before-pggb wfmash seqwish smoothxg odgi gfaffix impg vcfbub \
vcfwave agc; do
command -v "$app" >/dev/null || exit 1
done
# /.singularity.d/env/10-docker2singularity.sh
#!/bin/sh
export PATH="/opt/venv/bin:/root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"