Skip to content

Home

pavvis

pavvis is a Python package for analysing and visualising gene Presence/Absence Variation (PAV) data from pangenome studies.

pavvis was designed to be easy to use and optimised for large-scale genomic datasets. To get the best use out of this Python package, we recommend reading through our concepts page, that will help you to understand the data structures associated with all analysis in this Python package.

Plotting modules

Module Description
Presence Gene presence frequency histograms and per-sample gene count plots
Curves Pangenome accumulation curves and Jaccard similarity curves
Variable Genes Frequency distributions and exclusive gene bar charts
UMAP 2D and 3D UMAP embeddings of sample PAV profiles
Heatmap PAV matrix and sample similarity heatmaps
PCoA Principal coordinates ordination, scree, group centroid and dispersion plots

Statistics modules

Module Description
Indicator Genes IndVal.g indicator gene analysis with permutation tests and FDR
PERMANOVA PERMANOVA and dispersion (PERMDISP) tests on Jaccard distance

Quick start

Getting started with pavvis.
from pavvis import PavMatrix
import pavvis.plots.presence as presence

pm = PavMatrix("pav_matrix.csv", "metadata.csv")
print(pm)
# PavMatrix(34295 genes × 1039 samples)

print(pm.gene_counts)
# {'core': 2, 'soft_core': 252, 'dispensable': 9853, 'private': 24186, 'absent': 2}

presence.frequency_histogram(pm).show()