Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Unreleased

[0.8.0] - 2026-11-22

Added

  • Report evidence schema 1.4.0: canonical availability states, stable generic gate-warning IDs, separate clean-evidence counts, unresolved guide views and explicit threshold units/provenance. Optional local Chromium acceptance checks cover all offline report modes.

  • Pinned local mature miRNA reference manifests for workflow and off-target commands, with staged Nextflow inputs, checksum validation and task-produced reference evidence. See local miRNA references.

Fixed

  • max_off_target_count is now an opt-in query-species liability ceiling over nm<=2. The previous default of 15 was calibrated against an all-species, all-mismatch total and is not transferred to the newly scoped metric; all-species off_target_count remains descriptive.

  • Recorded unavailable, not_established and legacy unknown gate states no longer fall through to numeric defaults. Threshold and guide panes scroll independently, and staged readers fit below their actual header height instead of overflowing the viewport.

  • Native benchmark review preserves unpublished post-screen scores as missing and uses the supplied source weights for the current-profile comparison. Report register-neighbour lookup uses sorted position windows instead of repeatedly scanning entire transcripts. Nextflow version artifacts terminate their heredocs correctly and record the numeric BWA-MEM2 version.

  • RefSeq gene lookup reads nested NCBI ELink nuccore groups and selects RefSeq RNA links, fixing empty transcript results for genes such as TP53. E-utilities calls are paced and retry HTTP 429 with bounded backoff. The README now documents existing local GENCODE and miRBase/combined-source support instead of marking them TODO.

  • Host and container release gates exclude live-network tests. Remote functionality remains available locally through make test-requires-network / pytest --run-network; normal test runs skip it and CI refuses the opt-in, so public API outages cannot block releases.

  • Automatic Nextflow CPU ceilings respect available processors, affinity and container quotas, preventing index/alignment tasks from requesting more CPUs than a small CI runner provides. Explicit production configuration overrides are accepted without duplicate-keyword errors.

  • The container variant gate uses local transcripts and synthetic cached variants; live TP53/rsID checks remain in a separate integration suite instead of depending on public endpoint uptime during image publication. The default image gate excludes all requires_network checks; live container checks remain local-only and require DOCKER_TEST_MARKERS=runs_in_container plus DOCKER_TEST_PYTEST_ARGS=--run-network.

[0.7.1] - 2026-10-17

This release adds explicit screening evidence, transparent experimental scoring, interactive reports, offline transcript annotation, and traceable benchmark preparation. It includes the previously unreleased 0.7.0 work. Scores are not comparable with 0.6.x or intermediate 0.7.x builds.

Added

  • Screening evidence and qualified selection. Each requested channel/species pair is recorded before reference resolution and reconciled against producer evidence tied to the submitted guide set. Failed, missing, censored, and unrequested evidence remain distinct. Required unknowns withhold candidates from the qualified shortlist; an unperformed screen never becomes a clean zero.

  • Run policies. --run-mode design_only|exploratory|qualified, repeatable --filter-action FILTER=off|warn|fail, and JSON/TOML --policy-config share one resolver across design, workflow, and off-target-only commands. Manifests record resolved values and their source; candidate tables retain each gate’s verdict and observation plus the candidate’s selection state.

  • Self-contained HTML reports. sirnaforge report <run_dir> and workflow reports include candidate inspection, threshold controls, preset views, a guide cart, and exports carrying the reader’s thresholds. Unknown verdicts remain unknown when thresholds move. Quilt package summaries are opt-in through --quilt-summarize or WorkflowConfig.quilt_summarize.

  • Offline annotation. sirnaforge annotate supports local GENCODE GTF and NCBI RefSeq GFF3/GTF, including exon/CDS structure, strand, versioned IDs, assembly/species checks, and source checksums. Human GENCODE gene search/design accepts a matching local transcript FASTA. No liftover or cross-provider ID conversion is performed. See annotation providers.

  • Mature miRNA references. --mirna-db mirgenedb+mirbase combines both required sources and deduplicates mature sequences after case and U/T normalization. miRBase covers every canonical screening species, including rhesus macaque. MirGeneDB remains the default; default screening species are chicken, rat, mouse, human, and rhesus macaque, with pig available explicitly.

  • Hit classification and provenance. Published hit tables distinguish on-target, ortholog, repeat, off-target, and undetermined alignments, with gene annotations and evidence tiers. hit_symbol supplies the per-hit gene name; matched_symbol records classification evidence. --ortholog-mapping supplies offline orthology; Compara lookup uses stable gene IDs, and symbol fallback is labelled. screen_query_id joins deduplicated screening results back to candidates. Run summaries distinguish alignment totals from candidate-weighted totals and point to detail files.

  • Benchmark preparation and review data. sirnaforge benchmark prepare and benchmark design preserve measured sequences, fixed duplex geometry, labels, checksums, and row-level exclusions. Checked-in Huesken/OligoGym fixtures, native-mapping review artifacts, ML-review collections, and pinned public-source download/regeneration scripts support offline review. These are preparation and regression tools, not a claim of predictive validation. See benchmark artifacts and public benchmarks.

Changed

  • Experimental scoring with declared weights. The shipped bundle is experimental_efficacy_v1, containing design_experimental_v1, postscreen_sirna_experimental_v1, and postscreen_mirna_experimental_v1. Every vector sums to 1.0, is recorded in the manifest, and is named on scored rows. Hidden active-term renormalization and the miRNA biogenesis divisor are removed. The run-policy default is experimental; legacy remains a compatibility alias.

  • Target accessibility measures the mRNA site. RNAplfold replaces guide self-folding as the scored accessibility feature, using the target site’s eight bases paired to guide positions 1–8. --plfold-window, --plfold-max-bp-span, and --accessibility-log-floor are configurable and recorded. Guide MFE, structure, and paired fraction remain reported separately.

  • Separate design and post-screen scores. design_score is available before screening; composite_score stays null until usable post-screen features exist. They use different vectors and must not be pooled into one ranking. Empirical score, conservation, and isoform coverage are reported outside the composite; isoform coverage has an optional gate, off by default. pos1_mismatch is unscored, so its contribution column is null.

  • Migration for score consumers. compute_composite(features, vector) requires every declared term. Use weights.design, weights.postscreen_sirna, or weights.vector_for(...) instead of flat weight fields. score_accessibility becomes score_target_accessibility; removed contribution columns are score_empirical, score_isoform_coverage, and score_conservation. The empirical rubric maximum is now 0.6. Removed MiRNADesignConfig.scoring_weights bonuses no longer imply unused scoring inputs. See scoring for the current vectors.

  • Transcriptome reference vocabulary. siRNA/miRNA screening uses cDNA, while genomic references remain ZFN-only. Pipeline parameters use transcriptome_indices, transcriptome_fastas, and transcriptome_species; published alignments live under off_target/results/transcriptome/. Legacy genome parameters are rejected with replacement names. Python callers use screen_species and transcriptome_indices; --offtarget-indices remains a CLI alias. Prebuilt indices require readable neighboring cDNA for transcript-to-gene annotation.

  • API defaults follow the resolved policy. Unstated workflow arguments use None, allowing the design-mode preset to apply. Explicit settings, including miRNA GC limits, are preserved. Asymmetry, paired-fraction, empirical, repeat, and optional isoform thresholds reach their gates; the asymmetry floor can be set to zero. Invalid or conflicting configuration is rejected early.

  • Output and exit contracts. candidates_all.csv retains candidate-level decisions; candidates_pass.csv/.fasta retain gate-passing candidates with their selection state. candidates_qualified.csv/.fasta and candidates_provisional.csv separate selection outcomes. selection_summary explains exclusions. CLI exit codes are 0 for success (including a complete empty result), 1 for execution/configuration errors, 2 when missing required evidence prevents any qualification, and optionally 3 for no eligible candidates with --fail-on-no-eligible.

  • Removed unused module-level helpers validate_and_write_sequences, validate_sirna_sequences, write_fasta_file, and check_tool_availability from core.off_target; use the supported FastaUtils interfaces. Their return contracts are not necessarily identical.

Fixed

  • Missing or rejected alignment files, failed reference/index builds, and entirely unscreened batches no longer publish a completed clean screen or an unsupported qualified shortlist. Every off-target gate is evaluated on completed zero-hit screens and records unknowns without evidence. Resolved warn actions record findings without rejecting candidates.

  • Deduplicated candidates receive their representative’s actual screening counts. miRNA aggregate fallback parsing no longer counts the same table twice. Persisted classifications, candidate liability counts, summary counts, and detail-file pointers now reconcile.

  • Ensembl transcript retrieval batches sequence/annotation requests, reuses connections, retries rate limits and transient server errors, and retries omitted records individually.

  • Report rendering preserves unknowns, records threshold provenance in exports, safely embeds payload strings, and reports rendering failures separately from metadata-write failures.

  • Docker/CI runtime. Preserve conda’s Nextflow launcher during pip installation so it matches the packaged framework JAR. Builds verify startup without networking, and container tests fail on an unavailable runtime. The custom-reference CI test uses all human GRCh38 chromosome 21 cDNAs with checksummed provenance instead of indexing a full mouse transcriptome. Image freshness checks compare source fingerprints as well as versions.

  • Index preparation follows the execution provider. Valid cached indices are reused; new indices are built by Nextflow using the same profile and image as alignment. Index files are staged as task inputs for Docker/Singularity. Explicit --transcriptome-indices suppresses automatic reference downloads while retaining any explicit --transcriptome-fasta.

  • Removed unused design input. design --genome-index, DesignParameters.genome_index, and its policy/provenance placeholders are removed. Use workflow or offtarget with --transcriptome-indices for screening; unsupported old inputs fail explicitly.

  • Filtering logs are summarized. Routine off-target and isoform-coverage rejections no longer emit a line per candidate. One log summary carries the reason counts and points to candidate outputs; console summaries include excess off-target hits and zero-hit coverage failures.

  • Restored CLI startup and documentation/test gates, including TOML policy loading on Python 3.10.

