Rename the `obikmer` binary, crate, and documentation to `obiskim`. This change updates all references in source code, build scripts, CI workflows, and user documentation to reflect the new tool name. - Move `src/obikmer` to `src/obiskim`, renaming the package and binary in `Cargo.toml` and updating `main.rs` and `cli.rs` to use the new name. - Update `src/Cargo.toml` and `src/Cargo.lock` to replace the `obikmer` workspace member with `obiskim`. - Update `Makefile` targets (`build`, `release`, `debug`, `profile-build`) and variables (`CARGO_TOML`, `bump-version`) to build and manage `obiskim`. - Update `.gitea/workflows/release.yml` to build and upload `obiskim` artifacts for Linux and macOS. - Rename all files in `src/obiskim/src/cmd/` from `obikmer` to `obiskim` paths, updating error messages and help text in `index/mod.rs`, `phylo/args/mod.rs`, and `phylo/tnt.rs`. - Update documentation in `UserDocMD/` (including `index.md`, `installation.md`, `architecture.md`, and usage guides) to reference `obiskim` commands and behavior. - Update `benchmark/` scripts and Python verification tools to use `obiskim` binary paths and arguments. - Update `scripts/` (including `smoke_test_*.sh`, `bench_merge_oracle.sh`, and Docker debug scripts) to test and build `obiskim`. - Update comments and error messages in library crates (`obicompactvec`, `obifastwrite`, `obikentropy`, `obikfilter`, `obikindex`, `obikindexer`, `obikphylo`, `obikselect`, `obikseq`, `obiread`, `obisys`) to reference `obiskim`.
32 lines
924 B
Bash
Executable File
32 lines
924 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Usage: verify_one_count.sh SPECIMEN
|
|
# SPECIMEN = "species--strain" (Make pattern stem)
|
|
# Output: stats/verify_count/SPECIMEN.stats (one CSV data row, no header)
|
|
set -euo pipefail
|
|
|
|
SPECIMEN="$1"
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
RUN_DIR="${SCRIPT_DIR}/run"
|
|
BINARY="${SCRIPT_DIR}/../src/target/release/obiskim"
|
|
PYTHON="${SCRIPT_DIR}/../.venv/bin/python3"
|
|
VERIFY_PY="${SCRIPT_DIR}/verify_count.py"
|
|
|
|
species="${SPECIMEN%%--*}"
|
|
strain="${SPECIMEN#*--}"
|
|
|
|
REF_NPZ="${RUN_DIR}/reference_index/${SPECIMEN}.npz"
|
|
INDEX_DIR="${RUN_DIR}/specimen_index_count/${SPECIMEN}"
|
|
STATS_DIR="${RUN_DIR}/stats/verify_count"
|
|
STATS_FILE="${STATS_DIR}/${SPECIMEN}.stats"
|
|
|
|
mkdir -p "${STATS_DIR}"
|
|
|
|
echo "[${SPECIMEN}] verifying count"
|
|
|
|
"${PYTHON}" "${VERIFY_PY}" \
|
|
--obiskim "${BINARY}" \
|
|
--species "${species}" \
|
|
--strain "${strain}" \
|
|
"${REF_NPZ}" "${INDEX_DIR}" \
|
|
>"${STATS_FILE}"
|