Skip to content

Benchmarking

Michael Gruenstaeudl, PhD edited this page Nov 19, 2026 · 1 revision

Benchmarking datasets

From the repository root, run one script for each selection mode:

# CDS
python benchmarking/benchmarking_CDS.py benchmark_YangEtAl2022_Asteraceae 5
# INT
python benchmarking/benchmarking_INT.py benchmark_YangEtAl2022_Asteraceae 5
# IGS
python benchmarking/benchmarking_IGS.py benchmark_YangEtAl2022_Asteraceae 5
  • Dataset benchmark_ZhangNNEtAl2025_53angiosperms: the same 53-angiosperm dataset used by Zhang et al. 2025.
  • Datasets benchmark_YangEtAl2022_Asteraceae.tar.gz, benchmark_YangEtAl2022_monocots, and benchmark_YangEtAl2022_angiosperms: all Asteraceae (n=155), monocots (n=733), and angiosperms (n=2,585), respectively, listed by Yang et al. 2022.
  • Dataset benchmark_ZhangNNEtAl2025_13724angiosperms: 13,724 rather than 13,731 angiosperms from Zhang et al. 2025. It excludes records removed from NCBI RefSeq during standard annotation processing: AC_000188, NC_029253, NC_029254, NC_029331, NC_029333, NC_071962, and NC_085618.

Input datasets and output

Each script accepts a dataset directory or a Zenodo dataset name as its first argument, followed by a positive CPU count. If the supplied value does not resolve to an existing directory, the script downloads <dataset-name>.tar.gz from Zenodo record 17137737 and extracts it under benchmarking/. The selected dataset directory must contain GenBank .gb files directly inside it.

Each script runs only its corresponding mode (CDS, intron, or intergenic spacer); there is no separate mode argument. Results are written under benchmarking/ in <dataset-name>_output_<MODE>_<threads>threads, where <MODE> is CDS, INT, or IGS.

Install the package dependencies and an external alignment program (MAFFT by default) before running a benchmark. Each runner launches python -m plastburstalign as a subprocess and does not import Python's resource module. On native Windows, use a compatible alignment executable and configure it as needed.

How the benchmarking datasets were created

The Yang et al. Asteraceae GenBank files can also be fetched from NCBI using Entrez Direct. On Debian, install it with apt install ncbi-entrez-direct. The accession list Accession_numbers_Asteraceae_YangEtAl2022.txt is not included in this repository; obtain it separately and place it in benchmarking/benchmarking1/. From the repository root, run:

mkdir -p benchmarking/benchmarking1
cd benchmarking/benchmarking1
while IFS= read -r accn; do
  efetch -db nucleotide -id "$accn" -format gb > "${accn}.gb" 2>>log.txt
done < Accession_numbers_Asteraceae_YangEtAl2022.txt

Alternatively, the benchmark scripts can download and extract the prepackaged datasets from Zenodo as described below.

Clone this wiki locally