Known limitations

  • Scoring weights and thresholds are experimental expert priors, not fitted or independently validated efficacy/safety models. A completed configured search does not establish exhaustive biological off-target coverage. RNAplfold settings and screening scope affect score interpretation.

  • miRNA completion is recorded per species, but some hit-count summaries remain batch-level. The batch roll-up cannot express censored; per-species evidence envelopes and lower-bound markers are authoritative. Do not infer per-candidate/per-species counts from batch totals.

  • Repeat-classified alignments do not count as off-target liabilities. Retaining repeat-flagged candidates with a warning also retains that counting rule. Isoform-coverage thresholds remain uncalibrated, and the optional gate is off by default.

  • A qualified screen does not require a potency composite for pre-designed guides. Batches with no post-screen scores can retain design-time ranking; qualification alone is not a potency claim.

  • Raw Nextflow parameter passthroughs can bypass reference annotation. Low-level build_bwa_index() remains a native-tool API; workflow index preparation uses Nextflow.

  • Species inference from custom FASTA headers is limited to supported Ensembl conventions; declare ambiguous references explicitly. Orthology fallback by matching symbols remains a heuristic.

  • Benchmark synthetic flanks are not native transcript context. Some prepared artifacts omit recoverable local target coordinates, and benchmark commands do not compare predictions with measured efficacy. Dataset overlap, chemistry, and endpoint differences require separate review.

  • Chromosome-scoped CI screens validate integration within runner resources; they do not substitute for full-transcriptome or cross-species biological evaluation.

[0.6.0] - 2026-09-03

Correctness release for the off-target arm, from the audit in #80. Composite scoring now runs after off-target screening, using a seven-term weight set; off-target counts are decomposed into on-target/ortholog/repeat/genuine-off-target classes; and every distinct candidate sequence is screened rather than only the top-ranked subset. Scores from this release are not comparable to 0.5.x, and ranking order changes for essentially every candidate — this is the intended outcome of the redefinition, not a regression. Off-target counts for the same target will drop substantially, for the same reason.

Breaking changes

Most notable: composite scores and off-target counts are not comparable to 0.5.x at all — the score is redefined and screening is now exhaustive. On top of that two selection defaults changed, both in the permissive direction: the genuine off-target ceiling is 15, up from 3, and top_n is now uncapped. A 0.5.x command re-run unchanged will return more candidates, not fewer.

  • max_off_target_count defaults to 15, up from 3, and is reachable for the first time. DesignParameters had no offtarget_filters field and is extra="forbid", so the getattr that read it in _check_offtarget_filters could never resolve — the ceiling was hard-wired at 3 with no route in from the CLI, the environment or the Python API. The field now exists and is exposed as --max-off-targets. 15 is calibrated against one internal 94-design reference set: it is the lowest ceiling at which the gate enriches for expert-chosen guides rather than depleting them (at 3 the gate was depleted, at 10 it carried no information). Single-target calibration — revisit if a second reference set disagrees. Anything relying on the old ceiling must now pass --max-off-targets 3 explicitly.

  • top_n defaults to None, meaning report every ranked candidate. The previous defaults disagreed across entry points — the model said 500, both CLI commands said 100 and run_sirna_workflow() said 20 — so the effective cap depended on how the tool was invoked. An explicit ceiling still works and ge=1 is still enforced. This only ever affected top_candidates, and so candidates_pass.csv/.fasta; candidates_all.csv, enumeration and screening were never truncated by it. top_n_requested in workflow_summary.json is now null rather than an integer when no cap is set.

