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_countis now an opt-in query-species liability ceiling overnm<=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-speciesoff_target_countremains descriptive.Recorded
unavailable,not_establishedand 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
nuccoregroups 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_networkchecks; live container checks remain local-only and requireDOCKER_TEST_MARKERS=runs_in_containerplusDOCKER_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-configshare 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-summarizeorWorkflowConfig.quilt_summarize.Offline annotation.
sirnaforge annotatesupports 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+mirbasecombines 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_symbolsupplies the per-hit gene name;matched_symbolrecords classification evidence.--ortholog-mappingsupplies offline orthology; Compara lookup uses stable gene IDs, and symbol fallback is labelled.screen_query_idjoins 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 prepareandbenchmark designpreserve 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, containingdesign_experimental_v1,postscreen_sirna_experimental_v1, andpostscreen_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 isexperimental;legacyremains 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-floorare configurable and recorded. Guide MFE, structure, and paired fraction remain reported separately.Separate design and post-screen scores.
design_scoreis available before screening;composite_scorestays 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_mismatchis unscored, so its contribution column is null.Migration for score consumers.
compute_composite(features, vector)requires every declared term. Useweights.design,weights.postscreen_sirna, orweights.vector_for(...)instead of flat weight fields.score_accessibilitybecomesscore_target_accessibility; removed contribution columns arescore_empirical,score_isoform_coverage, andscore_conservation. The empirical rubric maximum is now 0.6. RemovedMiRNADesignConfig.scoring_weightsbonuses 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, andtranscriptome_species; published alignments live underoff_target/results/transcriptome/. Legacy genome parameters are rejected with replacement names. Python callers usescreen_speciesandtranscriptome_indices;--offtarget-indicesremains 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.csvretains candidate-level decisions;candidates_pass.csv/.fastaretain gate-passing candidates with their selection state.candidates_qualified.csv/.fastaandcandidates_provisional.csvseparate selection outcomes.selection_summaryexplains 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, andcheck_tool_availabilityfromcore.off_target; use the supportedFastaUtilsinterfaces. 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
warnactions 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-indicessuppresses 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. Useworkfloworofftargetwith--transcriptome-indicesfor 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_countdefaults to 15, up from 3, and is reachable for the first time.DesignParametershad noofftarget_filtersfield and isextra="forbid", so thegetattrthat read it in_check_offtarget_filterscould 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 3explicitly.top_ndefaults toNone, meaning report every ranked candidate. The previous defaults disagreed across entry points — the model said 500, both CLI commands said 100 andrun_sirna_workflow()said 20 — so the effective cap depended on how the tool was invoked. An explicit ceiling still works andge=1is still enforced. This only ever affectedtop_candidates, and socandidates_pass.csv/.fasta;candidates_all.csv, enumeration and screening were never truncated by it.top_n_requestedinworkflow_summary.jsonis nownullrather than an integer when no cap is set.
Fixed
BwaAnalyzer._parse_sam_outputread 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 corruptedmismatch_positions,seed_mismatches,offtarget_score,transcriptome_hits_seed_0mm,mean_seed_mismatchesand the_filter_and_rankordering thatmax_hitstruncation depends on:Minus strand was not handled. BWA stores
flag & 16records 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 positionrof a length-Lrecord is guide positionL + 1 - r. Becausecore/design.pybuilds every guide asreverse_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 withseed_mismatches=0andofftarget_score=11.0instead 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:0alignment of a 21 nt guide indistinguishable from a full-length perfect match (bwa mem -T 15emits these routinely) and giving a 2 bp-deletion hitofftarget_score=0.0. Since_filter_and_ranksorts ascending, those zero scores sorted ahead of genuine perfect matches and survived anymax_hitstruncation. Guide bases left unpaired by clipping or insertion now count as mismatches; deleted reference bases have no guide position of their own, so they raisenmand the score anchored on the guide base flanking the bulge. A hit withnm > 0can no longer score0.0.mirna_seedmode 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 byseed_start - 1— the correction_normalize_bwa_mirna_seed_hitsandscan_mirna_seed_matchesalready applied to their own rows. It matters even though_normalize_bwa_mirna_seed_hitsrecomputes positions afterwards, becauseanalyze_sequencesranks and appliesmax_hitstruncation on the raw scores first._filter_and_rankraisedTypeErroron any record with noAStag: it used-x.get("as_score", 0), but the key is always present and set toNone, so the dict default never applied. It now matches the sibling sort sites (-int(row.get("as_score") or 0)).
nmis now documented as a guide-level distance rather than “edit distance” inOffTargetHit,GenomeAlignmentSchema,MiRNAAlignmentSchemaanddocs/models_and_scoring.md: it is the aligner’sNMplus the guide bases left unpaired by clipping or gaps, sonm >= NMfor any partial or gapped hit. The column name is unchanged. See theoff_target_countentry under Changed for what this means for thetranscriptome_hits_{0,1,2}mmstrata and themax_transcriptome_hits_*thresholds read against them — a clipped partial hit no longer fails a candidate asTRANSCRIPTOME_PERFECT_MATCH, but is still counted bytranscriptome_hits_totalandoff_target_count. Two further values change meaning with it:mean_mismatchesin every*_summary.json(AnalysisSummary.mean_mismatches) is the mean ofnm, 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 (two15M6S/NM:i:0hits report6.0where they reported0.0). Not comparable across the 0.6.0 boundary.off_target_penaltywas already misdocumented as “lower is better”: post-screen it holds the maximumofftarget_scoreover a candidate’s hits, where higher is safer and0.0is reserved for a full-length exact match — while at design time it holds an internal-repeat penalty where higher is worse. Wideningnmwidened the post-screen values (a clipped minus-strand hit reports ~76 where it reported0.0). Reporting only; nothing scores or filters on it. The field description anddocs/models_and_scoring.md§6.1 now say so.
A seed-perfect partial hit falls in no mismatch stratum, so
max_transcriptome_hits_0mmcannot gate it. A minus-strand6S15M/MD:Z:15/NM:i:0record puts the clip on guide positions 16-21, leaving guide positions 2-8 pairing perfectly; its guide-levelnmis 6, so it is counted intranscriptome_hits_seed_0mm,transcriptome_hits_totalandoff_target_countbut in none of_0mm/_1mm/_2mm. Two such hits report0mm=0 1mm=0 2mm=0 seed_0mm=2 total=2 off_target_count=2, and on stock defaults onlymax_off_target_count(15) stands between them and a PASS.max_transcriptome_seed_perfectis therefore now enforced in_check_offtarget_filters(new verdictTRANSCRIPTOME_SEED_PERFECT, newfailed_transcriptome_seed_perfectstat). It still defaults toNone, 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 reportedtranscriptome_hits_seed_0mmcolumn verbatim.Clear the Nextflow work directory before re-running an existing target. Off-target alignments are parsed inside the
OFFTARGET_ANALYSIS/MIRNA_SEED_ANALYSISprocesses andsirnaforgealways passes-resume, so a re-run against an unchanged input FASTA will replay the cached, wrongly-parsed*_analysis.tsvfrom the previous run. Delete the Nextflow work directory (./nextflow_workby default) to pick this fix up.--input-fastaand--skip-off-targetsno longer download and index multi-gigabyte transcriptome references. 0.5.2’s exhaustive-search work silently flippedrun_sirna_workflow(allow_transcriptome_with_input_fasta=...)fromFalsetoTrueand setallow_transcriptome_for_input_fasta=Truein theworkflowCLI command — undocumented at the time, and directly contradicting the documented design-only behaviour of--input-fasta. The consequence:sirnaforge workflow GENE --input-fasta my.faandrun_sirna_workflow(input_fasta="my.fa", ...)resolved all fourDEFAULT_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_workflowhardcodeddesign_only=Falsewhen resolving the reference policy, andstep5_offtarget_analysismaterialized the transcriptome and ran the ~47 s repeat scan above thecheck_off_targetsguard — socheck_off_targets=Falsepaid 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 asensembl_human_cdna), the CLI prints exactly that when it applies, and library callers can still opt in withallow_transcriptome_with_input_fasta=True.--skip-off-targets/check_off_targets=Falsenow resolves no reference at all, and consequently also skips repeat-element detection (it scans against the same query-species cDNA reference), reported asrepeat_summary.reason = "user_disabled"inlogs/workflow_summary.json. A skipped run also leavesoff_target/empty — noinput_candidates.fastais 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/; runsirnaforge cache --infoto see how much, andsirnaforge cache --clear-transcriptometo 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(andmirbase_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_sequencesdecides species membership fromrecord.description— so the whole filter collapsed into one decision about the first header inmature.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, sincemature.fais ordered by species andhsa-/mmu-/rno-are not first), filtering returned nothing,get_databasereturnedNone, 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, ormirna_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 declaredbiopython>=1.84floor — the"fasta-blast"name did not exist before 1.85 and raisedValueError: 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, runsirnaforge 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_hitsturned 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-hitsis finally exposed on the CLI. The embedded Nextflow off-target pipeline capped retained hits per candidate/species atparams.max_hits = 10000with no way to override it fromsirnaforge workflow(the option didn’t exist;nextflow_config_overridesonly forwardeddocker_imageand ZFN params). Because_filter_and_ranksorts ascending byofftarget_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_hitsnow defaults to effectively unlimited (100,000,000); pass--max-hits <n>to cap it again for speed on large gene familiessirnaforge.workflow.run_sirna_workflow()gained a matchingmax_hitsparameter.--design-mode mirnano longer silently designs with siRNA GC bounds._resolve_design_modeonly applied the miRNA-specific GC range when the CLI’s GC flags still equaled(30.0, 52.0), but the actual--gc-maxdefault is60.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_PROXYenvironment variables. Allaiohttp.ClientSessioninstances insirnaforge.data.base,sirnaforge.data.transcript_annotation, andsirnaforge.data.variant_resolverwere created withouttrust_env=True, so requests bypassed configured corporate proxies entirely (unlikecurl/requests,aiohttpdoes 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 bundlednextflow.configdefined acheck_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 nestedwithLabel:scopes). Replaced the helper entirely with Nextflow’s nativeresourceLimitsprocess directive. Also cleaned up remainingnextflow lintwarnings (deprecatedChannel.xxxfactory usage, implicititclosure params, unused closure/workflow parameters) acrossmain.nfand the local subworkflows.--design-mode mirnahad no effect on the ranking of any run that reached off-target screening.MiRNADesignerfolds the ago-start, position-1 pairing and 3’ supplementary bonuses intocomposite_scoreonly, 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 throughMiRNADesigner— 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 same1 + max_mirna_bonusas everything else instead of sitting ~25% high in the same CSV.docs/scoring.mdnow states the exact relation between thescore_*contribution columns andcomposite_scorein 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, withoff_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 ownmissing_specieslist 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, reportoff_target_screened = False, and are counted inofftarget_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 — sooff_target_screened = Falsenow 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 oftop_candidates(a third exclusion beyond passing and non-repeat-flagged, sotop_candidatescan be shorter thanmin(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-fastasand--transcriptome-indicesall reach the same alignment channel inmain.nf, but only--genome-speciesfed the conservation denominator, so an ortholog hit in one of the extra species could make the numerator exceed the denominator;conservation_sub_scoreraised and theexceptaround 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_compositeredistributed 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 andtop_candidatesmembership change, socandidates_all.csv/candidates_pass.csvfrom an earlier build must be regenerated. Runs that supply species through--transcriptome-indicesalso 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.
--speciesis 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 plainsirnaforge workflow TP53called 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 = Falseon a complete screen) while still reportingrun_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, viaGeneSearcher.query_species(Ensembl, RefSeq and GENCODE are all human-only) — and a new--query-species(query_species=onrun_sirna_workflow,run_offtarget_only_workflowandWorkflowConfig) 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.jsonsidecar 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 andcombined_*.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 --clearstill 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 indexon 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_*.facut 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_codingrun 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 memaligns 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.0123file 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 runsirnaforge cache --clear-transcriptometo 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_entriespersisted a datetime64cached_at, after which everyputraised and the cache was permanently write-dead with only one warning to show for it;population_afswas never stored at all, so a warm run returned a record with no population allele frequencies — the field--variant-mode avoidfilters on; and the cache key omittedvariant_mode, which matters becauseresolve_variantserves a hit without re-running the filters, so anavoidrun and atargetrun at the same--min-afshared 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.%fwhen microsecond is exactly 0, and pandas 2.x raises on the resulting mixed-layout column, which quietly turnedcleanup_stale_entries()andget_stats()into no-ops. Fixed:putrebuilds the frame against a canonical schema (and now carries through any column a newer sirnaforge added rather than dropping it), the cache key coversvariant_mode, andget/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 asDiscarding pre-0.6.0 cache entry ...).
Added
Four new pure modules the hit-classification/scoring overhaul is built on:
sirnaforge.data.transcript_index(per-speciesTranscriptGeneIndex/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), andsirnaforge.core.scoring(compute_compositeand 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. NewSiRNACandidate.repeat_flagged/repeat_transcript_fractionfields record the verdict; flagged, currently-passing candidates get the newFilterStatus.REPEAT_ELEMENTverdict 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 exceedsOffTargetFilterCriteria.max_off_target_count.New output columns in
SiRNACandidate,SiRNACandidateSchemaand 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_summarygainsrepeat_excluded_countandrepeat_threshold_fraction.offtarget_summarygainshit_classes(on_target/ortholog/repeat/off_targettotals),query_gene_transcripts_recognised,ortholog_symbol_lookup_missesandspecies_index_misses.manifest.jsongains ascoringblock:{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.fastaare nowcandidates_all.csv/candidates_pass.csv/candidates_pass.fasta, and the ZFN artifactszfn_offtarget_sites.csv/zfn_candidate_summary.jsonare nowofftarget_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-globdefaults on the internal ZFN commands were still emitting thezfn_-prefixed names, so aggregated shard output did not match whatsirnaforge workflow --design-mode zfnwrote. Migration: replace${gene}_pass.csvwithcandidates_pass.csvin downstream scripts. Thezfn_candidate_summary.v1schema identifier insidecandidate_summary.jsonis unchanged — only filenames moved.The ZFN arm ships EXPERIMENTAL, and now says so everywhere.
sirnaforge zfn,sirnaforge workflow --design-mode zfnand theZFNDesigner().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 aWARNINGlog record; with sirnaforge’s own logging that surfaces on stdout (get_loggeralways 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 ofdocs/developer/testing_guide.md, thesirnaforge.zfnAPI reference, andnotebooks/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-sitemust be the reverse complement of the published(−)text, so every ZFN example in the docs and notebooks now passesCTTTTGCAGTTTrather thanAAACTGCAAAAG, which returned 0 sites. If you have a saved ZFN command, apply the same substitution.worst_site_scoreandbest_offtarget_scoreare inverted incandidate_summary.json:worst_site_scoreis the minimum site score andbest_offtarget_scorethe 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
pyahocorasickbackend raisesValueErrorabove 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.mdpreviously recommended that default with no such caveat; use--zfn-search-backend exhaustive_pythonfor 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.mdno longer routes reviewers to those runbooks as validation.
composite_scoreis 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 inmanifest.jsonasscoring.weight_set_version(currently"2.0.0";1.xdenotes the pre-#80 five-term set), so the two regimes cannot be silently compared. Weights, term by term:Term
Old weight
New weight
Note
asymmetry0.15
0.12
gc_content0.15
0.10
accessibility0.20
0.13
empirical0.20
0.15
off_target0.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_countis 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 inflatingoff_target_count; off-target counts for the same target will drop substantially. The mismatch-stratifiedtranscriptome_hits_{0,1,2}mmcounters are likewise redefined to count genuine off-targets only, and themax_transcriptome_hits_*thresholds inOffTargetFilterCriteriaare 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’sNMtag for a clipped or gapped alignment: a15M6S/NM:i:0partial hit counts as 6, so it lands in no stratum rather than in0mm. Such hits are still counted in full bytranscriptome_hits_totalandoff_target_count, whichmax_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.TranscriptGeneIndexnow 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 staysoff_targetand 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_inputdeduplicates 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_nno longer gates which candidates are screened — it keeps its reporting meaning only (how many candidates land intop_candidates). Candidates are re-ranked by the post-screen composite score once screening completes, andtop_candidatesis 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 feedscomposite_scoreunder any name. For the standalonesirnaforge designpath (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.ScoringWeightsvalidation moved from a positionalfield_validatoronempirical(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 amodel_validator(mode="after")that sums all seven fields by name; an out-of-tolerance sum now always raises at configuration time.SiRNACandidate.FilterStatusgained the six off-target verdicts that previously existed only as raw strings inworkflow.py(TRANSCRIPTOME_PERFECT_MATCH,TRANSCRIPTOME_1MM,TRANSCRIPTOME_2MM,MIRNA_PERFECT_SEED,HIGH_RISK_MIRNA,TOTAL_OFFTARGETS), plusREPEAT_ELEMENTandEXCESS_OFF_TARGETS. The Pandera allow-list inSiRNACandidateSchemanow derives from the enum instead of maintaining its own copy, so the two cannot drift again.
Removed
Eight
FilterCriteriathermodynamic 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 toOffTargetFilterCriteria.max_off_target_count, where it is now enforced post-screen (seeFilterStatus.EXCESS_OFF_TARGETSabove).SiRNACandidate.on_target_transcriptome_hits(and its CSV column), superseded byon_target_hits: two columns for the same quantity would drift, and the older one was only one release old.on_target_confirmedis 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_sequenceis already the reverse complement ofguide_sequence, but both ViennaRNA call sites reverse-complemented it again, socalculate_duplex_stabilityfoldedguide & guideand_calculate_end_stabilityfoldedguide[:7] & guide[-7:]. ViennaRNA’s cofold MFE is symmetric in its two strands, so at the defaultsirna_length=21the 5’ and 3’ end folds were the same pair of 7-mers:dg_5p == dg_3pexactly, which pinnedasymmetry_scoreto the constant 0.5 for every candidate anddelta_dg_endto 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 positivedg_5p/dg_3pdrop 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_ASYMMETRYwas assigned by testing the empirical score._calculate_empirical_scorecompared its own value againstfilters.min_asymmetry_score;asymmetry_scorewas computed, stored, exported, and never gated. Since the simplified Reynolds rule caps at 0.70, the default threshold of 0.65 reduced eligibility toguide[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_bonusskipped all 144 T-initiated guides; every A:U pair at guide position 1 (257 of 505) was classifiedmismatchand collected an undeservedpos1_mismatch_bonus, while the G:U wobble branch could never fire at all; andsupp_13_16_scorecounted no T, capping at 0.75 with 176 candidates stuck at 0.0.Melting temperature was a scaled ΔG.
37 + 2 * -ΔGcannot 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’sTm_NNon 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 + bonusand so preserves the order the clamp was destroying.duplex_stability_scoresaturated. 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 feedcomposite_score.The run manifest was not a record of the run.
manifest.jsonlisted four design parameters, somin_asymmetry_score, the homopolymer gate, the scoring weights and the design mode appeared nowhere in it. Bothmanifest.jsonandlogs/workflow_summary.jsonnow dumpDesignParameterswholesale, so a newly added parameter cannot go unrecorded; the manifest also carriestool_version.Corrected the
delta_dg_endsign convention inFilterCriteria,SiRNACandidateSchemaand the tutorials: it isdg_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 matchesFilterCriteria.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_ASYMMETRY84.6% (mislabelled) -> 66.1% (real thermodynamic asymmetry), plusLOW_EMPIRICAL_SCORE4.6%.min_empirical_scoredefaults 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): passblocks around filter assignment rather than making them log.FilterStatusis always present and assigning a str-enum to a Pydantic field withoutvalidate_assignmentcannot 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 tocomposite_score.Documented that
mfe_*,duplex_stability_*,melting_temp_*,delta_dg_end_*andmax_off_target_countinFilterCriteriahave no reader insrc/— they are reference ranges, not filters. Wiring them up needs calibration against truth data, and theduplex_stabilitywindow in particular is unreachable now that duplex ΔG is correct.Rewrote the
awkfilter examples indocs/thermodynamic_guide.mdto resolve columns by header name, so they survive column-set changes such asoff_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. Newsirnaforge zfnCLI command andzfn_candidate_summary.json/zfn_offtarget_sites.csvoutputs.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_primarywas 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_referencesmodule: a single Ensembl assembly table generates both the transcriptome cDNA and genome DNASOURCES, so adding a species is a one-line change.
Fixed
miRNA seed hits are now scoped to the seed region.
run_mirna_seed_analysispreviously 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, inflatingtotal_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-basedcoord == seed_start - 1); non-seed matches are retained in the*_rawoutputs 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-relativeseed_start..seed_endthreshold, 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()returnsNone(no cap), and the defaultmax_hitsforBwaAnalyzer,run_bwa_alignment_analysis, andrun_comprehensive_offtarget_analysisisNoneinstead of10000.SIRNAFORGE_MIRNA_MAX_HITScan still impose a cap. A silent cap biased downstream hit counts.--zfn-search-spaceCLI help now lists the built-in genome keys;docs/zfn_module.mddocuments the reference table. Rat/macaque use Ensembl’sdna.toplevelfile (verified: those assemblies do not publishdna.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
ZFNSearchBackendsupport across workflow, CLI, and typed ZFN contracts.Added optional backend engines for
pyahocorasickandfm_indexalongsideexhaustive_python.
Persisted ZFN search-space index bundles:
Added
fm_indexbundle build/load support with manifest + artifact validation.Added internal CLI command
sirnaforge internal zfn-build-search-indexfor 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
pyahocorasickas the operational default.Kept
exhaustive_pythonas 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.0fm-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.jsonandzfn_offtarget_sites.csvoutputs.
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.shEnhanced 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.0for Parquet supportUpdated 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
AbstractTranscriptAnnotationClientinterface insrc/sirnaforge/data/base.pyImplemented
EnsemblTranscriptModelClientusing Ensembl REST API (lookup/id and overlap/region endpoints)Added
VepConsequenceClientstub for optional VEP enrichment (behind config flag, placeholder implementation)New Pydantic models:
Interval,TranscriptAnnotation, andTranscriptAnnotationBundleinsrc/sirnaforge/models/transcript_annotation.pyIn-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, makingsirnaforgeandnextflowunavailableAdded
/etc/profile.d/conda-path.shto preserve conda toolchain paths in login shellsNon-login shells continue to work as before
Added regression test
test_docker_login_shell_path()to container test suiteAdded standalone test script
scripts/test-docker-login-shell.shfor 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 workflowReplaced invalid
ifEmpty([])/ifEmpty('')usage withifEmpty { [] }/ifEmpty { '' }Switched from
collect()totoList()for explicit channel materialization before combining genome + miRNA result lists
[0.3.1] - 2025-12-04
Added
Dirty Control Injection:
workflow.pynow carries the worst rejected guides forward as “dirty control” candidates (seesirnaforge/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.) pluspipeline/nextflow_cli.pywere refactored to emit consolidated TSV/JSON artefacts even when some analyses are skipped, ensuring miRNA/genome summaries always arrive inworkflow_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, livesirnaforgecommand 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.mdSimplified usage examples from redundant variations to minimal/comprehensive pattern
Improved user experience with consistent execution context switching
GC Content Default Update: Increased default
--gc-maxfrom 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-releasejob with full coverage reportingImproved 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-testRemoved 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.0to production dependenciesRequired 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→-versionFixed 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-releaseto run all test tiersNow 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-releasenow 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 mirnaoption for microRNA-specific siRNA designSpecialized
MiRNADesignersubclass with miRNA-biogenesis-aware scoringEnhanced CSV schema with miRNA-specific columns (strand_role, biogenesis_score)
CLI support via
--design-modeflag 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-dband--mirna-speciesflags
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_countandtranscript_hit_fractiontrack guide specificitymiRNA 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.mdandquick_reference.mdinto comprehensive guideStreamlined 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
--modificationsand--overhangCLI flags for workflow and design commandsFDA-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-fastawith automatic HTTP download and cachingEnhanced 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 showcommand with JSON/FASTA/table output formatsCLI
sequences annotatecommand for merging metadata into FASTA filesStandardized
+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 updatesComprehensive 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 analysissirnaforge search: Gene and transcript searchsirnaforge design: siRNA candidate generationsirnaforge validate: Input file validationsirnaforge config: Configuration displaysirnaforge 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