Supplementary Datasets for 'The Portable Microhaplotype Object and Tools' manuscript

This archive contains five example datasets used in the accompanying manuscript. Each folder contains the Portable Microhaplotype Object (PMO) for each dataset and, where applicable, the raw data and Jupyter notebooks used to generate them. This README describes the structure and contents of each folder.

Overview of Included Datasets 

The archive contains the following 5 datasets: 

1. Dataset1/
Public genomic surveillance data of Plasmodium falciparum from four countries: Eswatini, Namibia, South Africa, and Zambia. This folder contains input files, intermediate PMOs, and processing notebooks (Aranda-Díaz et al. 2025a; Eloff et al. 2025; Nhlengethwa et al. 2025; Raman et al. 2025).
Files and subdirectories: 
* Input files for PMO construction. These files serve as inputs to dataset1_pmo_generation.ipynb 
	* a52_pools.tsv
	* ab2_pools.tsv 
	* specimen_info.tsv
	* library_sample_info.tsv
	* allele_data.txt
* Jupyter Notebooks 
	* dataset1_pmo_generation.ipynb - this shows an example of processing the input files above and converting to PMO using pmotools-python to produce dataset1_pmo.json.gz 
	* dataset1_figure_generation.ipynb - this notebook is a guide to how figure3 was created from dataset1_pmo.json.gz using pmotools-python to interogate and filter the PMO file. This is not novel analysis and is only meant to show how simple metrics can be easily produced from a PMO and powerful analysis can be done easily when all components are stored and curated together. The notebook is first used to perform some filtering and QC to generate dataset1_pmo_qc_pass.json.gz. This file is then used to generate allele frequencies for k13 P441L at different levels of granularity (per country, per Zambian province). 
* PMO files 
	* dataset1_pmo.json.gz - this is the initial PMO created containing all of the data. 
	* dataset1_pmo_qc_pass.json.gz - this PMO contained de-replicated QC pass sample data. 
* drug_res_results/
	* sl_summary_per_country.tsv - this contains single-locus allele frequencies for k13 P441L per country
	* sl_summary_per_province.tsv - this contains single-locus allele frequencies per province in Zambia
	* These files were generated by dataset1_figure_generation.ipynb and are used to create Figure 3 C-D
* figure3/ 
	* This contains the plots generated directly from dataset1_figure_generation.ipynb and the composed figure put all together.

2. ANOSPP/ 
Anopheles and Plasmodium data obtained from 4128 mosquito samples from Gabon that were sequenced as part of the ANOSPP (ANOpheles SPecies identification and Plasmodium detection) project (Makunin et al. 2022). 
Contents:
* anospp/
	* Folder of the raw microhaplotype and metadata inputs, stored in excel spreadsheets and tables.
* anospp.ipynb - this jupyter notebook processes the data in anospp and converts to the PMO. 
* anospp_pmo.json.gz - this is the output PMO file.

3. E_coli/
Contains the PMO for the E. coli dataset - e_coli_coliseq_PMO.json.gz. This PMO was contructed from SRA-sourced data  (Williamson et al. 2024). 

4. mips_v_mad4hatter/
Contains the PMO containing specimens that were sequenced using both the MAD4HatTeR amplicon sequencing and the DR23K molecular inversion probe (MIP) assay (Katairo et al. 2025).

5. S_aureus/
Contains the PMO for the S. aureus dataset - Furstenau2025_PMO.json.gz. This PMO was contructed from SRA-sourced data (Furstenau et al. 2025).