Fixed

  • BwaAnalyzer._parse_sam_output read SAM/MD positions as if they were guide positions, so seed-mismatch classification was inverted for the majority of real transcriptome hits, and partial or gapped alignments were scored as zero-risk perfect matches. Four separate frame errors, all of which corrupted mismatch_positions, seed_mismatches, offtarget_score, transcriptome_hits_seed_0mm, mean_seed_mismatches and the _filter_and_rank ordering that max_hits truncation depends on:

    • Minus strand was not handled. BWA stores flag & 16 records reverse-complemented, so SEQ/MD/CIGAR are in the revcomp frame while the seed window (seed_start…seed_end) is defined in guide coordinates: read position r of a length-L record is guide position L + 1 - r. Because core/design.py builds every guide as reverse_complement(target_seq), minus strand is the normal path, not an edge case. A mismatch at true guide position 3 (inside the seed) was recorded as position 19 with seed_mismatches=0 and offtarget_score=11.0 instead of 1 and 15.0. The mirror now uses the length of the query the aligner was actually handed, so it still applies when the record carries no CIGAR (*).

    • Clipping and gaps were ignored. MD offsets count only reference-aligned read bases, so a leading clip or an insertion desynchronised every position from the read; and clipped, inserted and bulged bases were not counted at all, making a 15M6S/NM:i:0 alignment of a 21 nt guide indistinguishable from a full-length perfect match (bwa mem -T 15 emits these routinely) and giving a 2 bp-deletion hit offtarget_score=0.0. Since _filter_and_rank sorts ascending, those zero scores sorted ahead of genuine perfect matches and survived any max_hits truncation. Guide bases left unpaired by clipping or insertion now count as mismatches; deleted reference bases have no guide position of their own, so they raise nm and the score anchored on the guide base flanking the bulge. A hit with nm > 0 can no longer score 0.0.

    • mirna_seed mode used the wrong frame entirely. In that mode the aligner is handed only the extracted 7 nt seed window, so read positions are window positions and must be shifted by seed_start - 1 — the correction _normalize_bwa_mirna_seed_hits and scan_mirna_seed_matches already applied to their own rows. It matters even though _normalize_bwa_mirna_seed_hits recomputes positions afterwards, because analyze_sequences ranks and applies max_hits truncation on the raw scores first.

    • _filter_and_rank raised TypeError on any record with no AS tag: it used -x.get("as_score", 0), but the key is always present and set to None, so the dict default never applied. It now matches the sibling sort sites (-int(row.get("as_score") or 0)).

    nm is now documented as a guide-level distance rather than “edit distance” in OffTargetHit, GenomeAlignmentSchema, MiRNAAlignmentSchema and docs/models_and_scoring.md: it is the aligner’s NM plus the guide bases left unpaired by clipping or gaps, so nm >= NM for any partial or gapped hit. The column name is unchanged. See the off_target_count entry under Changed for what this means for the transcriptome_hits_{0,1,2}mm strata and the max_transcriptome_hits_* thresholds read against them — a clipped partial hit no longer fails a candidate as TRANSCRIPTOME_PERFECT_MATCH, but is still counted by transcriptome_hits_total and off_target_count. Two further values change meaning with it:

    • mean_mismatches in every *_summary.json (AnalysisSummary.mean_mismatches) is the mean of nm, so it is now a mean guide mismatch-equivalent count, not a mean aligner edit distance, and it rises for any run with clipped or gapped hits (two 15M6S/NM:i:0 hits report 6.0 where they reported 0.0). Not comparable across the 0.6.0 boundary.

    • off_target_penalty was already misdocumented as “lower is better”: post-screen it holds the maximum offtarget_score over a candidate’s hits, where higher is safer and 0.0 is reserved for a full-length exact match — while at design time it holds an internal-repeat penalty where higher is worse. Widening nm widened the post-screen values (a clipped minus-strand hit reports ~76 where it reported 0.0). Reporting only; nothing scores or filters on it. The field description and docs/models_and_scoring.md §6.1 now say so.

    A seed-perfect partial hit falls in no mismatch stratum, so max_transcriptome_hits_0mm cannot gate it. A minus-strand 6S15M / MD:Z:15 / NM:i:0 record puts the clip on guide positions 16-21, leaving guide positions 2-8 pairing perfectly; its guide-level nm is 6, so it is counted in transcriptome_hits_seed_0mm, transcriptome_hits_total and off_target_count but in none of _0mm/_1mm/_2mm. Two such hits report 0mm=0 1mm=0 2mm=0 seed_0mm=2 total=2 off_target_count=2, and on stock defaults only max_off_target_count (15) stands between them and a PASS. max_transcriptome_seed_perfect is therefore now enforced in _check_offtarget_filters (new verdict TRANSCRIPTOME_SEED_PERFECT, new failed_transcriptome_seed_perfect stat). It still defaults to None, so behaviour is unchanged unless a user sets it — picking a calibrated default is a separate product decision. Unlike the three mismatch thresholds it is not species-split: it gates the reported transcriptome_hits_seed_0mm column verbatim.

    Clear the Nextflow work directory before re-running an existing target. Off-target alignments are parsed inside the OFFTARGET_ANALYSIS/MIRNA_SEED_ANALYSIS processes and sirnaforge always passes -resume, so a re-run against an unchanged input FASTA will replay the cached, wrongly-parsed *_analysis.tsv from the previous run. Delete the Nextflow work directory (./nextflow_work by default) to pick this fix up.

  • --input-fasta and --skip-off-targets no longer download and index multi-gigabyte transcriptome references. 0.5.2’s exhaustive-search work silently flipped run_sirna_workflow(allow_transcriptome_with_input_fasta=...) from False to True and set allow_transcriptome_for_input_fasta=True in the workflow CLI command — undocumented at the time, and directly contradicting the documented design-only behaviour of --input-fasta. The consequence: sirnaforge workflow GENE --input-fasta my.fa and run_sirna_workflow(input_fasta="my.fa", ...) resolved all four DEFAULT_TRANSCRIPTOME_SOURCES (human, mouse, rat and macaque Ensembl cDNA) and fetched plus BWA-MEM2-indexed every one of them, so supplying your own sequences triggered several gigabytes of downloads nobody asked for (this is also what timed out the toy container workflow at 300 s). Separately, run_sirna_workflow hardcoded design_only=False when resolving the reference policy, and step5_offtarget_analysis materialized the transcriptome and ran the ~47 s repeat scan above the check_off_targets guard — so check_off_targets=False paid for the references and the scan and then printed “Off-target analysis skipped by user request”. Restored and now explicit in both directions: an input-FASTA run is design-only unless you name a reference with --transcriptome-fasta (which accepts presets such as ensembl_human_cdna), the CLI prints exactly that when it applies, and library callers can still opt in with allow_transcriptome_with_input_fasta=True. --skip-off-targets / check_off_targets=False now resolves no reference at all, and consequently also skips repeat-element detection (it scans against the same query-species cDNA reference), reported as repeat_summary.reason = "user_disabled" in logs/workflow_summary.json. A skipped run also leaves off_target/ empty — no input_candidates.fasta is staged — so the getting-started and workflows output inventories now separate every-run files from screening-only ones. Runs made with the flipped default may have left unused Ensembl cDNA FASTAs and indexes in ~/.cache/sirnaforge/transcriptomes/; run sirnaforge cache --info to see how much, and sirnaforge cache --clear-transcriptome to reclaim it. Nothing in this fix requires clearing the cache to take effect — a populated cache is simply no longer consulted on these paths.

  • miRBase miRNA databases were parsed with Biopython’s "fasta-blast" reader, which relabels every record with the first record’s header, so --mirna-db mirbase (and mirbase_high_conf / mirbase_hairpin) produced a corrupt seed-screening database. The reader keeps each record’s own sequence but clones the first header onto all of them, and _filter_species_sequences decides species membership from record.description — so the whole filter collapsed into one decision about the first header in mature.fa. Two outcomes, both silent: if the first header happened to match the requested species, every miRNA from all ~270 species was kept under that one duplicated header — and because the consumer (FastaUtils.parse_fasta_to_dict) keys its dictionary on the full header, the “48k sequence” database collapsed to essentially one entry, so seed screening compared guides against a single miRNA; if it did not match (the usual case, since mature.fa is ordered by species and hsa-/mmu-/rno- are not first), filtering returned nothing, get_database returned None, and miRNA seed screening was skipped entirely with only a log line. Nothing raised either way. Scope: the shipped default is --mirna-db mirgenedb, whose per-species files are written straight from the download without going through a FASTA parser, so default runs were not affected; the corruption required an explicit miRBase source, or mirna_manager --combine, which relabelled every combined record regardless of source. The parser is now plain "fasta" (also the only one of the three available at the declared biopython>=1.84 floor — the "fasta-blast" name did not exist before 1.85 and raised ValueError: Unknown format). Any miRBase database cached by an affected build is wrong on disk and is now discarded automatically by the reference cache’s producer-version check, so the first run after upgrading re-downloads it; to force it sooner, run sirnaforge cache --clear-mirna. Alongside this: combined databases are reused only when a stamp written at build time still vouches for them — the exact input bytes they were combined from, plus the output file’s own size and digest, re-read from disk and subject to the cache TTL. The mtime comparison it replaces (“combined is newer than every source”) had no TTL and no checksum of any kind, so it could neither notice wrong contents nor notice a file truncated after it was written; a species with no miRBase code now raises instead of silently returning every species; and HTML-wrapped payloads have their pre-record preamble stripped, so block-style <pre> wrappers no longer leave leading blank lines that Biopython 1.86 warns about and a future release will reject.

  • On-target self-hit exclusion only matched a candidate’s exact source transcript (or, in a first pass, other isoforms present in the input FASTA), so uncapping max_hits turned the off-target filter into a near-total kill switch: 3,259 of 3,288 candidates failed “perfect transcriptome match” and zero survivors sat on the primary isoform. A guide derived from one isoform necessarily also perfectly matches sibling isoforms (shared exons) — including novel/NMD-variant isoforms the gene search never returned, so they aren’t in the 13-transcript input FASTA either. A hit is now recognised as on-target when it maps to the queried gene’s ID or symbol, not only when its transcript appears in the input FASTA, so sibling isoforms stop being counted against the guide. The transcript→gene lookup that makes this possible is built per screened species — see the ortholog-recognition entry under Changed, which replaced a first-pass version of this fix that only ever worked for human.

  • Exhaustive off-target search is now the default, and --max-hits is finally exposed on the CLI. The embedded Nextflow off-target pipeline capped retained hits per candidate/species at params.max_hits = 10000 with no way to override it from sirnaforge workflow (the option didn’t exist; nextflow_config_overrides only forwarded docker_image and ZFN params). Because _filter_and_rank sorts ascending by offtarget_score, the retained rows were the most dangerous hits, not the least — but for genes with many perfect-match paralogs, human/rhesus hits filled all 10,000 slots, silently censoring the true per-species hit count and giving ~80% of candidates a false “zero off-target hits” result. params.max_hits now defaults to effectively unlimited (100,000,000); pass --max-hits <n> to cap it again for speed on large gene families sirnaforge.workflow.run_sirna_workflow() gained a matching max_hits parameter.

  • --design-mode mirna no longer silently designs with siRNA GC bounds. _resolve_design_mode only applied the miRNA-specific GC range when the CLI’s GC flags still equaled (30.0, 52.0), but the actual --gc-max default is 60.0 — so the guard was never true and every miRNA-mode run used the siRNA GC ceiling under a “mirna” label. The guard now compares against the real siRNA defaults (30.0, 60.0).

  • Ensembl/RefSeq/ClinVar HTTP clients now honor HTTP_PROXY/HTTPS_PROXY environment variables. All aiohttp.ClientSession instances in sirnaforge.data.base, sirnaforge.data.transcript_annotation, and sirnaforge.data.variant_resolver were created without trust_env=True, so requests bypassed configured corporate proxies entirely (unlike curl/requests, aiohttp does not read proxy env vars by default). This caused misleading “HTTP 503: Access denied” errors on networks that block direct outbound access to Ensembl/NCBI but allow it via an authenticated proxy.

  • Embedded Nextflow off-target pipeline failed to start under Nextflow’s strict config parser (ConfigParserV2, Nextflow 24+). The bundled nextflow.config defined a check_max() Groovy method to cap per-process resource requests, which the strict parser rejects (and, once converted to a closure, still can’t resolve from nested withLabel: scopes). Replaced the helper entirely with Nextflow’s native resourceLimits process directive. Also cleaned up remaining nextflow lint warnings (deprecated Channel.xxx factory usage, implicit it closure params, unused closure/workflow parameters) across main.nf and the local subworkflows.

  • --design-mode mirna had no effect on the ranking of any run that reached off-target screening. MiRNADesigner folds the ago-start, position-1 pairing and 3’ supplementary bonuses into composite_score only, never into the composite term set. Moving scoring after screening meant the composite was rebuilt from that term set and the bonuses were dropped, so every screened miRNA run was ranked by the plain siRNA composite. The bonus and its normalising maximum are now recorded on the candidate and reapplied through one shared helper. Rows that never passed through MiRNADesigner — injected dirty controls, which are copies of rejected candidates — fall back to the mode’s own maximum bonus rather than to zero, so they are divided by the same 1 + max_mirna_bonus as everything else instead of sitting ~25% high in the same CSV. docs/scoring.md now states the exact relation between the score_* contribution columns and composite_score in miRNA mode; they do not sum to it, and not only by the bonus.

  • A screen that partly or wholly failed was scored as a clean, complete screen — and could outrank one. A candidate with no results entry took the no-hits branch and received off_target_sub_score(0) = 1.0, maximal specificity, with off_target_screened = True. Three separate shapes of this: a species whose alignment stage produced no files (a BWA-MEM2 index OOM), a candidate that never reached the aligner at all, and — the common case — a run where aggregation itself failed, where the aggregate’s own missing_species list is empty because nothing wrote one. The guard now keys on positive evidence, the per-species alignment files the aggregator actually read, so its absence cannot read as success; miRNA-only runs, which align against no transcriptome at all, are covered by the same rule. Candidates in that state keep their design-time score, report off_target_screened = False, and are counted in offtarget_summary.filtering_stats.candidates_not_scored_after_screening. Hits that were found are still classified, still reported, and still applied as filters — real evidence can only fail a candidate, never wrongly pass one — so off_target_screened = False now means “this screen was incomplete, the counts are a lower bound”, not “the counts are zero”. Where only some candidates could be scored after screening, the rest are sorted below every scored one and held out of top_candidates (a third exclusion beyond passing and non-repeat-flagged, so top_candidates can be shorter than min(top_n, n_passing)) rather than competing on an optimistic, differently scaled number; the run logs an ERROR and a console line naming the count.

  • Conservation was scored against the CLI species list rather than the species actually handed to the aligner, and a failed alignment inflated it. --genome-indices, --genome-fastas and --transcriptome-indices all reach the same alignment channel in main.nf, but only --genome-species fed the conservation denominator, so an ortholog hit in one of the extra species could make the numerator exceed the denominator; conservation_sub_score raised and the except around the whole scoring block abandoned scoring silently, leaving the candidate with a design-time score while its neighbours carried post-screen ones. The denominator is now the set of non-query species handed to the aligner and the numerator is intersected with it. A species whose alignment produced nothing stays in that denominator: removing it emptied the term for single-ortholog-species runs, compute_composite redistributed its 0.10 weight to the surviving terms, and a partial screen scored 57.9 where the complete screen scored 51.1. Conservation is measured across the species that were screened: one that was screened and produced nothing can only lower the term, never raise it. A failure to score after screening is loud rather than silent: ERROR level, a counter, and a console line. Re-run to pick this up — rankings and top_candidates membership change, so candidates_all.csv/candidates_pass.csv from an earlier build must be regenerated. Runs that supply species through --transcriptome-indices also get a new Nextflow work-dir cache key (the key includes the resolved species list), so the first run after upgrading re-screens instead of resuming; nothing needs to be cleared by hand.

  • The query species was read out of a list position, which turned the guard above on against every default run. --species is an unordered set of genomes to screen against, and its own default starts with chicken (chicken,pig,rat,mouse,human,rhesus,macaque), but the workflow took element 0 of it as the organism of the target transcripts. So a plain sirnaforge workflow TP53 called itself a chicken run, found no chicken alignment among the four human/mouse/rat/macaque transcriptomes it had just screened successfully, and kept design-time scores for every candidate (scored_after_screening = False, off_target_screened = False on a complete screen) while still reporting run_status = "completed"; repeat detection was skipped in the same runs for want of a chicken cDNA. The query species now comes from where the target transcripts came from — the gene-query database, via GeneSearcher.query_species (Ensembl, RefSeq and GENCODE are all human-only) — and a new --query-species (query_species= on run_sirna_workflow, run_offtarget_only_workflow and WorkflowConfig) states it outright for an input FASTA from another organism.

  • Cached references written by a buggy earlier version are now discarded and regenerated automatically, instead of being served forever. Cache validation checked only that a file existed, was non-empty, was inside its TTL, and still matched the MD5 recorded when that same file was written — a self-consistent check that can detect disk corruption but can never detect wrong content a buggy writer put there deliberately. Each cached artifact now also records the version of the code that produced it (CacheMetadata.version, plus a <file>.sirnaforge-cache.json sidecar for derived artifacts), and that version is compared on load; a mismatch is a cache miss. You do not need to clear anything by hand. On the first run after upgrading, cached miRNA databases (both the per-species FASTAs and combined_*.fa) are discarded and re-downloaded from miRBase/MirGeneDB — a few MB — and each discard is logged at WARNING with the reason. Invalidation is scoped per artifact class, so cached transcriptomes, genomes and annotations are not re-downloaded: they are raw upstream bytes that no producer of ours reshapes, and forcing a multi-GB re-fetch for an unrelated schema change would be worse than the bug. If you would rather reclaim the space yourself, sirnaforge cache --clear still does that.

  • A BWA-MEM2 index can no longer outlive the reference it was built from. Index reuse tested only that the index files were present, and bwa-mem2 reads the index alone and never re-reads the FASTA, so an index left behind by a previous Ensembl release silently reported hits with that release’s transcript IDs and coordinates. Indices are now stamped with the checksum of the FASTA they were built from and rebuilt when it changes. An existing index that our own metadata shows was built after the currently cached reference is adopted as-is rather than rebuilt, so upgrading does not cost you an hour of bwa-mem2 index on a human transcriptome.

  • A cached artifact that was truncated or corrupted after being stamped is now detected and regenerated. The stamp recorded the producer version and the inputs, so a combined_*.fa cut short by a full disk (or an index member left half-written by an interrupted copy) kept a “current” stamp and was served for its whole TTL. Stamps now also fingerprint the artifact’s own bytes — every file’s exact size, plus an MD5 that is full below 64 MB and a head/tail sample above it, so verifying a multi-GB index costs ~30 ms per file instead of a full read.

  • The transcriptome cache could hand off-target screening a reference other than the one it reported: a filtered FASTA claimed the unfiltered source URI, and a BWA-MEM2 index outlived the FASTA it was built from. A single --transcriptome-filter protein_coding run recorded its filtered output under the bare source URL, so every later unfiltered request resolved to the protein-coding-only subset while logging the full source name, and filters compounded (filtering an already-filtered file). Filtered artifacts now carry their own filter-qualified cache identity (<url>#filters=<spec>) and a derived entry can never answer for the base URI, in this process or after a reload. They also record the checksum of the base bytes they were cut from: the Ensembl FTP URL is release-agnostic, and a filtered entry has no download of its own to time out, so a new release used to be filtered once and then served forever. Separately, any cached FASTA that gets rewritten — remote re-download, TTL refresh, re-filter, a file replaced inside the cache directory, or an edited local FASTA (which, with content dedupe disabled, was previously never re-copied at all) — now invalidates the index built from the previous bytes. This one is silent by construction: bwa-mem2 mem aligns against the index alone and never reads the FASTA, so hits came back with the previous release’s transcript IDs and coordinates, logged as “Using cached BWA-MEM2 index”. Index cleanup now also removes the .0123 file bwa-mem2 writes, which was leaking as a multi-GB orphan. Stale entries written by earlier versions are discarded automatically on first use; index files an earlier version orphaned under a differently-derived prefix are not, so run sirnaforge cache --clear-transcriptome to reclaim that space. If a stale index cannot be deleted (read-only or shared cache directory), it is recorded as unusable and screening proceeds with no cached index rather than reusing it; that record is persisted, so a later run refuses it too, and clears itself once the leftover files are gone.

  • The Parquet variant cache (~/.cache/sirnaforge/variants/variants.parquet) returned different variant data for identical invocations, and every cache already on disk kept doing so. Four defects around one write path: re-putting a key appended onto an index label the key-removal mask had preserved, silently destroying an unrelated entry; cleanup_stale_entries persisted a datetime64 cached_at, after which every put raised and the cache was permanently write-dead with only one warning to show for it; population_afs was never stored at all, so a warm run returned a record with no population allele frequencies — the field --variant-mode avoid filters on; and the cache key omitted variant_mode, which matters because resolve_variant serves a hit without re-running the filters, so an avoid run and a target run at the same --min-af shared entries and inherited each other’s admission decisions even though the two modes filter on different frequencies (max population AF vs global AF). Separately, datetime.now().isoformat() omits .%f when microsecond is exactly 0, and pandas 2.x raises on the resulting mixed-layout column, which quietly turned cleanup_stale_entries() and get_stats() into no-ops. Fixed: put rebuilds the frame against a canonical schema (and now carries through any column a newer sirnaforge added rather than dropping it), the cache key covers variant_mode, and get/cleanup_stale_entries()/get_stats() share one TTL rule so they agree about a row whose timestamp is unreadable. Existing caches need no manual clearing: entries written by an affected version are discarded automatically — the key change orphans them, and any row that has no stored population allele frequencies is treated as a miss and re-fetched (logged as Discarding pre-0.6.0 cache entry ...).

Added

  • Four new pure modules the hit-classification/scoring overhaul is built on: sirnaforge.data.transcript_index (per-species TranscriptGeneIndex/SpeciesTranscriptIndex), sirnaforge.core.hit_classification (classify_hit, HitClass, HitClassCounts — the four-way on-target/ortholog/repeat/off-target classifier), sirnaforge.core.repeat_detection (RepeatDetector, a numpy-vectorized k-mer scanner), and sirnaforge.core.scoring (compute_composite and the per-term sub-score helpers).

  • Design-time repeat-element flagging: every distinct guide is scanned against the query species’ cDNA reference, and a guide occurring in more than 0.1% (DEFAULT_REPEAT_TRANSCRIPT_FRACTION) of reference transcripts is flagged. New SiRNACandidate.repeat_flagged / repeat_transcript_fraction fields record the verdict; flagged, currently-passing candidates get the new FilterStatus.REPEAT_ELEMENT verdict and are excluded from ranking. Costs roughly 47 s against the ~1 GB human cDNA reference (measured: 0.47 s for a 10.1 MB reference, 1,082 needles across three lengths), once per run against the query species’ reference only.

  • FilterStatus.EXCESS_OFF_TARGETS, raised when the redefined genuine off-target count exceeds OffTargetFilterCriteria.max_off_target_count.

  • New output columns in SiRNACandidate, SiRNACandidateSchema and the results CSVs: on_target_hits, ortholog_hits, repeat_hits, ortholog_species, repeat_flagged, repeat_transcript_fraction, isoform_coverage, conservation_score, score_asymmetry, score_gc_content, score_accessibility, score_empirical, score_off_target, score_isoform_coverage, score_conservation, scored_after_screening, weight_set_version.

  • design_summary gains repeat_excluded_count and repeat_threshold_fraction. offtarget_summary gains hit_classes (on_target/ortholog/repeat/off_target totals), query_gene_transcripts_recognised, ortholog_symbol_lookup_misses and species_index_misses.

  • manifest.json gains a scoring block: {weight_set_version, weights, active_terms}.

Changed

  • BREAKING: workflow output filenames are now gene-agnostic. The siRNA candidate artifacts <gene>_all.csv / <gene>_pass.csv / <gene>_pass.fasta are now candidates_all.csv / candidates_pass.csv / candidates_pass.fasta, and the ZFN artifacts zfn_offtarget_sites.csv / zfn_candidate_summary.json are now offtarget_sites.csv / candidate_summary.json. Scripts no longer have to interpolate the gene symbol to find their own outputs, and the two ZFN execution paths agree: the Nextflow modules (zfn_offtarget_search.nf, zfn_aggregate_results.nf) and the --output-sites-csv / --output-summary-json / --shard-csv-glob defaults on the internal ZFN commands were still emitting the zfn_-prefixed names, so aggregated shard output did not match what sirnaforge workflow --design-mode zfn wrote. Migration: replace ${gene}_pass.csv with candidates_pass.csv in downstream scripts. The zfn_candidate_summary.v1 schema identifier inside candidate_summary.json is unchanged — only filenames moved.

  • The ZFN arm ships EXPERIMENTAL, and now says so everywhere. sirnaforge zfn, sirnaforge workflow --design-mode zfn and the ZFNDesigner().evaluate_pair() Python API all emit a notice naming the deferred defects and linking #82; the notice is rendered exactly once per run, so the layered entry points (CLI → workflow → designer) no longer stack copies of it and the rich panel no longer repeats the log line it sits under. Library callers still get it as a WARNING log record; with sirnaforge’s own logging that surfaces on stdout (get_logger always installs a stdout handler, so logging’s last-resort stderr handler never applies). Every ZFN documentation surface carries the same warning, including the pages that previously did not: docs/ccr5_zfn_benchmark.md (which defines the (+)/(−) half-site convention the orientation defect turns on), README.md, the “ZFN Manual Validation” section of docs/developer/testing_guide.md, the sirnaforge.zfn API reference, and notebooks/zfn_backend_runtime_comparison.ipynb. Nothing here fixes a ZFN defect — #82 tracks the fixes. What changes for a user is that the status is now unmissable, and that four specific things are stated rather than implied:

    • The published CCR5 half-site pair does not match its own on-target site. Under the default require_opposite_strands=True, --zfn-right-half-site must be the reverse complement of the published (−) text, so every ZFN example in the docs and notebooks now passes CTTTTGCAGTTT rather than AAACTGCAAAAG, which returned 0 sites. If you have a saved ZFN command, apply the same substitution.

    • worst_site_score and best_offtarget_score are inverted in candidate_summary.json: worst_site_score is the minimum site score and best_offtarget_score the maximum, whereas among off-targets the highest-scoring site is the most dangerous. The values are unchanged; only the names mislead. Read them accordingly until #82 lands.

    • The default pyahocorasick backend raises ValueError above 3 mismatches on a 12 bp half-site (a 4-mismatch budget expands to 5,498,165 candidate patterns against a 1,000,000 limit). docs/cli_reference.md previously recommended that default with no such caveat; use --zfn-search-backend exhaustive_python for those budgets.

    • The recorded hg38 and Nextflow-bridge ZFN validation runs are not correctness evidence, because they used the non-matching pair. docs/developer/testing_guide.md no longer routes reviewers to those runbooks as validation.

  • composite_score is now computed after off-target screening, from a seven-term weight set (asymmetry, gc_content, accessibility, empirical, off_target, isoform_coverage, conservation); prior scores are NOT COMPARABLE, and ranking order changes for essentially every candidate. This is the intended outcome of the redefinition, not a regression. The weight-set version that produced a score is recorded in manifest.json as scoring.weight_set_version (currently "2.0.0"; 1.x denotes the pre-#80 five-term set), so the two regimes cannot be silently compared. Weights, term by term:

    Term

    Old weight

    New weight

    Note

    asymmetry

    0.15

    0.12

    gc_content

    0.15

    0.10

    accessibility

    0.20

    0.13

    empirical

    0.20

    0.15

    off_target

    0.30

    0.25

    redefined: post-screen genuine-off-target specificity, not the design-time self-repetitiveness proxy

    isoform_coverage

    —

    0.15

    new, post-screen

    conservation

    —

    0.10

    new, post-screen

  • off_target_count is redefined to count GENUINE off-targets only. On-target, ortholog and repeat-mediated hits are now classified into their own columns (on_target_hits, ortholog_hits, repeat_hits) instead of inflating off_target_count; off-target counts for the same target will drop substantially. The mismatch-stratified transcriptome_hits_{0,1,2}mm counters are likewise redefined to count genuine off-targets only, and the max_transcriptome_hits_* thresholds in OffTargetFilterCriteria are read against those. The stratum a hit lands in is its guide-level mismatch count (nm, see the SAM-frame entry under Fixed), which is not the same as the aligner’s NM tag for a clipped or gapped alignment: a 15M6S/NM:i:0 partial hit counts as 6, so it lands in no stratum rather than in 0mm. Such hits are still counted in full by transcriptome_hits_total and off_target_count, which max_off_target_count (default 15) gates — the strata are nm≤2 subsets, not the whole picture.

  • Ortholog recognition previously worked only when the screened species was human. The transcript→gene index was built behind an if transcriptome_species == "human" gate into one shared dict, so a mouse/rat/macaque hit could never be recognised as an ortholog of the query gene. TranscriptGeneIndex now builds a separate index per species for every species screened, keyed on gene symbol compared case-insensitively. Where a species’ annotation carries no symbol for a hit transcript, the hit stays off_target and the shortfall is counted (ortholog_symbol_lookup_misses) rather than guessed at.

  • Every distinct candidate sequence is now screened, not just the top-ranked passing subset. _prepare_offtarget_input deduplicates candidates by normalized guide sequence before writing the off-target FASTA, and result integration fans the screening result for each distinct sequence back out to every candidate sharing it, so per-record CSV output is unchanged by the dedup. top_n no longer gates which candidates are screened — it keeps its reporting meaning only (how many candidates land in top_candidates). Candidates are re-ranked by the post-screen composite score once screening completes, and top_candidates is rebuilt from the viable subset rather than staying frozen at its design-time order — viable meaning passing, non-repeat-flagged, and (where a screen only partly succeeded) scored after screening; see the partial-screen entry above for that third exclusion.

  • The design-time self-repetitiveness proxy (repeated 7-mers within the guide) is retained as an unweighted diagnostic, component_scores["design_off_target_proxy"]; it no longer feeds composite_score under any name. For the standalone sirnaforge design path (no screening), the same scorer runs with the three post-screen terms inactive and renormalised, so design-only and post-screen runs share one score definition.

  • ScoringWeights validation moved from a positional field_validator on empirical (which summed only the fields Pydantic had already validated at that point, so it silently stopped checking new weights as the term set grew) to a model_validator(mode="after") that sums all seven fields by name; an out-of-tolerance sum now always raises at configuration time.

  • SiRNACandidate.FilterStatus gained the six off-target verdicts that previously existed only as raw strings in workflow.py (TRANSCRIPTOME_PERFECT_MATCH, TRANSCRIPTOME_1MM, TRANSCRIPTOME_2MM, MIRNA_PERFECT_SEED, HIGH_RISK_MIRNA, TOTAL_OFFTARGETS), plus REPEAT_ELEMENT and EXCESS_OFF_TARGETS. The Pandera allow-list in SiRNACandidateSchema now derives from the enum instead of maintaining its own copy, so the two cannot drift again.

Removed

  • Eight FilterCriteria thermodynamic windows that were declared but never enforced — no CLI flag exposed any of them: mfe_min, mfe_max, duplex_stability_min, duplex_stability_max, melting_temp_min, melting_temp_max, delta_dg_end_min, delta_dg_end_max. Re-deriving correct windows is deliberately out of scope for this change.

  • FilterCriteria.max_off_target_count — design time cannot know the genuine off-target count, so it never gated anything there. Moved to OffTargetFilterCriteria.max_off_target_count, where it is now enforced post-screen (see FilterStatus.EXCESS_OFF_TARGETS above).

  • SiRNACandidate.on_target_transcriptome_hits (and its CSV column), superseded by on_target_hits: two columns for the same quantity would drift, and the older one was only one release old. on_target_confirmed is unchanged — it still answers “was any hit recognised as the query gene?”, a different question from the new hit count.

[0.5.2] - 2026-09-02

Correctness release for the candidate selection/scoring arm, from the audit in #78. Behavior note: every thermodynamic column and the pass/fail composition change. Results are not comparable with 0.5.1 or earlier, and re-running an earlier design will select different candidates. The off-target arm (transcriptome + miRNA seed) is unaffected.

Fixed

  • Duplex thermodynamics folded each strand against itself. passenger_sequence is already the reverse complement of guide_sequence, but both ViennaRNA call sites reverse-complemented it again, so calculate_duplex_stability folded guide & guide and _calculate_end_stability folded guide[:7] & guide[-7:]. ViennaRNA’s cofold MFE is symmetric in its two strands, so at the default sirna_length=21 the 5’ and 3’ end folds were the same pair of 7-mers: dg_5p == dg_3p exactly, which pinned asymmetry_score to the constant 0.5 for every candidate and delta_dg_end to 0.0 (making the documented +2 to +6 kcal/mol optimum unreachable). 23 nt designs desynchronised the two windows and so produced a spread of wrong values instead of one wrong value. Measured on the 505 candidates of the packaged GAPDH transcript: duplex ΔG moves from -24.2…+0.2 (median -8.8) to -43.3…-32.5 (median -39.2), and the 199 rows with a non-physical positive dg_5p/dg_3p drop to zero. Both end windows now use the same width, which also fixes 19-20 nt guides comparing a 7-mer 5’ window against a 5-mer 3’ window.

  • LOW_ASYMMETRY was assigned by testing the empirical score. _calculate_empirical_score compared its own value against filters.min_asymmetry_score; asymmetry_score was computed, stored, exported, and never gated. Since the simplified Reynolds rule caps at 0.70, the default threshold of 0.65 reduced eligibility to guide[0] in {G,C} and guide[18] == "A" — a two-nucleotide test that rejected 84.6% of candidates as “low asymmetry”, including ones the same run ranked at the top. Each threshold now gates the quantity it is named after.

  • The position-19 A/U test never matched T. Guides are stored as DNA, so 141 of 505 GAPDH guides were denied a bonus they qualified for. The same defect affected three miRNA-mode bonuses: ago_start_bonus skipped all 144 T-initiated guides; every A:U pair at guide position 1 (257 of 505) was classified mismatch and collected an undeserved pos1_mismatch_bonus, while the G:U wobble branch could never fire at all; and supp_13_16_score counted no T, capping at 0.75 with 176 candidates stuck at 0.0.

  • Melting temperature was a scaled ΔG. 37 + 2 * -ΔG cannot yield a physical Tm (that needs ΔH and ΔS separately) and only looked plausible because it was reading the self-fold ΔG; on corrected input it returns 102.0-123.6 °C (median 115.4). Replaced with Biopython’s Tm_NN on the RNA nearest-neighbour table of Xia et al. (1998) at 100 mM Na+ / 100 nM strands: 66.3-81.7 °C, median 75.3 °C. These are physical values for a 21 bp RNA duplex; a quarter of them sit above the advisory 60-78 °C reference range, which is not enforced.

  • The miRNA composite score was clamped at its 100-point ceiling. Bonuses of up to 0.25 were added to a 0-100 score and the sum truncated, flattening the top of the ranking — nine GAPDH candidates tied at exactly 100.0. Now rescaled by the maximum attainable total, which is monotone in base + bonus and so preserves the order the clamp was destroying.

  • duplex_stability_score saturated. Its [-40, -5] kcal/mol window was calibrated against the self-fold ΔG; against real duplex ΔG it put 209 of 505 candidates at exactly 1.0. Now normalised per nucleotide (-2.1 kcal/mol/nt -> 1.0, -1.4 -> 0.0), which also stops longer designs scoring higher for their length alone. Reported only; it does not feed composite_score.

  • The run manifest was not a record of the run. manifest.json listed four design parameters, so min_asymmetry_score, the homopolymer gate, the scoring weights and the design mode appeared nowhere in it. Both manifest.json and logs/workflow_summary.json now dump DesignParameters wholesale, so a newly added parameter cannot go unrecorded; the manifest also carries tool_version.

  • Corrected the delta_dg_end sign convention in FilterCriteria, SiRNACandidateSchema and the tutorials: it is dg_5p - dg_3p (positive = destabilised 5’ end), not the reverse.

Added

  • FilterCriteria.min_empirical_score (default 0.5), bounded by the empirical rule’s attainable range 0.4-0.7, so a threshold the rule can never satisfy raises at construction instead of silently rejecting every candidate.

  • FilterStatus.LOW_EMPIRICAL_SCORE, so an empirical-rule rejection is no longer reported as an asymmetry failure. Registered with the candidate CSV schema.

  • SiRNACandidate.off_target_screened (new CSV column). The hit-count columns default to 0 and only the top-N selection is screened, so previously a candidate that was never screened was indistinguishable from one that came back clean.

  • ThermodynamicCalculator.meets_asymmetry_threshold, which gates an already-computed score without re-folding both duplex ends. is_thermodynamically_favorable — previously dead code — now delegates to it, and its default threshold matches FilterCriteria.min_asymmetry_score (it was 0.5 against a documented 0.65).

Changed

  • Default filter composition on the GAPDH set: PASS 12.3% -> 26.1%, LOW_ASYMMETRY 84.6% (mislabelled) -> 66.1% (real thermodynamic asymmetry), plus LOW_EMPIRICAL_SCORE 4.6%. min_empirical_score defaults to 0.5 rather than 0.65 deliberately: at 0.65 the empirical gate alone passes 4.8% of candidates, which is the degenerate behaviour being fixed. The rule still influences ranking through its 0.20 composite weight.

  • Removed three except (AttributeError, ValueError, TypeError): pass blocks around filter assignment rather than making them log. FilterStatus is always present and assigning a str-enum to a Pydantic field without validate_assignment cannot raise, so the handlers only ever hid the real defect — that the wrong field was being compared.

  • Documented that the composite score’s 0.30 off-target weight is a design-time proxy (repeated 7-mers within the guide). Transcriptome/miRNA screening runs after design and gates passes_filters; it does not contribute to composite_score.

  • Documented that mfe_*, duplex_stability_*, melting_temp_*, delta_dg_end_* and max_off_target_count in FilterCriteria have no reader in src/ — they are reference ranges, not filters. Wiring them up needs calibration against truth data, and the duplex_stability window in particular is unreachable now that duplex ΔG is correct.

  • Rewrote the awk filter examples in docs/thermodynamic_guide.md to resolve columns by header name, so they survive column-set changes such as off_target_screened.

[0.5.1] - 2026-07-21

This release adds the Zinc Finger Nuclease (ZFN) design/off-target module, multi-species genome references, and a correctness fix to miRNA seed-hit scoping. Behavior note: the miRNA seed-hit fix changes the reported hit census (previously-counted non-seed perfect matches are no longer counted as hits), so results are not identical to 0.4.x.

Added

  • Zinc Finger Nuclease (ZFN) module (sirnaforge.zfn): typed ZFN pair models, exhaustive and indexed half-site search backends, candidate ranking, annotation, and an optional Nextflow execution bridge. New sirnaforge zfn CLI command and zfn_candidate_summary.json / zfn_offtarget_sites.csv outputs.

  • Multi-species genome references. Genome (DNA) references now cover human, mouse, rat, and macaque, matching the transcriptome/miRNA species set. Previously only ensembl_human_hg38_primary was available, so ZFN off-target search could only use a human search space. New keys: ensembl_mouse_grcm39_primary, ensembl_rat_grcr8_toplevel, ensembl_macaque_mmul10_toplevel. The human key is unchanged for backward compatibility.

  • New sirnaforge.data.ensembl_references module: a single Ensembl assembly table generates both the transcriptome cDNA and genome DNA SOURCES, so adding a species is a one-line change.

Fixed

  • miRNA seed hits are now scoped to the seed region. run_mirna_seed_analysis previously copied all raw alignments into the filtered output (df_filtered = df_raw.copy()), so perfect guide-seed matches anywhere in a miRNA — including the 3′ region — were counted as hits, inflating total_hits/mirna_hits_0mm_seed. A raw alignment is now counted as a hit only when the guide seed lands on the miRNA’s own seed region (0-based coord == seed_start - 1); non-seed matches are retained in the *_raw outputs but excluded from filtered hits.

  • Seed-mismatch coordinate frame. Mismatch positions from the seed scanners were window-relative (1..len(seed)) but filtered with the guide-relative seed_start..seed_end threshold, so a mismatch at guide position 2 was dropped and the hit mislabeled a perfect seed. Window positions are now mapped onto guide coordinates in all three scan paths (exhaustive, pyahocorasick, BWA).

Changed

  • Raised the max analyzable guide/passenger length from 23 nt to 40 nt (SiRNACandidate), so longer observed species (e.g. Dicer 3′ read-through isoforms) can be scored. A validator warns above the 23 nt recommended biological range; DesignParameters.sirna_length (what the tool designs) stays capped at 23.

  • Off-target hit reporting is now exhaustive by default: _mirna_max_hits() returns None (no cap), and the default max_hits for BwaAnalyzer, run_bwa_alignment_analysis, and run_comprehensive_offtarget_analysis is None instead of 10000. SIRNAFORGE_MIRNA_MAX_HITS can still impose a cap. A silent cap biased downstream hit counts.

  • --zfn-search-space CLI help now lists the built-in genome keys; docs/zfn_module.md documents the reference table. Rat/macaque use Ensembl’s dna.toplevel file (verified: those assemblies do not publish dna.primary_assembly). Transcriptome cDNA keys/URLs (and their cache keys) are unchanged, so existing caches remain valid.

Housekeeping

  • Cleared embedded execution outputs from notebooks/zfn_backend_runtime_comparison.ipynb (~1 MB → 68 KB); benchmark methodology preserved.

[0.4.3] - 2026-03-22

New Features

  • Changed default ZFN search backend from EXHAUSTIVE_PYTHON to PYAHOCORASICK for improved performance.

  • Added new fields to ZFNShardingConfig: memory_budget_gb, memory_reserve_gb, target_cpu_utilization, and max_cpu_workers to allow for better resource management.

  • Enhanced memory and CPU utilization handling in ExhaustiveZFNOffTargetSearcher to dynamically adjust worker counts based on available resources and user-defined limits.

  • Introduced warnings for using fm_index on large references to prevent high memory consumption.

  • Added integration tests for ZFN annotation and reference resolution, ensuring compatibility with real genomic data.

  • Updated unit tests to validate new sharding parameters and their impact on worker allocation and chunk sizing.

  • Pluggable ZFN search backends:

    • Added ZFNSearchBackend support across workflow, CLI, and typed ZFN contracts.

    • Added optional backend engines for pyahocorasick and fm_index alongside exhaustive_python.

  • Persisted ZFN search-space index bundles:

    • Added fm_index bundle build/load support with manifest + artifact validation.

    • Added internal CLI command sirnaforge internal zfn-build-search-index for reproducible bundle generation.

Improvements

  • Cache-aligned reproducibility for fm_index:

    • Index bundle creation now resolves FASTA inputs through the shared genome cache pipeline.

    • Default bundle output paths are stable and cache-derived for repeatable runs.

  • miRNA backend rollout readiness:

    • Clarified the internal miRNA seed-scanning seam around pyahocorasick as the operational default.

    • Kept exhaustive_python as the correctness oracle and BWA as the semantic comparison baseline for parity validation.

    • Preserved the existing miRNA output contract and embedded Nextflow batch behavior without adding a public backend-selection flag.

  • Strict typing and enum-driven CLI contracts:

    • Replaced string validation paths for backend/algorithm/dimer mode with imported enum types.

    • Updated Nextflow bridge and shard execution paths to accept typed enums directly.

  • Documentation and tests:

    • Expanded CLI reference with backend/index usage guidance and reproducible prebuild examples.

    • Added/updated unit coverage for persisted index flow and internal index command delegation.

Dependencies

  • Added runtime dependencies for optional accelerated backends:

    • pyahocorasick>=2.1.0

    • fm-index>=2.3.4

[0.4.2] - 2026-03-01

New Features

  • ZFN workflow maturity for release:

    • Added robust ZFN workflow mode coverage for constrained half-site design and off-target site discovery.

    • Documented and stabilized ZFN algorithm selection (homology, conserved_g, zfn_v2) and dimer controls.

    • Added explicit reporting expectations for zfn_candidate_summary.json and zfn_offtarget_sites.csv outputs.

Improvements

  • Documentation completeness and command correctness:

    • Reconciled stale CLI examples with current command options (--species, --modifications, ZFN-required half-site flags).

    • Added curated ZFN guidance to complement auto-generated CLI help output.

    • Updated installation docs to reflect Python support (3.10-3.12).

  • Release metadata consistency:

    • Aligned release-facing documentation for the 0.4.2 train across changelog and release notes.

[0.4.0] - 2025-1-5

Breaking

  • Drop support for Python 3.9; minimum supported Python is now 3.10. This enables PEP 604 union syntax (e.g. list[str] | None) and other modern typing features. Update developer environments, CI, and pre-commit hooks to use Python 3.10 or later.

New Features

  • Variant Targeting Implementation: Complete Phase 1-5 implementation for targeting specific genetic variants

    • Core variant models and resolver infrastructure with Parquet-based caching

    • Population-specific AF filtering for geographic variant targeting

    • Phase 5 workflow integration with CLI flags for variant_mode parameter

    • Comprehensive variant feature implementation summary and documentation

  • Enhanced CLI and Workflow Integration:

    • Off-target-only entry point for pre-designed siRNA candidates

    • Support for any sequence length in thermodynamic calculations

    • Improved CLI enum integration for variant_mode parameter

  • Docker and Container Improvements:

    • Python 3.12 upgrade with optimized Dockerfile targeting

    • Login shell PATH preservation with /etc/profile.d/conda-path.sh

    • Enhanced container testing with dedicated test categories

    • Improved Docker entrypoint and health checks

Improvements

  • Performance Optimizations:

    • Parquet-based variant cache for improved performance

    • Cache-first index reuse with complete validation

    • Transcriptome filtering and major refactoring for simplicity

    • Unified cache management with Pythonic interface

  • CI/CD Pipeline Enhancements:

    • Python 3.12 requirement across all workflows

    • Aligned pre-commit mypy with uv package manager

    • Enhanced release workflow with comprehensive testing

    • Improved Docker build and test categorization

  • Code Quality and Maintenance:

    • Python 3.10+ syntax modernization throughout codebase

    • Comprehensive typing improvements and linting fixes

    • Enhanced error handling and validation middleware

    • Improved documentation with live CLI output examples

Dependencies

  • Python 3.12 Support: Full upgrade to Python 3.12 with modern syntax

  • Enhanced Dependencies: Added pyarrow>=18.0.0 for Parquet support

  • Updated Packages: Modernized dependency versions with improved compatibility

  • uv Package Manager: Full alignment with uv for faster dependency resolution

Performance

  • Variant Caching: Parquet-based storage for improved variant data performance

  • Memory Optimization: Reduced memory requirements for Docker-constrained environments

  • Parallel Processing: Enhanced concurrent execution for variant analysis

  • Index Reuse: Cache-first approach for transcriptome indices

[0.3.4] - 2025-12-31

Added

  • Transcript Annotation Provider Layer: New data provider interface for fetching genomic transcript annotations

    • Added AbstractTranscriptAnnotationClient interface in src/sirnaforge/data/base.py

    • Implemented EnsemblTranscriptModelClient using Ensembl REST API (lookup/id and overlap/region endpoints)

    • Added VepConsequenceClient stub for optional VEP enrichment (behind config flag, placeholder implementation)

    • New Pydantic models: Interval, TranscriptAnnotation, and TranscriptAnnotationBundle in src/sirnaforge/models/transcript_annotation.py

    • In-memory LRU cache with TTL for transcript annotations

    • Support for fetching by stable IDs or genomic regions

    • Comprehensive unit tests with mocked REST responses

    • Integration tests for real Ensembl REST API (gated by @pytest.mark.requires_network)

Improvements

  • Extensible Architecture: Transcript annotation provider follows the same layered pattern as existing data providers (gene search, ORF analysis, transcriptome management)

  • Reference Tracking: Annotations include provenance metadata (provider, endpoint, reference choice) for reproducibility

  • Error Handling: Robust handling of unresolved IDs and network errors with fallback to unresolved list

Documentation

  • Added comprehensive docstrings for all new classes and methods

  • Unit and integration tests serve as usage examples

[0.3.3] - 2025-12-15

Bug Fixes

  • Docker Login Shell PATH: Fixed issue #37 where login shells (/bin/bash -lc) would reset PATH and drop /opt/conda/bin, making sirnaforge and nextflow unavailable

    • Added /etc/profile.d/conda-path.sh to preserve conda toolchain paths in login shells

    • Non-login shells continue to work as before

    • Added regression test test_docker_login_shell_path() to container test suite

    • Added standalone test script scripts/test-docker-login-shell.sh for manual verification

  • Nextflow Off-target Aggregation: Fixed a Groovy/DSL2 runtime crash during final aggregation (No signature of method ... call(LinkedList)) by correcting channel collection/defaulting semantics in the embedded workflow

    • Replaced invalid ifEmpty([])/ifEmpty('') usage with ifEmpty { [] }/ifEmpty { '' }

    • Switched from collect() to toList() for explicit channel materialization before combining genome + miRNA result lists

[0.3.1] - 2025-12-04

Added

  • Dirty Control Injection: workflow.py now carries the worst rejected guides forward as “dirty control” candidates (see sirnaforge/utils/control_candidates.py) so every Nextflow/off-target run includes known-failing sentinels for health checks.

Improvements

  • Resilient Aggregation & Reporting: Nextflow modules (modules/local/aggregate_results.nf, mirna_offtarget_analysis.nf, split_candidates.nf, etc.) plus pipeline/nextflow_cli.py were refactored to emit consolidated TSV/JSON artefacts even when some analyses are skipped, ensuring miRNA/genome summaries always arrive in workflow_output/.

  • Deterministic Caching: New cache utilities expose SIRNAFORGE_CACHE_DIR/XDG-aware paths and tag Nextflow workdirs with metadata, dramatically reducing repeated downloads and making cleanup predictable.

  • Workflow Parameter Safety: CLI defaults now enforce valid GC range/length boundaries and automatically fall back to the bundled Ensembl transcriptome set (ensembl_human_cdna, ensembl_mouse_cdna, ensembl_rat_cdna, ensembl_macaque_cdna) when no input is provided, preventing empty design runs.

Bug Fixes

  • Pipeline Robustness: Aggregation handles missing combined TSVs, gracefully copies per-species miRNA batches, and logs explicit workdir pointers so failed runs can be recovered without manual spelunking.

  • Nextflow Reliability: All embedded DSL2 modules gained scoped retries, consistent BWA-MEM2 index prep, and container profile detection, eliminating the intermittent crashes seen in long off-target analyses.

Documentation

  • Docs v2 Stack: Added a parallel docs_v2/ tree with autogenerated CLI/API references, live sirnaforge command output, and refreshed installation guides focused on Docker + Nextflow workflows.

  • Workflow & Tutorial Refresh: docs/getting_started.md, docs/usage_examples.md, and the new Nextflow tutorial now describe dirty controls, cache locations, and off-target artefacts so users can reproduce the updated pipeline end-to-end.

[0.3.0] - 2025-11-21

Improvements

  • Documentation Standardization: Unified tab-based execution examples across all documentation

    • Added sphinx-design tab-sets for uv/Docker execution in all usage examples

    • Standardized command patterns in usage_examples.md, gene_search.md, getting_started.md

    • Simplified usage examples from redundant variations to minimal/comprehensive pattern

    • Improved user experience with consistent execution context switching

  • GC Content Default Update: Increased default --gc-max from 52% to 60%

    • Updated across CLI, documentation, and tutorials

    • Better alignment with siRNA design best practices

    • Maintains conservative gc-min default of 35%

  • CI/CD Pipeline Enhancements:

    • Fixed release.yml to use correct make targets (docker-test, test-dev)

    • Added comprehensive test-release job with full coverage reporting

    • Improved test tier structure: test-dev (unit), test-ci (smoke), test-release (comprehensive)

    • Coverage artifacts now uploaded with 30-day retention

    • Added coverage summary to GitHub Actions workflow UI

Bug Fixes

  • Off Target and miRNA seed match search now works!

  • Docker Test Environment: Fixed environment conflicts in make docker-test

    • Removed uv sync from Docker container execution (conflicts with conda)

    • Explicit pytest installation and conda path execution

    • Resolved parallel execution issues with pytest-xdist

  • Missing Dependencies: Added psutil>=6.0.0 to production dependencies

    • Required by workflow.py but was previously undeclared

    • Ensures consistent environment across installations

  • Nextflow Integration Tests: Fixed two previously skipped tests

    • Corrected Nextflow version flag: --version → -version

    • Fixed workflow access to use NextflowRunner API instead of module import

    • All 20 container tests now passing (was 18 passed, 2 skipped)

Testing

  • Comprehensive Test Coverage: Enhanced make test-release to run all test tiers

    • Now runs 179 tests (dev + ci + release markers) with 55% coverage

    • Generates XML, HTML, and terminal coverage reports

    • Full JUnit XML for CI/CD integration

    • Execution time: ~22 seconds for complete validation

  • Test Organization: All tests properly tagged with tier markers

    • 9 expected skips (requires Docker/Nextflow/BWA-MEM2 tools)

    • Consistent marker structure across test suite

    • Better CI/CD integration with proper test selection

Build & Infrastructure

  • Makefile Improvements: Enhanced test targets with better coverage support

    • test-release now comprehensive (dev + ci + release tests)

    • All test targets include appropriate coverage/junit reporting

    • Clear documentation of tier structure in help text

  • GitHub Actions: Aligned workflows with current Makefile structure

    • CI workflow: lint → security → test-ci → build

    • Release workflow: validate → ci → test-release → build artifacts → docker

    • Proper dependency chains ensure quality gates

0.2.2 - 2025-10-26

New Features

  • miRNA Design Mode: New --design-mode mirna option for microRNA-specific siRNA design

    • Specialized MiRNADesigner subclass with miRNA-biogenesis-aware scoring

    • Enhanced CSV schema with miRNA-specific columns (strand_role, biogenesis_score)

    • CLI support via --design-mode flag with automatic parameter adjustment

  • miRNA Seed Match Analysis: Integrated miRNA off-target screening in Nextflow pipeline

    • Lightweight seed region matching (positions 2-8) against miRNA databases

    • Automatic miRNA database download and caching from MirGeneDB

    • Per-candidate and aggregated miRNA hit reports in TSV/JSON formats

    • Configurable via --mirna-db and --mirna-species flags

  • Species Registry System: Canonical species name mapping and normalization

    • Unified species identifiers across genome and miRNA databases

    • Automatic species alias resolution (e.g., “human” → “Homo sapiens” → mirgenedb slug)

    • Support for multi-species analysis with consistent naming

Improvements

  • Nextflow Pipeline Enhancements:

    • Reduced memory requirements for Docker-constrained environments (2GB → 1GB for most processes)

    • Added miRNA seed analysis module with BWA-based matching

    • Improved error handling and progress reporting

    • Better resource allocation with memory/CPU buffers

  • Data Validation: Extended Pandera schemas for miRNA-specific columns

  • CSV Output: New columns transcript_hit_count and transcript_hit_fraction track guide specificity

  • miRNA Database Manager: Enhanced with species normalization and canonical name mapping

Bug Fixes

  • Fixed Nextflow Docker configuration for resource-constrained CI environments

  • Resolved schema validation errors for miRNA columns in mixed-mode workflows

  • Fixed typing issues in pipeline CLI functions

Documentation

  • Major Documentation Consolidation: Reorganized structure for improved user experience

    • Simplified navigation from 4 to 3 main sections (Getting Started, User Guide, Reference, Developer)

    • Consolidated getting_started.md and quick_reference.md into comprehensive guide

    • Streamlined tutorials to 2 focused guides (pipeline integration, custom scoring)

    • Created dedicated developer section for advanced documentation

  • Complete API Reference: Added 18 previously missing modules

    • Comprehensive coverage of all 27 sirnaforge modules

    • Auto-generated Sphinx documentation with proper cross-references

  • Quality Improvements: Configured ruff D rules for docstring validation

    • Fixed 116 docstring formatting issues automatically

    • Clean Sphinx builds with no warnings

  • Usage Examples: Added miRNA seed analysis workflow documentation

Testing

  • New Test Coverage: 232 new tests for miRNA design mode

    • Comprehensive unit tests for MiRNADesigner scoring

    • Schema validation tests for miRNA-specific columns

    • Integration tests for miRNA database functionality

  • Test Organization: Normalized test markers for consistent CI/CD workflows

  • Documentation Tests: Verified all doc builds and cross-references work correctly

Dependencies

  • No new runtime dependencies (leverages existing httpx, pydantic, pandera)

  • Enhanced development dependencies for documentation generation


0.2.1 - 2025-10-24

## [X.Y.Z] - YYYY-MM-DD

### New Features

- Brief description of new features

### Improvements

- Improvements to existing functionality
- Performance enhancements

### Bug Fixes

- Fixed specific issues
- Resolved edge cases

### 📊 Performance

- Performance improvements with metrics if available

### Testing

- New tests added
- Test coverage improvements

0.2.1 - 2025-10-24

New Features

  • Chemical Modification System: Comprehensive infrastructure for siRNA chemical modifications

    • Default modification patterns automatically applied to designed siRNAs (standard_2ome, minimal_terminal, maximal_stability)

    • New --modifications and --overhang CLI flags for workflow and design commands

    • FDA-approved Patisiran (Onpattro) pattern included in example library

  • Modification Metadata Models: Pydantic models for StrandMetadata, ChemicalModification, Provenance tracking

  • FASTA Annotation System: Merge modification metadata into FASTA headers with full roundtrip support

  • Remote FASTA Inputs: Workflow supports --input-fasta with automatic HTTP download and caching

  • Enhanced Pandera Schemas: Runtime DataFrame validation with @pa.check_types decorators, automatic addition of modification columns

Improvements

  • Modification columns (guide/passenger overhangs and modifications) now included in CSV outputs

  • CLI sequences show command with JSON/FASTA/table output formats

  • CLI sequences annotate command for merging metadata into FASTA files

  • Standardized + separators in modification headers (backward compatible with |)

  • Resource resolver for flexible input handling (local files, HTTP URLs)

  • Improved type safety with Pandera schema validation on DesignResult.save_csv() and _generate_orf_report()

Bug Fixes

  • Fixed JSON metadata loading regression with StrandMetadata subscripting

  • Resolved mypy typing issues for optional FASTA descriptions

  • Fixed CLI output handling for modification metadata

Documentation

  • Chemical Modification Review (551 lines): Comprehensive analysis and integration guide

  • Modification Integration Guide (543 lines): Developer documentation with code examples

  • Modification Annotation Spec (381 lines): Complete FASTA header specification

  • Example Patterns Library: 4 production-ready modification patterns with usage guide

  • Updated README with chemical modifications feature documentation

  • Remote FASTA usage documented in CLI and gene search guides

Testing

  • 18 new tests for chemical modifications (100% passing):

    • 11 integration tests for workflow roundtrip validation

    • 7 tests validating example pattern files

  • Added resource resolver unit tests (local paths, HTTP downloads, schemes)

  • Extended modification metadata tests for delimiter compatibility

  • All 164 tests passing with enhanced Pandera validation

Dependencies

  • No new runtime dependencies added (uses existing Pydantic, Pandera, httpx)

Performance

  • Removed Bowtie indexing (standardized on BWA-MEM2)

  • Streamlined off-target analysis pipeline configuration


0.2.0 - 2025-09-27

New Features

  • miRNA Database Cache System (sirnaforge cache) - Local caching and management of miRNA databases from multiple sources with automatic updates

  • Comprehensive Data Validation - Pandera DataFrameSchemas for type-safe output validation ensuring consistent CSV/TSV report formatting

  • Enhanced Thermodynamic Scoring - Modified composite score to heavily favor (90%) duplex binding energy for improved siRNA selection accuracy

  • Workflow Input Flexibility - Added FASTA file input support for custom transcript analysis workflows

  • Embedded Nextflow Pipeline - Integrated Nextflow execution directly within Python API for scalable processing

Improvements

  • Performance Optimization - Parallelized off-target analysis and improved memory efficiency for large transcript sets

  • CLI Enhancement - Better Unicode support, cleaner help text, and improved error reporting

  • Data Schema Validation - Robust output validation with detailed error messages using modern Pandera 0.26.1 patterns

  • Documentation Overhaul - Comprehensive testing guide, thermodynamic documentation, and improved API references

  • Development Workflow - Enhanced Makefile with Docker testing categories, release validation, and conda environment support

� Bug Fixes

  • Security Improvements - Resolved security linting issues and improved dependency management

  • Off-target Analysis - Fixed alignment indexing and improved multi-species database handling

  • CI/CD Pipeline - Resolved build failures, improved test categorization, and enhanced release automation

  • Unicode Handling - Fixed CLI display issues in various terminal environments

📊 Performance

  • 10-100x Faster Dependencies - Full migration to uv package manager for ultra-fast installs and environment management

  • Optimized Algorithms - Improved thermodynamic calculation efficiency with better filtering strategies

  • Parallel Processing - Enhanced concurrent execution for off-target analysis across multiple genomes

Testing & Infrastructure

  • Enhanced Test Categories - Smoke tests (256MB), integration tests (2GB), and full CI validation

  • Docker Improvements - Multi-stage builds, intelligent entrypoint, and resource-aware testing

  • Release Automation - Comprehensive GitHub Actions workflow with quality gates and artifact management

Documentation

  • Testing Guide - Comprehensive documentation for all test categories and Docker workflows

  • Thermodynamic Guide - Detailed explanation of scoring algorithms and parameter optimization

  • CLI Reference - Auto-generated command documentation with examples

  • Development Setup - Streamlined onboarding with conda environment and uv integration

Dependencies & Architecture

  • Modern Python Support - Maintained compatibility across Python 3.9-3.12 with improved type safety

  • Pydantic Integration - Enhanced data models with validation middleware and error handling

  • Containerization - Production-ready Docker images with conda bioinformatics stack

  • Package Management - Full uv adoption for dependency resolution and virtual environment management

0.1.0 - 2025-09-06

Added

  • Initial release of siRNAforge toolkit

  • Core siRNA design algorithms with thermodynamic scoring

  • Multi-database gene search (Ensembl, RefSeq, GENCODE)

  • Rich command-line interface with Typer and Rich

  • Comprehensive siRNA candidate scoring system

  • Off-target prediction framework

  • Nextflow pipeline integration for scalable analysis

  • Docker containerization for reproducible environments

  • Python API with Pydantic data models

  • Comprehensive test suite with unit and integration tests

  • Modern development tooling with uv, black, ruff, mypy

Core Features

  • Gene Search: Multi-database transcript retrieval

  • siRNA Design: Algorithm-driven candidate generation

  • Quality Control: GC content, structure, and specificity filters

  • Scoring System: Composite scoring with multiple components

  • Workflow Orchestration: End-to-end gene-to-siRNA pipeline

  • CLI Interface: Rich, user-friendly command-line tools

  • Python API: Programmatic access for automation

Supported Operations

  • sirnaforge workflow: Complete gene-to-siRNA analysis

  • sirnaforge search: Gene and transcript search

  • sirnaforge design: siRNA candidate generation

  • sirnaforge validate: Input file validation

  • sirnaforge config: Configuration display

  • sirnaforge version: Version information

Technical Stack

  • Language: Python 3.9-3.12

  • Package Management: uv for fast dependency resolution

  • Data Models: Pydantic for type-safe data handling

  • CLI Framework: Typer with Rich for beautiful output

  • Testing: pytest with comprehensive coverage

  • Code Quality: black, ruff, mypy for consistency

  • Containerization: Multi-stage Docker builds

  • Pipeline: Nextflow integration for scalability

  • Documentation: Sphinx with MyST parser, Read the Docs theme