Introduces a `batch_int_group_stats` API for computing presence counts, sums, minimums, and maximums across sparse and dense matrix representations. The selection layer now utilizes this batched approach to optimize aggregation semantics for boolean and numeric operations. Additionally, reorganizes the benchmarking infrastructure to support querying across presence and count index variants in both dense and sparse formats, including new packing scripts and updated statistics aggregation.
29 lines
852 B
Bash
Executable File
29 lines
852 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Usage: verify_query_one.sh SPECIMEN
|
|
# SPECIMEN = "species--strain" (Make pattern stem)
|
|
# Output: stats/verify_query/SPECIMEN.stats (one CSV data row, no header)
|
|
set -euo pipefail
|
|
|
|
SPECIMEN="$1"
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
PYTHON="${SCRIPT_DIR}/../.venv/bin/python3"
|
|
VERIFY_PY="${SCRIPT_DIR}/verify_query.py"
|
|
|
|
species="${SPECIMEN%%--*}"
|
|
strain="${SPECIMEN#*--}"
|
|
|
|
DENSE="${SCRIPT_DIR}/query_presence_dense/${SPECIMEN}.fasta.gz"
|
|
SPARSE="${SCRIPT_DIR}/query_presence_sparse/${SPECIMEN}.fasta.gz"
|
|
STATS_DIR="${SCRIPT_DIR}/stats/verify_query"
|
|
STATS_FILE="${STATS_DIR}/${SPECIMEN}.stats"
|
|
|
|
mkdir -p "${STATS_DIR}"
|
|
|
|
echo "[${SPECIMEN}] verifying query (dense vs sparse)"
|
|
|
|
"${PYTHON}" "${VERIFY_PY}" \
|
|
--species "${species}" \
|
|
--strain "${strain}" \
|
|
"${DENSE}" "${SPARSE}" \
|
|
>"${STATS_FILE}"
|