Changelog¶
All notable changes to MucOneUp will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[0.53.1] - 2026-11-13¶
Changed¶
- The repository moved to the
vntyper-orgorganisation; the README, docs and citation point at https://github.com/vntyper-org/MucOneUp and the docs site at https://vntyper-org.github.io/MucOneUp/ (#215). - The README is shorter; install and citation details live in the docs (#222).
- Docs use research-use wording and describe the biology and the sequencing problem directly (#225).
Added¶
LICENSEfile with the MIT terms already declared inpyproject.toml(#222).
Dependencies¶
- Security and maintenance updates: urllib3 2.8.0, idna 3.15, requests 2.33.0, certifi 2026.10.18, pygments 2.20.0; dev: pytest 9.0.3, pymdown-extensions 11.0.1.
[0.53.0] - 2026-11-10¶
Added¶
- Read profile
ont_r10_sup_amplicon_v4:_v3witherrors.strand_ratesand the whole-unit stutter refitted (#131). On the MucSim-Bench standard set (30 cases, MucOneSpan's symmetric realism scoring from MucOneSpan #93) the span-offset Jensen-Shannon distance falls from 0.086 / 0.107 to 0.075 / 0.076 (< 55 / ≥ 55 units; limit 0.1), and every per-strand error rate is within 2% of its target (_v3:+deletions +7%)._v1–_v3are unchanged. helpers/calibrate_read_profile.py --fit-unit-stutter ROUNDS --vntr START ENDrefits the unit stutter by simulation, so that simulated reads measured with the real profiler's anchor rule reproduce its per-allele stutter ratios (provenance.unit_stutter_fit.refit).calibration_report.strand_fitrecords the template's homopolymer runs against the target's (runs_per_60bp) (#131).
Fixed¶
- The
_v2/_v3per-strand rates were fitted on a template with fewer C7 runs than real alleles (0.54 against 0.62 per 60 bp), so+reads lost too many bases on real-like alleles;_v4fits on a template with real-like runs. The_v3unit stutter read the real profiler's −1 unit ratio, which also counts the main peak's left edge, as pure slippage;_v4fits 0.0016 instead of 0.0024 per unit (#131).
Documentation¶
- The quick start, home page and README point at the read profiles; the realistic-reads guide has a calibration-status table for every profile (#212, #213).
[0.52.0] - 2026-11-10¶
Added¶
- Whole-repeat-unit PCR stutter in the molecule model (#131):
molecules.unit_stutter_rate(per VNTR unit) andunit_stutter_pmf(signed units). A full amplicon product deletes or duplicates whole repeat units at the haplotype's real unit boundaries. Stutter products have truth kindsmearand detailunit_stutter:k:a-b. Off by default, so seeded outputs without it are unchanged. - Read profile
ont_r10_sup_amplicon_v3:_v2plus unit stutter fitted from the PRJEB92208 per-allele stutter ratios (0.0024 per unit; −1/−2/+1 units 78/16/6%). On the MucSim-Bench standard set (30 cases) the span-offset Jensen-Shannon distance falls from 0.186 / 0.187 to 0.162 / 0.181 (< 55 / ≥ 55 units; target ≤ 0.1); per-strand error rates are unchanged._v1and_v2are unchanged. There is no genomic_v3: WGS has no PCR and its target has 27 on-peak reads. helpers/calibrate_read_profile.py --fit-unit-stutterfits the unit stutter fromper_allele_stutter_and_length_noiseand records it inprovenance.unit_stutter_fit(#131).
[0.51.0] - 2026-11-10¶
Added¶
- Read profiles
ont_r10_sup_amplicon_v2andont_r10_genomic_v2with per-strand error rates (#131). Real R10.4.1 errors are strand-asymmetric (amplicon deletions 1.14% on+, 0.49% on-), but the_v1error channel was symmetric: on the MucSim-Bench standard set (30 cases each),_v1missed+mismatches by -30% and-deletions by +39% (genomic:-mismatches -27%,-insertions +40%). With_v2, every per-strand mismatch, insertion and deletion rate is within 11% of its target. The_v1profiles are unchanged, so runs made with them reproduce. Use_v2for new work. errors.strand_ratesin read profiles: optional+/-overrides of the empirical channel's mismatch, insertion and deletion rates (#131).helpers/calibrate_read_profile.py --fit-strand-rates ROUNDSfitserrors.strand_ratesagainsterror_rates_per_ref_base["<strand>:<type>"]and records the rounds incalibration_report.strand_fit(#131).
Changed¶
config.jsonusesdownsample_mode: "vntr", the code default. Itsnon_vntrsetting gave a 697.5x VNTR against 150.7x on the capture BED;vntrgives 204.2x against 150.7x (#88).- Library API:
simulate_reads()now applies aread_modelprofile'sconfig_overridesand platform check, as the CLI does. Configs that relied on these being skipped give different reads (#128).
Fixed¶
- A read profile is now loaded once per run and checked against the
read_model.sha256recorded when it was applied; a profile edited on disk mid-run raises an error instead of being used silently (#128). - A
read_modelin a config passed tosimulate_reads()(library API) now gets the same platform check andconfig_overridesas the CLI (#128). reads ont --simulator pbsim3-fragmentsrejects a profile with amplicon-only molecule rates (smear, chimera, concatemer, off-target), which fragment mode would ignore (#128).
Documentation¶
- The genomic profiles' read lengths are a generic default, not a fit, so their VNTR-spanning fraction is not calibrated (#131).
- The Illumina downsampling keys (
downsample_mode,sample_target_bed,vntr_to_flanking_ratio,downsample_seed) are documented, with measured depths and the settings that match real Twist v2 exomes. There are still no off-target reads, so the read count stays about 5x lower (#88).
[0.50.1] - 2026-11-10¶
Seeded outputs change for haplotypes that contain L or R repeats.
Fixed¶
- Repeat units L, R and S now use the sequences from Vrbacká et al. 2025 (pristanna/muc1repeats). They came from the VNtyper motif set and each differed by 1 bp (#201).
Changed¶
dupA(60dupA) is also allowed on repeat C, where Vrbacká et al. 2025 report it (C:60dupA). RandomdupAtargets can now land on C (#201).
Tests¶
- The real-tool e2e golden checksums are re-measured for the new seed-42
haplotype (#179, #201). Reads from the same FASTA are byte-identical to
0.49.0. The read-tracking e2e test sets its molecule count in
ont_amplicon_params(#181).
[0.50.0] - 2026-11-10¶
Resolves the 2026-11-09 follow-up audit (issues #159–#201).
Seeded outputs change.
- The VNTR end block is now drawn from the transition table: V always
precedes 6/6p, and 6p can skip to 8 (#179).
- Amplicon and fragment long-read modes default to 30 molecules, using the
platform's own *_params.coverage instead of the Illumina target of 150
(#181).
- The Vrbacká variants insG_pos58, insG_pos54, insA_pos54 and
ins16bp now insert at the published position. insG_pos54 and
insA_pos54 target the new units bJ and aH (#190).
- The benign controls delCCC_benign and del3bp_pos30_benign delete
3 bp, not 4 (#159).
Breaking¶
- Duplicate mutation targets are now an error. The CLI used to drop them silently, and the Python API applied them twice (#166).
- Config validation is stricter: only
distribution: "normal"is accepted ("uniform"never worked; it gave fixed lengths), mutation positions must be ≥ 1, transition weights must be > 0, and transition targets must be known repeats orEND(#180). --coveragemust be > 0, and--threads,--read-number,--n-readsand--min-read-lengthmust be ≥ 1 (#169).- ONT without a human reference returns FASTQ instead of aligning to the simulated haplotypes (#183).
Fixed¶
- The benign deletion controls were frameshifts and were flagged as toxic (#159).
- hg19 runs use the hg19 VNTR region for capture bias instead of the hard-coded hg38 region, which dropped the reads (#160).
- Dual mode with
--input-structurereuses the file's targets and writes correct structure files (#161). - Ctrl-C and SIGTERM stop the external tools instead of leaving them running (#162). A failed pipe reports the stage that really failed (#165).
- A dead end in the repeat chain, or an end block that cannot reach 9,
raises
SimulationErrorinstead of returning a truncated haplotype (#167, #179). - Kept ONT haplotype FASTQs are prefixed with the sample name, so samples no longer overwrite each other (#168).
- Docker: NanoSim models load again (scikit-learn 0.23.2), pbsim3 model
paths resolve, and the image installs from
uv.lock(#175, #177, #191). - A missing explicit
human_referencefails before simulation, and PacBio no longer deletes the HiFi FASTQ when alignment fails (#176). - An unknown ReSeq version is treated as ReSeq2, so input is not chunked
(#182). The metadata
Seedrow records the seed actually used (#185). snapshot-validateno longer crashes on PCR failure, and 0 products are reported as a PCR failure instead of normal (#184).- pbsim3 accepts
accuracy_mean< 0.75 and validateslength_sd(#186). - The Vrbacká citation DOI is corrected (#178).
- PacBio and ONT amplicon defaults agree (threads 8, a clear error for a
missing PacBio
model_type), andanalyze statsreads.gz(#187).
Performance¶
- Read-source tracking streams its manifest: peak memory at 1M read pairs drops from 743 MB to 46 MB, with byte-identical output (#189).
- The homopolymer scan is about 4x faster (#188).
CI and tests¶
- The e2e tests detect the real
simulator.pyandpbsimbinaries, and all 7 pass with the real tools (#163, #192). - The Docker image is tested with a real
simulate+readsrun (#163). - Version tags on the image are set only on releases (#164).
- The scikit-learn CVEs that NanoSim cannot avoid are documented in
.trivyignore, with expiry dates (#175).
[0.49.0] - 2026-11-09¶
Resolves the 2026-11-09 codebase audit
(.planning/reports/2026-11-09-codebase-audit.md) in six workstreams.
Seeded outputs change. Repeat counts are now rounded instead of
truncated. Random SNP counts use stochastic rounding, so low densities no
longer give 0 SNPs every time. ONT pbsim3-fragments now treats --coverage
as the total over both haplotypes (it used to give about 2.3x the request)
and weights haplotypes by length. The empirical error model no longer
lengthens protected homopolymers without recording it. Unseeded runs now
draw a seed and record it in provenance.
Fixed¶
- Illumina simulation works again with real tools:
- Gapped pblat matches no longer make insert-length sampling impossible.
- The conda env, Docker image and
config.jsonran the legacy bioconda ReSeq 1.1 (since #156), which deadlocks above 10,000 fragments. They now use biocondareseq2=2.0.3. Iftools.reseqstill points at ReSeq 1.x,seqToIlluminainput is fed in batches of at most 10,000 fragments. The old 600 s cap on that step is gone. Existingenv_wessimenvironments needmamba install -n env_wessim -c bioconda reseq2=2.0.3. - All pipelines now resolve the alignment reference once, in one order:
human_reference_<asm>, thenhuman_reference, thenreference_genomes.<asm>.fasta_path. - VNTR downsampling and the VNTR capture model now keep read pairs together (no orphan mates). The VNTR BED is now correctly 0-based.
- Truth manifests:
- ONT read end coordinates come from the aligned length.
- Illumina reads are matched to fragments by name.
- A HiFi read takes the strand of its first subread.
- CLI:
- A duplicate
--mutation-targetsis no longer applied twice. - Conflicting or ignored option combinations now exit 1.
- Batch output-name collisions are rejected.
--random-snp-output-fileis written under--out-dir.reads --track-read-sourceno longer crashes when--out-dirdoes not exist yet.keep_intermediate_filesnow works in the amplicon and ONT pipelines. Illumina--no-align --track-read-sourcenow writes a manifest.- Config:
- The fingerprint no longer depends on the working directory and is computed once per run.
- The schema rejects repeat counts below 10 and non-integer mutation positions.
- Subprocesses:
- Timeouts now kill the whole process group.
- The failing pipeline stage's stderr is kept.
- The bwa and reseq timeouts default to none; the new
read_simulation.alignment_timeoutsets one. - The minimap2 index check now matches the index the aligner actually reuses.
- Reference helpers:
- Downloads and extractions are atomic and MD5-checked.
- Existing verified downloads are skipped.
- The GATK
.dictfile name is correct.
Changed¶
- CI installs from
uv.lock, installs samtools, and pins mypy and setup-uv. - The sdist shrank from 41 MB to 1.6 MB.
- The snapshot integration tests now run on simulated data instead of skipping.
- pysam is a new optional
trackingextra. - Test-data tarballs moved from git to GitHub Releases (
testdata-v0.25.0);data/testdata_releases/is now gitignored.make publish-testdatauploads a new dataset with a.sha256file, and the generator no longer writes an in-repo_latest/copy. Old blobs remain in git history.
Removed¶
- About 1,800 lines of dead or duplicated code: unused type aliases, a
test-only ORF pipeline, duplicate samtools and
reverse_complementhelpers, unused constants and helpers, and no-op tests.
[0.48.0] - 2026-10-19¶
Fixed¶
- Amplicon simulation pipelines (#147):
- Prevent duplicate read IDs in diploid PacBio/ONT amplicon runs when
--seedis set by deriving distinct per-haplotype seeds (seed + 1,seed + 2) and prefixing diploid pbsim3/empirical amplicon reads (hap1_,hap2_). - Reject polyploid FASTAs (>2 records) in diploid amplicon pipelines instead of silently dropping haplotype 3+; reject
--coverage< 2 in diploid amplicon runs before extraction. - Propagate original
ExternalToolErrorexceptions without double-wrapping, honourOutputConfig.out_dir/out_base, and clean up allpbsim3multi-template sidecars (*.fq.gz,*.maf.gz,*.ref). - External tool wrappers & VNTR efficiency (#148):
- Pass
--id-prefixtopbsim3to avoid read-ID collisions across diploid splits; remove duplicate coverage logging; validatemin_Bind(0.0 <= min_Bind <= 1.0) andmin_fragment_size <= max_fragment_sizeinprepare_fragments; validatethreads >= 1inreseq_wrapper. - Stream FASTA split output in
nanosim_wrapper.split_fasta_for_diploidviaSeqIO.parse; surface actualsamtoolsstderr on empty BAM/FASTQ outputs instead of masking with generic errors; remove redundantsamtools indexsubprocess invocation aftersamtools sort --write-index. - Include temp directory in
VNTREfficiencyModelcache path to prevent multi-user/tmpcollisions and add retry backoff when removing transient temp directories. - CLI read simulation options & pipeline routing (#149):
- Propagate
reads pacbio --coverageintoconfig["pacbio_params"]["coverage"]; inherit rootconfig["seed"]when--seedandread_simulation.seedare omitted; accept float--coverageacrossreads illumina,reads ont, andreads pacbio. - Wire
--threads(-t) and--no-alignonreads ampliconthroughpacbio_paramsandread_simulation; remove dead legacysimulate_readsdispatcher and simplifysimulate_reads_pipelinesignature. - Long-read pipelines, parsers & truth tracking (#127, #150):
- Honour
keep_intermediate_filesinpacbio_pipelineandont_pipeline; remove CCS report/metrics sidecars (*ccs_report.txt,*ccs_metrics.json,*.zmw_metrics.json.gz) during intermediate cleanup. - Reconcile PacBio HiFi and ONT source-tracking manifests with the final surviving FASTQ reads (preventing inflated manifest rows after CCS filtering or NanoSim split merging) and support post-filtering in
ReadSourceTracker.write_read_manifest. - Stream FASTQ reading/writing in
renumber_fastq_readsandparse_pacbio_readswithout buffering whole files in memory; reject polyploid (>2 record) FASTAs insplit_diploid_fasta; guard empty reference dicts inannotate_reads_from_umi. - SNP integration & coordinate translation (#151):
- Eliminate unconditional
set(range(seq_length))memory spike ingenerate_random_snpsby passingSequence[int]ranges directly (_SampledPositionsexclusions + binary search over VNTR bounds). - Preserve
HaplotypeResult._repeat_lengthsthroughintegrate_snps_unified. - Translate
--snp-input-filecoordinates across indel mutations in single-mutation mode and support multi-repeat indels in fallback repeat-length calculation via shared_translate_snps_to_mutated; accept haplotype indices >= 3 inparse_snp_filefor polyploid simulations. - Haplotype simulation, assembly & configuration (#152):
- Align
simulate_single_haplotypedead-end retry semantics withfrom_predefined_chains; validatemutation_targetssyntax (haplotype_index >= 1,repeat_index >= 1) andfixed_lengthspositivity before simulation. - Reject path separators and traversal in
--out-base(validate_out_base); validate--reference-assemblyagainst configured reference assemblies before simulation; replace fragilesys.path.inserthacks intests/conftest.py. - ORF analysis, translation & SNaPshot validation (#153):
- Use
orfipy_core.orfs()in-memory inrun_orf_finderinstead of spawningorfipyCLI subprocesses and temp directories; forward loaded config intoanalyze orfs; strip trailing*stop codons intranslate_dnabefore regex matching. - Propagate non-zero exit codes when
analyze orfsoranalyze statsfails across all inputs; clean upSnapshotValidator.validate()temporary directories usingtempfile.TemporaryDirectory. - Illumina fragment simulation & empirical error model (#154):
- Slice
Wessim2fragment start/end tendency arrays by actual nucleotide coordinates (frag_start:frag_end) rather than repeat-symbol indices (range(len(hr.chain))). - Raise
ValueErroron out-of-range nucleotide offsets inEmpiricalErrorModel.sample_indel; surfaceOSErrorfailures duringcleanup_intermediates; reduce unit test subprocess overhead. - Reference helper security hardening (#155):
- Validate download URLs (
https://scheme and trusted domain allowlist), enforce SHA-256 verification, stream downloads with a 500 MB size cap, and applyfilter="data"ontarfile.extractall()inhelpers/download_references.py. - Add
--preset(map-ont,map-hifi,asm20) tohelpers/install_references.pyso pre-built minimap2.mmiindexes match runtime preset filenames ({stem}_{preset}.mmi). - Packaging, CI & documentation (#156):
- Change default
reseqcommand inconfig.jsonfrom a hardcoded conda binary path to"reseq"; fixMakefiletargets (format,security,docs-serve) to useuv runandmuc_one_up; runpytest -m "not slow"in the CIcoveragejob so codecov uploads complete on schedule; update.trivyignoreand installation/quickstart documentation.
[0.47.0] - 2026-10-18¶
Fixed¶
- Mutation & sequence assembly (#134, #135):
- Preserve prior mutations and live per-repeat lengths across multiple targets and sequential
apply_mutationscalls viaHaplotypeResult._repeat_lengths; update repeat length after each step in multi-operation mutations; replace only the target repeat slice on non-strict symbol conversion. - Bound normal repeat-count rejection sampling (
1,000,000draws) and rejectmin_rep > max_rep; validatefixed_lengthscount insimulate_diploid; assemble haplotype sequences in \(O(N)\). - ORF & toxic protein detection (#136, #137):
- Clamp
composition_similarityto[0.0, 1.0]; enforcemin_nt_length = max(min_len, orf_min_aa * 3)inrun_orf_finder; strip constant flanks per ORF record so multi-ORF FASTAs in different frames or with SNP-modified flanks score identically regardless of record order. - Support configurable
snapshot.primary_primerand verify expected fluorophores inSnapshotValidator. - VNTR boundaries, repeat lengths & source tracking (#126, #138):
- Propagate exact mutated repeat lengths through
generate_simulation_statistics,write_simulation_statistics,ReadSourceTracker.from_simulation_results, andcompanion_stats_fields; unify VNTR boundary calculation (get_haplotype_vntr_bounds) acrosssimulation_statisticsandsnp_integrator, handling early-9termination without right flank and 0-bp repeat deletions. - Configuration, CLI RNG threading & dual-mode SNPs (#139, #140):
- Enforce single-CLI-entry config loading boundary; resolve relative NanoSim
training_data_pathprefixes; expandCONFIG_SCHEMAwithread_simulation,nanosim_params,pacbio_params,snapshot.primary_primer, andvalidation.mutant_extension. - Thread seeded
rngacross CLI simulation, mutation, and SNP integration (honoring both--seedandconfig["seed"]); implement exact per-repeat coordinate translation for dual-mode SNPs across indels and enforce 0-based SNP input coordinates (with 1-based haplotype indices). - Read simulator pipelines, truth tracking & wrappers (#129, #142, #143, #144, #145):
- Guard negative start coordinates in
amplicon_Clip, preserve diploid amplicon templates when only one haplotype extracts, makeStutterTable,MoleculeModel, andReadProfilehashable, and validate 2-record diploid FASTAs. - Compute minimum fragment probe overlap via
math.ceil(plen * bind), guard invalidbind/insert bounds, deduplicatereverse_complementand IUPAC primer matching (including ambiguous template bases) intosequence_utils.py, and fixEmpiricalErrorModelweighted sampling boundary. - Split VNTR and non-VNTR reads in a single
samtools view -L -Upass, honorseedacrossVNTREfficiencyModeland Stage 10/11 downsampling, and streamsamtools depthincheck_vntr_coverage. - Route ONT alignment through
minimap2_wrapper.align_reads_with_minimap2(..., exclude_flags=4), clamp extreme diploid PCR bias counts to[1, total - 1], and stream FASTA parsing inamplicon_extractoranddiploid_handler. - Escalate subprocess and pipeline timeouts (
SIGTERM->SIGKILL) across the entire process group (os.killpg), preserve upstream pipeline stage error messages, and validate tool parameters and non-empty outputs acrossbwa,ccs,pbsim3,ucsc, andsamtoolswrappers.
Removed¶
- Deleted dead modules and duplicate helpers (#134, #135, #137, #141, #142, #144, #145):
muc_one_up/validation.py,muc_one_up/bioinformatics/validation.py,muc_one_up/probabilities.py,muc_one_up/cli/source_tracking_setup.py,rebuild_haplotype_sequence,estimate_hifi_yield,_count_fastq_reads,align_ont_reads_with_minimap2, and duplicatereverse_complement/compimplementations.
[0.46.0] - 2026-09-24¶
Breaking change: read profile format¶
Custom read profiles with an errors section (empirical error channel) must
be updated (#132). Without these, homopolymer runs could be simulated
error-free, so such profiles are now rejected with a message that points to
the calibration helper and the
Homopolymer stutter coverage
section:
- molecules.stutter and molecules.stutter_fallback are required, with
rule (log_odds_interpolate), log_odds_slope_per_base,
max_extrapolation_bases and generic (ref_len, pmf);
- a fitted stutter entry for a protected run (length >= errors.hp_min_len)
must have P(delta = 0) < 1, and the generic pmf must keep error mass at the
table's minimum run length;
- errors.hp_min_len must not be below the stutter table's minimum run length.
Regenerate with helpers/calibrate_read_profile.py --engine empirical, or
copy stutter_fallback from a built-in profile. Profiles without errors
(pbsim3 path) are unaffected.
Fixed¶
- Homopolymer runs without a stutter entry were simulated error-free
(#132). The empirical error channel protects every run >=
hp_min_lenfrom base-level errors, and a missing stutter key drew no length change, so the dupC C8 run, all A/T runs and G runs >= 5 of the ONT profiles were read perfectly. Now: ont_r10_sup_amplicon_v1fits every per-strand key of the PRJEB92208 amplicon target with n >= 500, addingC8|+andC8|-(p_correct 0.362 and 0.747);ont_r10_genomic_v1is refit from the WGS target (n >= 300), which has no C8 key;- new
molecules.stutter_fallback(rulelog_odds_interpolate) resolves runs without a fitted entry: it interpolates the error log-odds between the nearest fitted lengths of the same base and strand, extrapolates beyond the fitted range (at mostmax_extrapolation_bases, 3 in the built-ins, so long flank runs such as T19 are not almost always misread), or uses a generic pmf with a warning (once per base) when the base has no fitted entries; - profiles with an
errorsmodel are validated so no protected run is error-free by construction (see Breaking change above); - homopolymer runs ignore case (a soft-masked
cccCis C4 and keeps its case when stuttered); runs ofNget no stutter and are not protected from base-level errors; provenance.stutter_fitrecords the fitted and excluded keys, the minimum n and the fallback derivation; runs resolved by interpolation or extrapolation are logged at INFO once per profile load.helpers/calibrate_read_profile.pyvalidates the simulated observed-minus- true pmf against the target for every base/length/strand (calibration_report.validation_round*.per_key) and gains--min-target-n(default now 500),--max-delta(default now 6, was 3),--min-lengths-for-slope,--generic-ref-len,--max-extrapolation-basesand--tolerance;--model-fileis only required for--engine pbsim3. With--engine pbsim3it drops an inheritederrorsmodel andstutter_fallback; with--engine empiricalit requireserrors.hp_min_lento equal the stutter table's minimum run length (3). Fitting fails with a message instead of dividing by zero when a target key has no mass within--max-delta, and rounding never makes P(0) negative.
Changed (intentional output differences)¶
- Reads simulated with
ont_r10_sup_amplicon_v1oront_r10_genomic_v1change for the same seed: all homopolymer runs are now stuttered and the refit tables keep deltas up to ±6. Simulations without a read profile are unchanged (seeded legacy ONT and HiFi amplicon FASTQs are byte-identical to 0.45.0). User profiles with anerrorssection but nostutter_fallbackare now rejected (see Breaking change above).
Tests¶
- Legacy byte-identity guard: a unit test pins the template FASTA md5s and tool argument lists of seeded legacy ONT and HiFi amplicon runs (tools mocked), and an integration test checks the golden FASTQ md5s with real pbsim3/ccs/samtools (skips when they are missing).
[0.45.0] - 2026-09-24¶
Realistic, truth-tracked long-read simulation. See the
Realistic Truth-Tracked Reads guide.
Simulations without a read profile or --track-read-source produce the same
reads (a seeded legacy ONT amplicon FASTQ is byte-identical to 0.44.5). The bug
fixes listed under Changed alter outputs of some existing configurations on
purpose. Requires samtools >= 1.13 (view --subsample).
Added¶
- Read profiles (
--read-profile NAME|PATH,muconeup reads profiles): versioned JSON bundles of config overlays, a molecule model and an optional empirical error model. Built-ins:ont_r10_sup_amplicon_v1andont_r10_genomic_v1(calibrated to public PRJEB92208 aggregates) andhifi_amplicon_v1(generic). Refs #103 - Molecule model: strand mix, PCR smear, chimeras, concatemers, off-target products and strand-aware homopolymer stutter (#101, #103)
- Per-read truth: unique read names
{base}_h{hap}_m{molecule}and{base}_read_truth.tsv.gzfor amplicon and fragment simulation.--track-read-sourceis now supported in amplicon mode (#100) - Empirical error channel, calibrated to R10.4.1 sup, as an alternative to pbsim3; pbsim3's ONT models floor at ~3.5–4% error in template mode (#103)
- Genomic ONT from fragments:
reads ont --simulator pbsim3-fragments(--n-reads,--read-length-median,--read-length-sigma,--flank-fasta) (#107) - PCR preset
madritsch2025_r10reproducing ln(long/short) ≈ −0.056 per repeat unit (#104) - pbsim3 options:
difference_ratio(ONT amplicon) and read id prefix, passed only when set (#105). pbsim3 has no--accuracy-sdoption, soont_amplicon_paramsdoes not acceptaccuracy_sd(#115) --no-alignforreads amplicon,reads ontandreads pacbio(#106)helpers/calibrate_read_profile.pyto derive and validate profiles
Fixed¶
- minimap2: a prebuilt
{reference}.{preset}.mmithat is not older than the FASTA is now reused instead of re-indexing the whole genome on every run (#106). Generic{reference}.mmifiles are ignored because their preset is unknown (#117) - Seed provenance:
simulate --seed Nis recorded inprovenance.seed(#109) - NanoSim read-source tracking:
haplotype-Nnames are parsed and the required companion keys are written (#102) - samtools downsampling: now uses
--subsample/--subsample-seed; the old-s SEED.FRACform misread fractions such as 0.05 (#97) reads ont --min-read-length: no longer silently overrides the config (#108)- SNP info in
ReadSourceTracker.from_simulation_resultsis keyed by haplotype (#111) - Amplicon housekeeping (#110):
- metadata TSV reports amplicon settings;
- PacBio amplicon mode honours
keep_intermediate_files; - docs no longer reference the unshipped
QSHMM-SEQUEL.model; - the pbsim3 version probe no longer logs a spurious ERROR.
Changed (intentional output differences for existing configurations)¶
- samtools downsampling uses the exact fraction:
-s SEED.FRACturned 0.05 into ~50%, and the wrapper truncated fractions to 4 decimals (#97) reads ontkeepsnanosim_params.min_read_lengthfrom the config instead of overwriting it with 100 when--min-read-lengthis omitted (#108)simulate --seedis recorded in provenance, which changesconfig_fingerprintand adds aSeedrow (#109)- Amplicon metadata TSV reports
Template_molecules, model and PCR rows instead of NanoSim/PacBio WGS rows; PacBio amplicon mode honourskeep_intermediate_files(#110) - The NanoSim read-name parser raises on names without a haplotype instead of assigning haplotype 1 (#102)
- A generic
{reference}.mminext to the reference is no longer used (#117)
Pre-release review fixes¶
An independent review of the release branch found and fixed:
- off-target molecules sampled across artificial flank/haplotype junctions;
they now come from real flank intervals with haplotype coordinates (#112)
- truth-tracked runs yielding zero reads now fail; zero fragment requests are
rejected (#113)
- config-file fragment lengths and PCR parameters no longer override the read
profile (#114)
- --accuracy-sd removed: pbsim3 rejects it (#115)
- reads ont --no-align now skips NanoSim alignment (#116)
- empirical deletions no longer remove protected homopolymer bases (#118)
- smear retention bounds (smear_min_keep in [0, 0.95], at least one base) (#119)
- --platform/--simulator default to the read profile's platform and to
pbsim3-fragments with a profile (#120)
- the empirical error channel uses its own seed stream (#121)
- metadata records Read_profile, Read_profile_sha256, Read_truth and
fragment settings (#122)
- fragment sampling gives uniform coverage along the source; truth coordinate
systems are documented (#123)
- malformed read profiles raise validation errors; full-run homopolymer
deletions in the stutter table are applied instead of clamped (#124)
[0.44.3] - 2026-04-07¶
Fixed¶
- ONT amplicon pipeline now reads from dedicated
ont_amplicon_paramsconfig section instead ofpacbio_params-- was using PacBio Sequel model (ERRHMM-SEQUEL) for ONT reads (#79) - CLI routes
--model-fileoverrides toont_amplicon_paramsfor ONT andpacbio_paramsfor PacBio
Added¶
ont_amplicon_paramsconfig section with ONT-specific defaults (QSHMM-ONT-HQ.model)OntAmpliconConfigTypedDict for type-safe ONT parameter access- Config schema validation and path resolution for
ont_amplicon_params - Test for ONT platform using
ont_amplicon_params(notpacbio_params) - Documentation: ONT configuration section in amplicon simulation guide
[0.43.4] - 2026-04-06¶
Fixed¶
- Race condition in VNTR efficiency temp directory — replaced deterministic path with
tempfile.TemporaryDirectoryfor process-safe isolation in parallel runs (#82)
[0.43.3] - 2026-04-06¶
Fixed¶
- ONT amplicon: warn when model file does not appear to be an ONT model (#79)
- pbsim3 wrapper: detect and convert numbered SAM files (
prefix_0001.sam) produced with template mode (#79) - Config paths (model_file, reseq_model, human_reference) now resolved relative to config file directory, not working directory (#80)
- Default
expected_product_rangewidened from[1500, 6000]to[1500, 15000]to support VNTRs with >99 repeats (#81)
Added¶
- 5 new tests for config path resolution, ONT model warning, and numbered SAM detection
[0.43.2] - 2026-04-06¶
Added¶
--read-numberCLI option forreads illuminato control fragment generation count- 3 new CLI tests for
--read-numberoption
Changed¶
- Default
read_numberraised from 10,000 to 100,000 in config.json (was limited by original ReSeq deadlock bug, now resolved by ReSeq2)
[0.43.1] - 2026-04-05¶
Changed¶
- Replaced ReSeq with ReSeq2 as the recommended Illumina error modeling tool
- Removed
seqToIlluminatimeout workaround — ReSeq2 v2.0.3 fixes the upstream deadlock bug that limited the original ReSeq to ~10,000 reads - Default
seqToIlluminatimeout raised from 120s to 600s (safety net only)
Removed¶
seqtoillumina_timeoutconfig parameter (no longer needed)
[0.43.0] - 2026-04-05¶
Added¶
- ONT amplicon simulation via
reads amplicon --platform ont --platformoption forreads ampliconcommand (choices:pacbio,ont)- Shared amplicon preparation module (
amplicon_common.py) used by both platforms Assay_typefield in simulation metadata TSVassay_typeandont-ampliconto config schemakeep_intermediate_filessupport in ONT amplicon pipeline- 13 new tests for ONT amplicon pipeline, shared helpers, CLI routing, and metadata
Changed¶
- Relaxed pbsim3
pass_numvalidation from>= 2to>= 1(ONT single-pass) - Refactored PacBio amplicon pipeline to use shared extraction stages
- Metadata platform field changed from
PacBio-AmplicontoPacBiowith separateassay_type
0.40.0 - 2026-04-04¶
Added¶
- PacBio amplicon read simulation using PBSIM3 template mode (
reads ampliconcommand) - PCR length bias model with exponential decay, calibrated to Madritsch et al. 2026 empirical data
- Deterministic and stochastic (Galton-Watson) PCR bias modes
- Preset profiles (
default,no_bias) for PCR bias configuration - Primer-based amplicon extraction from diploid VNTR references
- Shared primer binding site utility (refactored from snapshot validator)
amplicon_paramsconfiguration section with primer sequences and PCR bias settings- 69 new tests covering all amplicon simulation components
Changed¶
- Updated GitHub Actions to Node.js 24 compatible versions (checkout v6, setup-python v6, setup-uv v7)
- Extended config schema to accept
"amplicon"and"pacbio"as simulator types
0.19.0 - 2025-10-20¶
Added¶
- MkDocs Material documentation system with GitHub Actions deployment
- Comprehensive user guides (simulation, toxic protein detection, SNaPshot validation)
- Auto-generated CLI documentation via mkdocs-click
- Dark/light mode toggle, instant search, mobile responsive design
- Professional documentation at https://vntyper-org.github.io/MucOneUp/
0.15.0 - 2025-10-18¶
Added¶
- In silico SNaPshot assay validation for MUC1 dupC mutation
0.14.0 - 2025-10-15¶
Added¶
- Diploid split-simulation for ONT reads
Fixed¶
- ONT read simulation bias in diploid references
0.13.0 - 2025-10-10¶
Added¶
- Toxic protein detection algorithm
- ORF prediction with orfipy integration
Earlier Versions¶
See GitHub Releases for earlier version history.