Update the project name, binary, and all associated documentation, scripts, and configuration files from `obikmer` to `obiskim`. This change ensures consistency across the codebase, including lock files, VCF outputs, benchmark targets, and user-facing documentation. - Update `mkdocs.yml` and `.crate-kit/VERSION` to reflect the new project name and version 0.3.4. - Rename all references in `DevDocMD/` documentation, including architecture, implementation, and theory sections, from `obikmer` to `obiskim`. - Update `UserDocMD/` files to use `.obiskim.lock` and `.obiskim.gate` for lock files, and update VCF contig IDs to `obiskim_<partition>_<layer>`. - Modify `benchmark/` scripts and Makefiles to use `obiskim` binary names and `obiskim_dist/` directories for distribution and comparison tasks. - Update `prompts/` files to reference the `obiskim` repository and commands instead of `obikmer`. - Rename temporary directories in `scripts/` smoke tests from `obikmer_*` to `obiskim_*`. - Update `src/obikphylo/src/siblings/algorithms/alignment_vcf.rs` to use `obiskim` in VCF source identifiers and assertions. - Update `src/obiskim/Cargo.toml` version to 1.4.9 and update `src/obiskim/src/cmd/phylo/args/outputs.rs` documentation. - Update `src/obisys/src/lock.rs` to use `.obiskim.lock`, `.obiskim.gate`, and `.obiskim.promote` file names.
35 lines
1.2 KiB
Bash
Executable File
35 lines
1.2 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Usage: simulate_query_one.sh genome.fna.gz output_dir
|
|
# Simulates a fixed-size paired-end HiSeq read set for the query benchmark.
|
|
# Unlike simulate_one.sh (coverage-proportional, used to build the indexed
|
|
# specimens), this always draws N_READS pairs regardless of genome size —
|
|
# query benchmark numbers (wall/RSS) must stay comparable across genomes of
|
|
# very different sizes. Independent iss run (unseeded), so error draw
|
|
# differs from any simulated_data/ reads for the same genome.
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
ISS="${SCRIPT_DIR}/../.venv/bin/iss"
|
|
N_READS=100000
|
|
CPUS="${CPUS:-$(sysctl -n hw.logicalcpu 2>/dev/null || nproc 2>/dev/null || echo 2)}"
|
|
|
|
genome_file="$1"
|
|
out_dir="$2"
|
|
|
|
mkdir -p "${out_dir}"
|
|
|
|
tmp_fasta=$(mktemp "${TMPDIR:-/tmp}/obiskim_XXXXXX.fna")
|
|
trap 'rm -f "${tmp_fasta}"' EXIT
|
|
|
|
gzip -dc "${genome_file}" > "${tmp_fasta}"
|
|
|
|
echo "[${out_dir}] ${N_READS} read pairs (query benchmark, fixed size)"
|
|
|
|
"${ISS}" generate \
|
|
--genomes "${tmp_fasta}" \
|
|
--model HiSeq \
|
|
--n_reads "${N_READS}" \
|
|
--cpus "${CPUS}" \
|
|
--compress \
|
|
--output "${out_dir}/reads"
|