CLI Reference

Auto-generated: All command output below is captured live during documentation build from the actual sirnaforge CLI.

This reference shows each command with its real --help output and working examples.

Help & Version

Main Help

                                                                               
 Usage: sirnaforge [OPTIONS] COMMAND [ARGS]...                                 
                                                                               
 siRNAforge - siRNA design toolkit for gene silencing                          
                                                                               
β”Œβ”€ Options ───────────────────────────────────────────────────────────────────┐
β”‚ --install-completion          Install completion for the current shell.     β”‚
β”‚ --show-completion             Show completion for the current shell, to     β”‚
β”‚                               copy it or customize the installation.        β”‚
β”‚ --help                        Show this message and exit.                   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”Œβ”€ Commands ──────────────────────────────────────────────────────────────────┐
β”‚ search     Search transcript references and optionally fetch sequences.     β”‚
β”‚ workflow   Run the end-to-end workflow: transcripts β†’ siRNA design β†’        β”‚
β”‚            off-target.                                                      β”‚
β”‚ offtarget  Run off-target analysis on pre-designed siRNA candidates.        β”‚
β”‚ zfn        Evaluate a ZFN pair and run exhaustive genome-wide off-target    β”‚
β”‚            search (EXPERIMENTAL).                                           β”‚
β”‚ design     Design siRNA candidates from a transcript FASTA file.            β”‚
β”‚ validate   Validate a FASTA file and report basic statistics.               β”‚
β”‚ version    Show CLI version and author information.                         β”‚
β”‚ annotate   Resolve transcript structure from local GENCODE or RefSeq        β”‚
β”‚            GTF/GFF3 files.                                                  β”‚
β”‚ config     Print the parameter values a default run resolves to.            β”‚
β”‚ cache      Inspect and clear the unified reference cache.                   β”‚
β”‚ report     Build a compact, paged, or data-backed HTML report over a        β”‚
β”‚            finished run.                                                    β”‚
β”‚ benchmark  Fixed-length benchmark artifacts and prepare/design commands     β”‚
β”‚            (#109)                                                           β”‚
β”‚ sequences  Manage siRNA sequences and metadata                              β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Version

β”Œβ”€β”€β”€β”€β”€β”€β”€ Version Info ───────┐
β”‚ 🧬 siRNAforge Toolkit      β”‚
β”‚ Version: 0.8.0             β”‚
β”‚ Author: Austin S. Hovland. β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

workflow

Run complete siRNA design from gene query to scored candidates.

Help

                                                                               
 Usage: sirnaforge workflow [OPTIONS] {gene_query}                             
                                                                               
 Run the end-to-end workflow: transcripts β†’ siRNA design β†’ off-target.         
                                                                               
 This is the main orchestration command. It resolves transcriptome and miRNA   
 reference policies, designs candidates, and then runs off-target analysis on  
 the selected top candidates.                                                  
                                                                               
β”Œβ”€ Arguments ─────────────────────────────────────────────────────────────────┐
β”‚ *    gene_query      <str>  Gene name or ID to analyze [required]           β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”Œβ”€ Options ───────────────────────────────────────────────────────────────────┐
β”‚ --run-mode                               <str>            How much          β”‚
β”‚                                                           screening         β”‚
β”‚                                                           evidence this run β”‚
β”‚                                                           claims:           β”‚
β”‚                                                           design_only,      β”‚
β”‚                                                           exploratory or    β”‚
β”‚                                                           qualified.        β”‚
β”‚                                                           Defaults to       β”‚
β”‚                                                           qualified for     β”‚
β”‚                                                           this command;     β”‚
β”‚                                                           --skip-off-targe… β”‚
β”‚                                                           maps to           β”‚
β”‚                                                           design_only.      β”‚
β”‚                                                           Independent of    β”‚
β”‚                                                           --design-mode.    β”‚
β”‚ --policy-config                          <path>           JSON or TOML file β”‚
β”‚                                                           of policy         β”‚
β”‚                                                           settings. Beats   β”‚
β”‚                                                           the built-in      β”‚
β”‚                                                           profile and loses β”‚
β”‚                                                           to options given  β”‚
β”‚                                                           on the command    β”‚
β”‚                                                           line. Unknown     β”‚
β”‚                                                           setting names are β”‚
β”‚                                                           rejected, not     β”‚
β”‚                                                           ignored.          β”‚
β”‚ --target-intent…                         <file>           JSON declaration  β”‚
β”‚                                                           of pan-isoform or β”‚
β”‚                                                           isoform-selective β”‚
β”‚                                                           target intent,    β”‚
β”‚                                                           resolved against  β”‚
β”‚                                                           full annotations. β”‚
β”‚ --transcript-se…                         <str>            Comma-separated   β”‚
β”‚                                                           species to scan   β”‚
β”‚                                                           for canonical     β”‚
β”‚                                                           siRNA seed sites  β”‚
β”‚                                                           using resolved    β”‚
β”‚                                                           full              β”‚
β”‚                                                           transcriptome     β”‚
β”‚                                                           FASTAs.           β”‚
β”‚ --transcript-se…                         <str>            Subset of         β”‚
β”‚                                                           --transcript-see… β”‚
β”‚                                                           required for      β”‚
β”‚                                                           candidate         β”‚
β”‚                                                           qualification;    β”‚
β”‚                                                           remaining species β”‚
β”‚                                                           are exploratory.  β”‚
β”‚ --transcript-se…                         <full_cdna|thre  Transcript        β”‚
β”‚                                          e_prime_utr>     sequence region   β”‚
β”‚                                                           scanned:          β”‚
β”‚                                                           full_cdna or      β”‚
β”‚                                                           three_prime_utr   β”‚
β”‚                                                           (requires         β”‚
β”‚                                                           explicit UTR      β”‚
β”‚                                                           annotation).      β”‚
β”‚                                                           [default:         β”‚
β”‚                                                           full_cdna]        β”‚
β”‚ --report-mode                            <str>            Report mode:      β”‚
β”‚                                                           auto,             β”‚
β”‚                                                           compact_single_f… β”‚
β”‚                                                           paged_single_fil… β”‚
β”‚                                                           data_backed.      β”‚
β”‚                                                           [default: auto]   β”‚
β”‚ --aligner                                <str>            Transcriptome     β”‚
β”‚                                                           aligner: bwa-mem2 β”‚
β”‚                                                           or bwa-mem3.      β”‚
β”‚                                                           [default:         β”‚
β”‚                                                           bwa-mem2]         β”‚
β”‚ --max-transcrip…                         <int range>      Optional          β”‚
β”‚                                          [x>=0]           per-guide site    β”‚
β”‚                                                           ceiling across    β”‚
β”‚                                                           required          β”‚
β”‚                                                           transcript-seed   β”‚
β”‚                                                           species.          β”‚
β”‚ --species-liabi…                         <str>            JSON object keyed β”‚
β”‚                                                           by species, with  β”‚
β”‚                                                           one or more       β”‚
β”‚                                                           ceilings and an   β”‚
β”‚                                                           action (fail or   β”‚
β”‚                                                           warn), e.g.       β”‚
β”‚                                                           '{"human":{"tran… β”‚
β”‚ --filter-action                          <str>            Set one filter's  β”‚
β”‚                                                           action:           β”‚
β”‚                                                           filter_id=off|wa… β”‚
β”‚                                                           (repeatable).     β”‚
β”‚                                                           'off' clears the  β”‚
β”‚                                                           gate's threshold, β”‚
β”‚                                                           so it is not      β”‚
β”‚                                                           evaluated --      β”‚
β”‚                                                           which is not the  β”‚
β”‚                                                           same as passing   β”‚
β”‚                                                           -- and works for  β”‚
β”‚                                                           these gates:      β”‚
β”‚                                                           min_isoform_cove… β”‚
β”‚                                                           max_off_target_c… β”‚
β”‚                                                           max_transcriptom… β”‚
β”‚                                                           max_transcriptom… β”‚
β”‚                                                           max_transcriptom… β”‚
β”‚                                                           max_transcriptom… β”‚
β”‚                                                           max_transcript_s… β”‚
β”‚                                                           max_mirna_perfec… β”‚
β”‚                                                           max_mirna_1mm_se… β”‚
β”‚                                                           fail_on_high_ris… β”‚
β”‚                                                           max_total_offtar… β”‚
β”‚                                                           The seven         β”‚
β”‚                                                           design-stage      β”‚
β”‚                                                           gates read a      β”‚
β”‚                                                           threshold with no β”‚
β”‚                                                           absent state and  β”‚
β”‚                                                           are refused       β”‚
β”‚                                                           rather than       β”‚
β”‚                                                           faked; widen the  β”‚
β”‚                                                           threshold         β”‚
β”‚                                                           instead. 'warn'   β”‚
β”‚                                                           keeps the gate    β”‚
β”‚                                                           measuring and     β”‚
β”‚                                                           stops it          β”‚
β”‚                                                           rejecting: the    β”‚
β”‚                                                           outcome is        β”‚
β”‚                                                           published in      β”‚
β”‚                                                           <filter_id>_verd… β”‚
β”‚                                                           and               β”‚
β”‚                                                           <filter_id>_obse… β”‚
β”‚                                                           and               β”‚
β”‚                                                           passes_filters is β”‚
β”‚                                                           left alone, so a  β”‚
β”‚                                                           'fail' verdict on β”‚
β”‚                                                           a retained        β”‚
β”‚                                                           candidate is a    β”‚
β”‚                                                           finding, not a    β”‚
β”‚                                                           contradiction.    β”‚
β”‚                                                           Every declared    β”‚
β”‚                                                           gate honours it,  β”‚
β”‚                                                           including the     β”‚
β”‚                                                           four that used to β”‚
β”‚                                                           reject            β”‚
β”‚                                                           regardless:       β”‚
β”‚                                                           gc_content_min,   β”‚
β”‚                                                           gc_content_max    β”‚
β”‚                                                           and max_poly_runs β”‚
β”‚                                                           decide during     β”‚
β”‚                                                           enumeration and   β”‚
β”‚                                                           now retain the    β”‚
β”‚                                                           candidate (marked β”‚
β”‚                                                           GATE_WARNED), and β”‚
β”‚                                                           max_repeat_trans… β”‚
β”‚                                                           no longer stamps  β”‚
β”‚                                                           REPEAT_ELEMENT    β”‚
β”‚                                                           nor drops the     β”‚
β”‚                                                           guide from the    β”‚
β”‚                                                           shortlist.        β”‚
β”‚                                                           Warning a repeat  β”‚
β”‚                                                           gate has a        β”‚
β”‚                                                           consequence worth β”‚
β”‚                                                           knowing: a        β”‚
β”‚                                                           repeat-ubiquitous β”‚
β”‚                                                           guide's           β”‚
β”‚                                                           alignments        β”‚
β”‚                                                           classify as       β”‚
β”‚                                                           'repeat' rather   β”‚
β”‚                                                           than as           β”‚
β”‚                                                           liabilities, so   β”‚
β”‚                                                           retaining it also β”‚
β”‚                                                           spares it         β”‚
β”‚                                                           max_off_target_c… β”‚
β”‚                                                           -- widen the      β”‚
β”‚                                                           threshold instead β”‚
β”‚                                                           if you want it    β”‚
β”‚                                                           judged on its     β”‚
β”‚                                                           hits. An action   β”‚
β”‚                                                           can only turn a   β”‚
β”‚                                                           gate off, never   β”‚
β”‚                                                           on: 'warn' and    β”‚
β”‚                                                           'fail' are        β”‚
β”‚                                                           refused for a     β”‚
β”‚                                                           gate that would   β”‚
β”‚                                                           be off anyway (no β”‚
β”‚                                                           threshold, no     β”‚
β”‚                                                           screening         β”‚
β”‚                                                           evidence, or no   β”‚
β”‚                                                           0.7.1 reader --   β”‚
β”‚                                                           max_mirna_1mm_se… β”‚
β”‚ --input-fasta                            <str>            Local path or     β”‚
β”‚                                                           remote URI to an  β”‚
β”‚                                                           input FASTA file  β”‚
β”‚                                                           (http/https/ftp)  β”‚
β”‚ --output-dir      -o                     <path>           Output directory  β”‚
β”‚                                                           for all workflow  β”‚
β”‚                                                           results           β”‚
β”‚                                                           [default:         β”‚
β”‚                                                           sirna_workflow_o… β”‚
β”‚ --database        -d                     <str>            Database to       β”‚
β”‚                                                           search (ensembl,  β”‚
β”‚                                                           refseq, gencode)  β”‚
β”‚                                                           [default:         β”‚
β”‚                                                           ensembl]          β”‚
β”‚ --design-mode                            <str>            Design mode:      β”‚
β”‚                                                           sirna (default),  β”‚
β”‚                                                           mirna             β”‚
β”‚                                                           (miRNA-biogenesi… β”‚
β”‚                                                           or zfn            β”‚
β”‚                                                           (EXPERIMENTAL)    β”‚
β”‚                                                           [default: sirna]  β”‚
β”‚ --zfn-subfinger…                         <str>            ZFN sub-finger    β”‚
β”‚                                                           mutation          β”‚
β”‚                                                           allowance.        β”‚
β”‚                                                           Repeatable        β”‚
β”‚                                                           format:           β”‚
β”‚                                                           scope:max_mutati… β”‚
β”‚                                                           scope can be      β”‚
β”‚                                                           subfinger index   β”‚
β”‚                                                           (e.g. 2), '*' for β”‚
β”‚                                                           default           β”‚
β”‚                                                           per-subfinger, or β”‚
β”‚                                                           'overall' for     β”‚
β”‚                                                           global budgets.   β”‚
β”‚                                                           Use 'mismatch' as β”‚
β”‚                                                           a shorthand alias β”‚
β”‚                                                           for               β”‚
β”‚                                                           'substitution'.   β”‚
β”‚ --zfn-max-misma…                         <int range>      Convenience       β”‚
β”‚                                          [x>=0]           option equivalent β”‚
β”‚                                                           to                β”‚
β”‚                                                           --zfn-subfinger-… β”‚
β”‚                                                           '*:<N>:mismatch'. β”‚
β”‚ --zfn-max-subst…                         <int range>      Convenience       β”‚
β”‚                                          [x>=0]           option equivalent β”‚
β”‚                                                           to                β”‚
β”‚                                                           --zfn-subfinger-… β”‚
β”‚                                                           'overall:<N>:sub… β”‚
β”‚ --zfn-left-half…                         <str>            Left ZFN          β”‚
β”‚                                                           half-site         β”‚
β”‚                                                           sequence (9-18    β”‚
β”‚                                                           bp, IUPAC         β”‚
β”‚                                                           allowed).         β”‚
β”‚                                                           Required for      β”‚
β”‚                                                           --design-mode     β”‚
β”‚                                                           zfn.              β”‚
β”‚ --zfn-right-hal…                         <str>            Right ZFN         β”‚
β”‚                                                           half-site         β”‚
β”‚                                                           sequence (9-18    β”‚
β”‚                                                           bp, IUPAC         β”‚
β”‚                                                           allowed).         β”‚
β”‚                                                           Required for      β”‚
β”‚                                                           --design-mode     β”‚
β”‚                                                           zfn.              β”‚
β”‚ --zfn-search-sp…                         <str>            Genome reference  β”‚
β”‚                                                           key or local      β”‚
β”‚                                                           FASTA path for    β”‚
β”‚                                                           ZFN off-target    β”‚
β”‚                                                           search space.     β”‚
β”‚                                                           Built-in keys:    β”‚
β”‚                                                           ensembl_human_hg… β”‚
β”‚                                                           ensembl_mouse_gr… β”‚
β”‚                                                           ensembl_rat_grcr… β”‚
β”‚                                                           ensembl_macaque_… β”‚
β”‚                                                           Default:          β”‚
β”‚                                                           ensembl_human_hg… β”‚
β”‚                                                           when              β”‚
β”‚                                                           --design-mode     β”‚
β”‚                                                           zfn.              β”‚
β”‚ --zfn-search-sp…                         <str>            Optional          β”‚
β”‚                                                           persisted         β”‚
β”‚                                                           search-space      β”‚
β”‚                                                           index bundle path β”‚
β”‚                                                           for indexed ZFN   β”‚
β”‚                                                           backends          β”‚
β”‚                                                           (currently        β”‚
β”‚                                                           fm_index;         β”‚
β”‚                                                           fm_index is       β”‚
β”‚                                                           experimental on   β”‚
β”‚                                                           large             β”‚
β”‚                                                           references).      β”‚
β”‚ --zfn-search-ba…                         <exhaustive_pyt  Half-site search  β”‚
β”‚                                          hon|pyahocorasi  backend:          β”‚
β”‚                                          ck|fm_index>     pyahocorasick     β”‚
β”‚                                                           (default),        β”‚
β”‚                                                           exhaustive_python β”‚
β”‚                                                           (baseline), or    β”‚
β”‚                                                           fm_index          β”‚
β”‚                                                           (experimental).   β”‚
β”‚                                                           [default:         β”‚
β”‚                                                           pyahocorasick]    β”‚
β”‚ --zfn-algorithm                          <homology|conse  ZFN off-target    β”‚
β”‚                                          rved_g|zfn_v2>   scoring           β”‚
β”‚                                                           algorithm:        β”‚
β”‚                                                           homology,         β”‚
β”‚                                                           conserved_g, or   β”‚
β”‚                                                           zfn_v2 (default). β”‚
β”‚                                                           [default: zfn_v2] β”‚
β”‚ --zfn-dimer-mode                         <heterodimer_on  Dimer mode:       β”‚
β”‚                                          ly|include_homo  heterodimer_only  β”‚
β”‚                                          dimers>          (default) or      β”‚
β”‚                                                           include_homodime… β”‚
β”‚                                                           [default:         β”‚
β”‚                                                           heterodimer_only] β”‚
β”‚ --zfn-spacer-le…                         <str>            Comma-separated   β”‚
β”‚                                                           allowed spacer    β”‚
β”‚                                                           lengths between   β”‚
β”‚                                                           half-sites        β”‚
β”‚                                                           (default: 5,6,7). β”‚
β”‚                                                           [default: 5,6,7]  β”‚
β”‚ --zfn-max-misma…                         <int range>      Max mismatches    β”‚
β”‚                                          [0<=x<=6]        per half-site in  β”‚
β”‚                                                           exhaustive        β”‚
β”‚                                                           genomic search    β”‚
β”‚                                                           (default: 2).     β”‚
β”‚                                                           [default: 2]      β”‚
β”‚ --cores                                  <int range>      Total CPU core    β”‚
β”‚                                          [x>=1]           budget for        β”‚
β”‚                                                           workflow          β”‚
β”‚                                                           execution. ZFN    β”‚
β”‚                                                           sharding and      β”‚
β”‚                                                           workflow parallel β”‚
β”‚                                                           stages derive     β”‚
β”‚                                                           from this.        β”‚
β”‚                                                           [env var:         β”‚
β”‚                                                           SIRNAFORGE_CORES] β”‚
β”‚ --zfn-annotation                         <str>            Optional GTF/GFF  β”‚
β”‚                                                           annotation file   β”‚
β”‚                                                           for ZFN           β”‚
β”‚                                                           off-target region β”‚
β”‚                                                           classification.   β”‚
β”‚ --top-n           -n                     <int range>      Cap how many      β”‚
β”‚                                          [x>=1]           distinct guide    β”‚
β”‚                                                           sequences are     β”‚
β”‚                                                           shortlisted       β”‚
β”‚                                                           (default: no cap, β”‚
β”‚                                                           report all).      β”‚
β”‚                                                           Screening and     β”‚
β”‚                                                           enumeration       β”‚
β”‚                                                           always cover      β”‚
β”‚                                                           every candidate,  β”‚
β”‚                                                           so this only      β”‚
β”‚                                                           truncates the     β”‚
β”‚                                                           reported set --   β”‚
β”‚                                                           leave it unset to β”‚
β”‚                                                           keep the full     β”‚
β”‚                                                           design space.     β”‚
β”‚ --species                                <str>            Comma-separated   β”‚
β”‚                                                           canonical species β”‚
β”‚                                                           identifiers. This β”‚
β”‚                                                           single parameter  β”‚
β”‚                                                           drives all        β”‚
β”‚                                                           off-target        β”‚
β”‚                                                           analysis: miRNA   β”‚
β”‚                                                           database lookups  β”‚
β”‚                                                           (default: 5       β”‚
β”‚                                                           species) and      β”‚
β”‚                                                           transcriptome     β”‚
β”‚                                                           fetching from     β”‚
β”‚                                                           Ensembl (default: β”‚
β”‚                                                           4 species).       β”‚
β”‚                                                           Override specific β”‚
β”‚                                                           layers with       β”‚
β”‚                                                           --mirna-species   β”‚
β”‚                                                           or                β”‚
β”‚                                                           --transcriptome-… β”‚
β”‚                                                           Supported: human, β”‚
β”‚                                                           mouse, macaque,   β”‚
β”‚                                                           rat, chicken,     β”‚
β”‚                                                           pig, rhesus       β”‚
β”‚                                                           [default:         β”‚
β”‚                                                           chicken,rat,mous… β”‚
β”‚ --query-species                          <str>            Organism the      β”‚
β”‚                                                           TARGET            β”‚
β”‚                                                           transcripts       β”‚
β”‚                                                           belong to, which  β”‚
β”‚                                                           decides which     β”‚
β”‚                                                           species' hits are β”‚
β”‚                                                           on-target and     β”‚
β”‚                                                           whose alignment   β”‚
β”‚                                                           must succeed      β”‚
β”‚                                                           before candidates β”‚
β”‚                                                           can be scored     β”‚
β”‚                                                           after screening.  β”‚
β”‚                                                           --species is an   β”‚
β”‚                                                           unordered set of  β”‚
β”‚                                                           references to     β”‚
β”‚                                                           screen AGAINST    β”‚
β”‚                                                           and never sets    β”‚
β”‚                                                           this. Defaults to β”‚
β”‚                                                           the organism the  β”‚
β”‚                                                           gene-query        β”‚
β”‚                                                           database serves   β”‚
β”‚                                                           (human), which is β”‚
β”‚                                                           also the species  β”‚
β”‚                                                           of the default    β”‚
β”‚                                                           transcriptome;    β”‚
β”‚                                                           set it when       β”‚
β”‚                                                           designing against β”‚
β”‚                                                           an input FASTA    β”‚
β”‚                                                           from another      β”‚
β”‚                                                           organism.         β”‚
β”‚ --mirna-db                               <str>            miRNA reference:  β”‚
β”‚                                                           mirgenedb         β”‚
β”‚                                                           (default),        β”‚
β”‚                                                           mirbase, or       β”‚
β”‚                                                           mirgenedb+mirbase β”‚
β”‚                                                           (mature-only      β”‚
β”‚                                                           union)            β”‚
β”‚                                                           [default:         β”‚
β”‚                                                           mirgenedb]        β”‚
β”‚ --mirna-referen…                         <file>           JSON manifest of  β”‚
β”‚                                                           pinned local      β”‚
β”‚                                                           miRNA FASTAs with β”‚
β”‚                                                           source, species,  β”‚
β”‚                                                           release and       β”‚
β”‚                                                           SHA-256.          β”‚
β”‚ --mirna-species                          <str>            Override miRNA    β”‚
β”‚                                                           species           β”‚
β”‚                                                           identifiers       β”‚
β”‚                                                           (comma-separated… β”‚
β”‚                                                           When omitted,     β”‚
β”‚                                                           automatically     β”‚
β”‚                                                           maps from         β”‚
β”‚                                                           --species. Use    β”‚
β”‚                                                           this for surgical β”‚
β”‚                                                           control of miRNA  β”‚
β”‚                                                           database queries. β”‚
β”‚ --transcriptome…                         <str>            Override or       β”‚
β”‚                                                           extend            β”‚
β”‚                                                           transcriptome     β”‚
β”‚                                                           references for    β”‚
β”‚                                                           off-target        β”‚
β”‚                                                           analysis.         β”‚
β”‚                                                           Accepts: local    β”‚
β”‚                                                           file, HTTP(S)     β”‚
β”‚                                                           URL, or           β”‚
β”‚                                                           pre-configured    β”‚
β”‚                                                           source (e.g.,     β”‚
β”‚                                                           'ensembl_human_c… β”‚
β”‚                                                           Prefix it with a  β”‚
β”‚                                                           species to state  β”‚
β”‚                                                           one --            β”‚
β”‚                                                           'mouse:/path/cus… β”‚
β”‚                                                           -- otherwise the  β”‚
β”‚                                                           species is read   β”‚
β”‚                                                           from the          β”‚
β”‚                                                           reference's own   β”‚
β”‚                                                           Ensembl cDNA      β”‚
β”‚                                                           headers. When     β”‚
β”‚                                                           omitted,          β”‚
β”‚                                                           automatically     β”‚
β”‚                                                           fetches Ensembl   β”‚
β”‚                                                           cDNA for species  β”‚
β”‚                                                           selected via      β”‚
β”‚                                                           --species. Custom β”‚
β”‚                                                           FASTA files are   β”‚
β”‚                                                           cached and        β”‚
β”‚                                                           indexed           β”‚
β”‚                                                           automatically.    β”‚
β”‚                                                           Use this to add   β”‚
β”‚                                                           novel sequences   β”‚
β”‚                                                           (e.g., synthetic  β”‚
β”‚                                                           contigs) to the   β”‚
β”‚                                                           default set.      β”‚
β”‚ --transcriptome…                         <str>            Filter            β”‚
β”‚                                                           transcriptome to  β”‚
β”‚                                                           reduce size and   β”‚
β”‚                                                           memory            β”‚
β”‚                                                           requirements.     β”‚
β”‚                                                           Comma-separated   β”‚
β”‚                                                           filter names:     β”‚
β”‚                                                           'protein_coding'  β”‚
β”‚                                                           (only             β”‚
β”‚                                                           protein-coding    β”‚
β”‚                                                           genes),           β”‚
β”‚                                                           'canonical_only'  β”‚
β”‚                                                           (only canonical   β”‚
β”‚                                                           isoforms).        β”‚
β”‚                                                           Example:          β”‚
β”‚                                                           --transcriptome-… β”‚
β”‚                                                           protein_coding,c… β”‚
β”‚                                                           Filtered versions β”‚
β”‚                                                           are cached        β”‚
β”‚                                                           separately with   β”‚
β”‚                                                           automatic         β”‚
β”‚                                                           indexing.         β”‚
β”‚ --transcriptome…                         <str>            Transcriptome     β”‚
β”‚                                                           BWA-MEM2 indices  β”‚
β”‚                                                           you have already  β”‚
β”‚                                                           built, as         β”‚
β”‚                                                           species:prefix    β”‚
β”‚                                                           entries:          β”‚
β”‚                                                           human:/abs/path/… β”‚
β”‚                                                           The species named β”‚
β”‚                                                           here is that      β”‚
β”‚                                                           reference's       β”‚
β”‚                                                           species. Explicit β”‚
β”‚                                                           indices replace   β”‚
β”‚                                                           automatic         β”‚
β”‚                                                           transcriptome     β”‚
β”‚                                                           downloads;        β”‚
β”‚                                                           --transcriptome-… β”‚
β”‚                                                           can explicitly    β”‚
β”‚                                                           add another       β”‚
β”‚                                                           reference. The    β”‚
β”‚                                                           cDNA FASTA the    β”‚
β”‚                                                           index was built   β”‚
β”‚                                                           from must be      β”‚
β”‚                                                           readable beside   β”‚
β”‚                                                           the prefix (the   β”‚
β”‚                                                           prefix itself, or β”‚
β”‚                                                           <prefix>.fa) so   β”‚
β”‚                                                           hits can be       β”‚
β”‚                                                           resolved to       β”‚
β”‚                                                           genes.            β”‚
β”‚ --ortholog-mapp…                         <path>           JSON file of      β”‚
β”‚                                                           query gene ->     β”‚
β”‚                                                           species ->        β”‚
β”‚                                                           orthologue gene   β”‚
β”‚                                                           IDs, e.g.         β”‚
β”‚                                                           {"ENSG0000014151… β”‚
β”‚                                                           {"mouse":         β”‚
β”‚                                                           ["ENSMUSG0000005… β”‚
β”‚                                                           Use it to         β”‚
β”‚                                                           classify          β”‚
β”‚                                                           cross-species     β”‚
β”‚                                                           hits offline      β”‚
β”‚                                                           instead of        β”‚
β”‚                                                           calling Ensembl   β”‚
β”‚                                                           Compara; a        β”‚
β”‚                                                           species the file  β”‚
β”‚                                                           omits falls back  β”‚
β”‚                                                           to the labelled   β”‚
β”‚                                                           gene-symbol       β”‚
β”‚                                                           heuristic.        β”‚
β”‚ --gc-min                                 <float range>    Minimum GC        β”‚
β”‚                                          [0.0<=x<=100.0]  content           β”‚
β”‚                                                           percentage        β”‚
β”‚                                                           (default: 30.0;   β”‚
β”‚                                                           --design-mode     β”‚
β”‚                                                           mirna defaults to β”‚
β”‚                                                           30.0). Any value  β”‚
β”‚                                                           in 0-100 is       β”‚
β”‚                                                           supported.        β”‚
β”‚ --gc-max                                 <float range>    Maximum GC        β”‚
β”‚                                          [0.0<=x<=100.0]  content           β”‚
β”‚                                                           percentage        β”‚
β”‚                                                           (default: 60.0;   β”‚
β”‚                                                           --design-mode     β”‚
β”‚                                                           mirna defaults to β”‚
β”‚                                                           52.0). Any value  β”‚
β”‚                                                           in 0-100 is       β”‚
β”‚                                                           supported, and    β”‚
β”‚                                                           stating it keeps  β”‚
β”‚                                                           it in every       β”‚
β”‚                                                           design mode.      β”‚
β”‚ --length          -l                     <int range>      siRNA length in   β”‚
β”‚                                          [19<=x<=23]      nucleotides       β”‚
β”‚                                                           (default: 21)     β”‚
β”‚ --modifications   -m                     <str>            Chemical          β”‚
β”‚                                                           modification      β”‚
β”‚                                                           pattern:          β”‚
β”‚                                                           standard_2ome,    β”‚
β”‚                                                           minimal_terminal, β”‚
β”‚                                                           maximal_stabilit… β”‚
β”‚                                                           none (default:    β”‚
β”‚                                                           standard_2ome)    β”‚
β”‚ --overhang                               <str>            Overhang          β”‚
β”‚                                                           sequence, dTdT    β”‚
β”‚                                                           for DNA or UU for β”‚
β”‚                                                           RNA (default:     β”‚
β”‚                                                           dTdT;             β”‚
β”‚                                                           --design-mode     β”‚
β”‚                                                           mirna defaults to β”‚
β”‚                                                           UU)               β”‚
β”‚ --skip-off-targ…                                          Skip off-target   β”‚
β”‚                                                           analysis          β”‚
β”‚                                                           (faster). Maps to β”‚
β”‚                                                           --run-mode        β”‚
β”‚                                                           design_only.      β”‚
β”‚ --snp                                    <str>            Variant           β”‚
β”‚                                                           identifier(s) for β”‚
β”‚                                                           SNP               β”‚
β”‚                                                           targeting/avoida… β”‚
β”‚                                                           Accepts rsID      β”‚
β”‚                                                           (rs12345),        β”‚
β”‚                                                           coordinate        β”‚
β”‚                                                           (chr17:7577121:G… β”‚
β”‚                                                           or HGVS           β”‚
β”‚                                                           (NM_000546.6:c.2… β”‚
β”‚                                                           Can be specified  β”‚
β”‚                                                           multiple times.   β”‚
β”‚                                                           All variants must β”‚
β”‚                                                           be on GRCh38      β”‚
β”‚                                                           assembly.         β”‚
β”‚ --snp-file                               <path>           VCF file          β”‚
β”‚                                                           containing        β”‚
β”‚                                                           variants for      β”‚
β”‚                                                           targeting/avoida… β”‚
β”‚                                                           Preferably        β”‚
β”‚                                                           bgzip-compressed  β”‚
β”‚                                                           with tabix index  β”‚
β”‚                                                           (.vcf.gz + .tbi)  β”‚
β”‚                                                           for performance.  β”‚
β”‚                                                           Variants are      β”‚
β”‚                                                           filtered by       β”‚
β”‚                                                           --min-af and      β”‚
β”‚                                                           --clinvar-filter… β”‚
β”‚ --variant-mode                           <target|avoid|b  How to handle     β”‚
β”‚                                          oth>             variants in siRNA β”‚
β”‚                                                           design: 'avoid' = β”‚
β”‚                                                           exclude           β”‚
β”‚                                                           candidates        β”‚
β”‚                                                           overlapping       β”‚
β”‚                                                           variants          β”‚
β”‚                                                           (default),        β”‚
β”‚                                                           'target' = design β”‚
β”‚                                                           siRNAs            β”‚
β”‚                                                           specifically      β”‚
β”‚                                                           targeting variant β”‚
β”‚                                                           alleles, 'both' = β”‚
β”‚                                                           generate          β”‚
β”‚                                                           candidates for    β”‚
β”‚                                                           both reference    β”‚
β”‚                                                           and alternate     β”‚
β”‚                                                           alleles.          β”‚
β”‚                                                           [default: avoid]  β”‚
β”‚ --min-af                                 <float range>    Minimum allele    β”‚
β”‚                                          [0.0<=x<=1.0]    frequency         β”‚
β”‚                                                           threshold for     β”‚
β”‚                                                           variant           β”‚
β”‚                                                           inclusion.        β”‚
β”‚                                                           Variants with AF  β”‚
β”‚                                                           below this value  β”‚
β”‚                                                           are excluded      β”‚
β”‚                                                           (default: 0.01 =  β”‚
β”‚                                                           1%%).             β”‚
β”‚                                                           [default: 0.01]   β”‚
β”‚ --clinvar-filte…                         <str>            Comma-separated   β”‚
β”‚                                                           ClinVar clinical  β”‚
β”‚                                                           significance      β”‚
β”‚                                                           levels to         β”‚
β”‚                                                           include. Default: β”‚
β”‚                                                           'Pathogenic,Like… β”‚
β”‚                                                           pathogenic'.      β”‚
β”‚                                                           Other options:    β”‚
β”‚                                                           'Benign', 'Likely β”‚
β”‚                                                           benign',          β”‚
β”‚                                                           'Uncertain        β”‚
β”‚                                                           significance'.    β”‚
β”‚                                                           [default:         β”‚
β”‚                                                           Pathogenic,Likely β”‚
β”‚                                                           pathogenic]       β”‚
β”‚ --variant-assem…                         <str>            Reference genome  β”‚
β”‚                                                           assembly for      β”‚
β”‚                                                           variants (only    β”‚
β”‚                                                           GRCh38 supported) β”‚
β”‚                                                           [default: GRCh38] β”‚
β”‚ --verbose         -v                                      Enable verbose    β”‚
β”‚                                                           output            β”‚
β”‚ --log-file                               <path>           Path to           β”‚
β”‚                                                           centralized log   β”‚
β”‚                                                           file (overrides   β”‚
β”‚                                                           SIRNAFORGE_LOG_F… β”‚
β”‚                                                           env)              β”‚
β”‚ --nextflow-dock…                         <str>            Override the      β”‚
β”‚                                                           Docker image      β”‚
β”‚                                                           passed to         β”‚
β”‚                                                           Nextflow          β”‚
β”‚                                                           (default:         β”‚
β”‚                                                           ghcr.io/austin-s… β”‚
β”‚                                                           [env var:         β”‚
β”‚                                                           SIRNAFORGE_NEXTF… β”‚
β”‚ --max-hits                               <int range>      Cap off-target    β”‚
β”‚                                          [x>=1]           hits retained per β”‚
β”‚                                                           candidate per     β”‚
β”‚                                                           species (default: β”‚
β”‚                                                           exhaustive, no    β”‚
β”‚                                                           cap). Set a lower β”‚
β”‚                                                           value (e.g.       β”‚
β”‚                                                           10000) to speed   β”‚
β”‚                                                           up analysis of    β”‚
β”‚                                                           large gene        β”‚
β”‚                                                           families at the   β”‚
β”‚                                                           cost of censoring β”‚
β”‚                                                           per-species hit   β”‚
β”‚                                                           counts.           β”‚
β”‚ --max-off-targe…                         <int range>      Reject a          β”‚
β”‚                                          [x>=0]           candidate above   β”‚
β”‚                                                           this many         β”‚
β”‚                                                           query-species     β”‚
β”‚                                                           genuine           β”‚
β”‚                                                           off-target sites  β”‚
β”‚                                                           with at most 2    β”‚
β”‚                                                           mismatches        β”‚
β”‚                                                           (default: None;   β”‚
β”‚                                                           disabled until    β”‚
β”‚                                                           calibrated).      β”‚
β”‚                                                           Unlike --max-hits β”‚
β”‚                                                           this changes the  β”‚
β”‚                                                           PASS/EXCESS_OFF_… β”‚
β”‚                                                           gate, not how     β”‚
β”‚                                                           many hits are     β”‚
β”‚                                                           recorded.         β”‚
β”‚ --min-asymmetry                          <float range>    Thermodynamic     β”‚
β”‚                                          [0.0<=x<=1.0]    asymmetry floor   β”‚
β”‚                                                           gating            β”‚
β”‚                                                           LOW_ASYMMETRY     β”‚
β”‚                                                           (default: 0.65).  β”‚
β”‚                                                           The default has   β”‚
β”‚                                                           not been          β”‚
β”‚                                                           calibrated        β”‚
β”‚                                                           against measured  β”‚
β”‚                                                           potency; lower it β”‚
β”‚                                                           to widen the      β”‚
β”‚                                                           candidate pool,   β”‚
β”‚                                                           or set 0 to admit β”‚
β”‚                                                           every candidate   β”‚
β”‚                                                           while still       β”‚
β”‚                                                           reporting the     β”‚
β”‚                                                           score.            β”‚
β”‚ --max-paired-fr…                         <float range>    Guide             β”‚
β”‚                                          [0.0<=x<=1.0]    self-structure    β”‚
β”‚                                                           ceiling gating    β”‚
β”‚                                                           EXCESS_PAIRING    β”‚
β”‚                                                           (default: 0.6).   β”‚
β”‚                                                           Quantised to 2k/L β”‚
β”‚                                                           by the            β”‚
β”‚                                                           dot-bracket, so   β”‚
β”‚                                                           on a 21-23mer     β”‚
β”‚                                                           only a few values β”‚
β”‚                                                           are attainable    β”‚
β”‚                                                           and nearby        β”‚
β”‚                                                           thresholds behave β”‚
β”‚                                                           identically.      β”‚
β”‚ --min-empirical                          <float>          Empirical         β”‚
β”‚                                                           design-rule floor β”‚
β”‚                                                           gating            β”‚
β”‚                                                           LOW_EMPIRICAL_SC… β”‚
β”‚                                                           Applied to the    β”‚
β”‚                                                           empirical         β”‚
β”‚                                                           component score,  β”‚
β”‚                                                           whose attainable  β”‚
β”‚                                                           range is narrow.  β”‚
β”‚ --min-isoform-c…                         <float range>    Opt into the      β”‚
β”‚                                          [0.0<=x<=1.0]    protein-coding    β”‚
β”‚                                                           isoform coverage  β”‚
β”‚                                                           gate              β”‚
β”‚                                                           (LOW_ISOFORM_COV… β”‚
β”‚                                                           Off by default:   β”‚
β”‚                                                           coverage is       β”‚
β”‚                                                           reported on every β”‚
β”‚                                                           candidate either  β”‚
β”‚                                                           way, and no floor β”‚
β”‚                                                           has been          β”‚
β”‚                                                           calibrated        β”‚
β”‚                                                           against truth     β”‚
β”‚                                                           data. Not a       β”‚
β”‚                                                           scoring term.     β”‚
β”‚ --plfold-window                          <int range>      RNAplfold         β”‚
β”‚                                          [20<=x<=1000]    averaging window  β”‚
β”‚                                                           W for target-site β”‚
β”‚                                                           accessibility     β”‚
β”‚                                                           (default: 150).   β”‚
β”‚                                                           Larger is mildly  β”‚
β”‚                                                           better on the     β”‚
β”‚                                                           benchmark;        β”‚
β”‚                                                           W=150-240 is the  β”‚
β”‚                                                           plateau. Changing β”‚
β”‚                                                           it changes the    β”‚
β”‚                                                           scale of          β”‚
β”‚                                                           composite_score.  β”‚
β”‚ --plfold-max-bp…                         <int range>      RNAplfold maximum β”‚
β”‚                                          [10<=x<=1000]    base-pair span L  β”‚
β”‚                                                           (default: 100).   β”‚
β”‚                                                           Must not exceed   β”‚
β”‚                                                           --plfold-window.  β”‚
β”‚ --accessibility…                         <float>          log10 probability β”‚
β”‚                                                           treated as zero   β”‚
β”‚                                                           target-site       β”‚
β”‚                                                           accessibility     β”‚
β”‚                                                           (default: -5.0,   β”‚
β”‚                                                           ~99% of observed  β”‚
β”‚                                                           sites). Fixed,    β”‚
β”‚                                                           not               β”‚
β”‚                                                           per-transcript,   β”‚
β”‚                                                           so scores stay    β”‚
β”‚                                                           comparable        β”‚
β”‚                                                           between targets.  β”‚
β”‚ --json-summary        --no-json-summ…                     Write             β”‚
β”‚                                                           logs/workflow_su… β”‚
β”‚                                                           (disable to skip  β”‚
β”‚                                                           JSON output)      β”‚
β”‚                                                           [default:         β”‚
β”‚                                                           json-summary]     β”‚
β”‚ --fail-on-no-el…                                          Exit 3 when no    β”‚
β”‚                                                           candidate         β”‚
β”‚                                                           qualified, even   β”‚
β”‚                                                           on a complete     β”‚
β”‚                                                           run. Off by       β”‚
β”‚                                                           default: an empty β”‚
β”‚                                                           shortlist is a    β”‚
β”‚                                                           result, not a     β”‚
β”‚                                                           failure.          β”‚
β”‚                                                           Incomplete        β”‚
β”‚                                                           required evidence β”‚
β”‚                                                           always exits 2.   β”‚
β”‚ --help                                                    Show this message β”‚
β”‚                                                           and exit.         β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Note

The workflow command searches for gene transcripts, designs siRNA candidates, scores them using thermodynamic analysis, and outputs ranked results.

ZFN Notes

Warning

EXPERIMENTAL. --design-mode zfn runs the experimental ZFN arm, which has known unfixed defects (half-site orientation handling, FokI seed-region weighting, off-target region classification, inverted worst_site_score/best_offtarget_score exports) tracked in #82. Do not use ZFN output for any decision without independent validation. See ZFN Module Guide.

ZFN activity/off-target evaluation now has a dedicated command: sirnaforge zfn. Use the workflow command for transcript-centric siRNA/miRNA runs.

Input Sources & Transcriptome References

siRNAforge accepts complementary inputs when you need to bypass gene search or control the reference used for transcriptome off-target analysis:

  • --input-fasta replaces the transcript retrieval step. Point it at a local FASTA file, HTTP(S) URL, or FTP location. The positional argument (GENE_QUERY) still names the outputs, while the workflow designs guides from the supplied sequences. When you pass --input-fasta without --transcriptome-fasta or --transcriptome-indices, transcriptome off-target analysis is disabled (design-only mode).

  • --transcriptome-fasta selects the dataset used for transcriptome off-target analysis. It accepts local paths, remote URLs, or presets such as ensembl_human_cdna and ensembl_mouse_cdna (see sirnaforge cache --info). Provide this flag to re-enable transcriptome off-target analysis when running from a custom FASTA.

  • --transcriptome-indices (also spelled --offtarget-indices) names transcriptome BWA-MEM2 indices you have already built, as species:/path/to/index_prefix entries. The species you declare is the label that reference carries and is screened instead of automatic Ensembl references. No default transcriptomes are downloaded when indices are supplied. The declared species must be recognised (the same set --species accepts). An explicitly supplied --transcriptome-fasta adds that reference alongside the indices; miRNA species selection stays independent. The cDNA FASTA the index was built from must be readable as plain text beside the prefix (the prefix itself, or <prefix>.fa/.fasta/.fna; a gzipped or binary neighbour does not count), or that species is reported unscreened rather than screened against a reference its hits cannot be classified with.

Passing both flags is common: the input FASTA feeds the design engine, while the transcriptome FASTA controls which reference is indexed for the Nextflow stage. Remote resources are cached under ~/.cache/sirnaforge/ and reused automatically.

Design-only mode is a deliberate cost guard, not an oversight: resolving the built-in defaults means downloading and indexing four multi-gigabyte Ensembl cDNA references (human, mouse, rat, macaque). Supplying your own sequences never triggers that implicitly. Library callers get the same policy β€” run_sirna_workflow(input_fasta=...) is design-only unless you pass transcriptome_fasta=... or opt in with allow_transcriptome_with_input_fasta=True.

Run Policy: Run Modes, Filter Actions and Where a Default Comes From

Every threshold, the design mode and the run mode are resolved once, by sirnaforge.config.run_policy.resolve_run_policy, before anything is downloaded and before the output directory is created. The CLI, run_sirna_workflow, run_offtarget_only_workflow and a direct WorkflowConfig all receive the same ResolvedRunPolicy, and logs/.../manifest.json records it under run_policy.

Precedence, applied exactly once and in this order:

  1. the built-in versioned run-policy baseline (experimental today; the old legacy name remains only as a compatibility alias, and experimental: its numbers are expert priors, with the two measured thresholds measured on one target);

  2. the design-mode preset, for --design-mode mirna, applied only where you said nothing;

  3. --policy-config FILE (JSON or TOML: {"settings": {"gc_max": 65}});

  4. an option you gave on the command line.

An omitted option and an option typed with the default value are different inputs. The decision is made from Click’s parameter source, not by comparing your value against a default, which is why --design-mode mirna --gc-max 60 now keeps 60. It used to be silently rewritten to 52, and --overhang dTdT to UU, because a value equal to the siRNA default read as β€œunset”. --gc-max 65 is a supported setting in either mode.

--run-mode declares how much screening evidence a run claims to have:

Run mode

Meaning

Default for

design_only

No screening; every post-screen gate is not evaluated, which is not the same as passed

sirnaforge design

exploratory

Screening ran; incomplete evidence is kept and labelled

β€”

qualified

The transcriptome channel in the query species must complete

sirnaforge workflow, sirnaforge offtarget

A run that can resolve no screening reference at all also derives design_only: --input-fasta without --transcriptome-fasta or --offtarget-indices screens nothing, so it cannot hold screening evidence and must not require it. The manifest records that as a rule (run_mode_rule) rather than a mode you chose, and an explicit --run-mode still wins.

--skip-off-targets maps to --run-mode design_only, and the manifest records the rule that did it rather than presenting the mode as something you chose. The two are one run: both suppress reference resolution, so reference_summary.transcriptome reads disabled either way. Asking for --run-mode qualified together with --skip-off-targets is rejected. --run-mode exploratory is accepted with --skip-off-targets (a run that keeps incomplete evidence and screens nothing is a coherent thing to ask for), and every post-screen gate is off for it, because what decides that is whether the run screened β€” not the mode’s name. Run mode is independent of --design-mode: choosing miRNA design says nothing about evidence completeness.

--filter-action filter_id=off|warn|fail (repeatable) sets one gate’s action. A gate can be off for three different reasons β€” you turned it off, it has no declared threshold, or the run holds no evidence of the kind it reads β€” and all three mean not evaluated, never passed. What cannot be waived while staying qualified is required evidence completeness (--run-mode exploratory is how you say that out loud).

--species-liability-limits accepts a JSON object keyed by species. Each species entry supplies one or more explicit ceilings for transcriptome alignments at 0/1/2 mismatches and transcript-seed sites, transcripts, or genes, plus an action of fail or warn. For example:

sirnaforge workflow TP53 --species human,mouse --transcript-seed-species human \
  --species-liability-limits '{"human":{"transcriptome_hits_0mm":0,"transcript_seed_genes":5,"action":"fail"},"mouse":{"transcriptome_hits_2mm":20,"action":"warn"}}'

These limits have no biological defaults; choose values for the species and assay you are running. Transcript-seed limits require the corresponding species in --transcript-seed-species so that the configured scan actually runs. The transcriptome counts include only classified liabilities and count blank species labels with the query species. Seed counts come from completed full-cDNA or 3β€²UTR scans. Unresolved gene counts are lower bounds: an observed count above a ceiling can fail, while a count below it remains unknown until gene resolution is complete. Every configured ceiling is exported as its own <filter_id>_observed and <filter_id>_verdict column. An unrequested species or incomplete evidence cannot produce a pass.

The three words are three different mechanisms, and that is why their limits differ:

  • off works by clearing the gate’s threshold, which the existing gate code already reads as β€œno gate”. That is available for the ten gates whose threshold has an absent state; the help text of sirnaforge workflow lists them. The seven design-stage gates (gc_content_min, gc_content_max, max_poly_runs, max_repeat_transcript_fraction, max_paired_fraction, min_asymmetry_score, min_empirical_score) read a plain float with no absent value, so switching them off is refused rather than faked with an inert number that would be reported as a threshold you chose. Widen the threshold instead.

  • warn works by leaving passes_filters alone: the gate still measures, still compares, and publishes its outcome in <filter_id>_verdict and <filter_id>_observed, but a fail verdict does not remove the candidate. So a fail verdict beside passes_filters=PASS is consistent β€” read the verdict columns, not the single label. This is what the per-filter verdict columns bought: before them a gate had exactly one way to express a failure, and warn sat in the vocabulary unapplied. Every declared gate honours it, each recording through SiRNACandidate.record_filter_verdict, the one place that reads the action. min_asymmetry_score, max_mirna_perfect_seed and fail_on_high_risk_mirna already ship as warn.

  • Warning a repeat gate also spares the guide its off-target count. A guide flagged repeat-ubiquitous has its alignments classified repeat rather than as liabilities β€” the class exists so a guide you are about to reject is not also penalised for the hits the repeat drove β€” so retaining it with max_repeat_transcript_fraction=warn means max_off_target_count no longer sees those hits either. On a real mouse Trp53 screen 42% of 24,867 alignments were repeat-mediated, and the guides at that extreme carried up to 500 of them. If you want such a guide judged on its hits rather than kept, widen the threshold instead of warning the gate. Documented rather than fixed silently: which of the two behaviours is correct is a scoring decision, not a wiring one.

  • A retained enumeration failure is marked. gc_content_min, gc_content_max and max_poly_runs decide during candidate enumeration; under warn the candidate stays in the scored output, carries GATE_WARNED in quality_issues, and candidates_pass.fasta names the gate in its header β€” that file is an order list, so a guide outside a window you widened to warn must not look like one inside it.

  • A gate can only be turned off, never on. warn and fail are refused when the gate would be off anyway β€” it has no threshold to compare (min_isoform_coverage, max_transcriptome_seed_perfect and max_total_offtarget_hits ship that way, so set a threshold first), the boolean it reads is False, the run holds no screening evidence, or no 0.7.1 code reads it at all (max_mirna_1mm_seed). Accepting it would report an enforced limit that does not exist. This is why sirnaforge design, which defaults to --run-mode design_only, refuses warn and fail on every post-screen gate: they evaluate nothing on that command.

One more asymmetry between the commands, because --filter-action is offered on all three: sirnaforge design resolves the actions into its manifest but constructs its designer without them, so a warn set there is inert and each design-stage gate applies its declared default. Use sirnaforge workflow when you need warn honoured at the design stage. On sirnaforge offtarget the design-stage gates never run on pre-designed guides, so an action set on one is accepted and applies to nothing.

Two honesty notes the manifest carries per gate, because the code earns them and prose would not:

  • Six of the nine off-target gates read a query-species-stratified counter, not the all-species column of the same name, so their scope.species is the run’s own query species. Each now exports that counter as its own *_query column, so evidence_exported is true for every declared gate and re-applying any descriptor against its declared column reproduces the run’s verdict. Both numbers are on the row on purpose: the all-species counter and the stratified one are different quantities, and a client that reads the wrong one gets a different answer from the run.

    The six do not all stratify the same way, and each gate’s definition says which it is: max_transcriptome_hits_0mm, _1mm and _2mm count hits in the query species or unlabelled (a blank species label is read as the query species); max_mirna_perfect_seed and fail_on_high_risk_mirna count hits labelled with the query species only, so an unlabelled miRNA hit reaches neither gate; and max_total_offtarget_hits sums the two conventions in one number, which is why it has its own column rather than being re-derivable by addition.

  • max_mirna_1mm_seed is read by no gate in 0.7.1, so it resolves to off, and asking for warn or fail on it is refused. It no longer declares a threshold either: the default was 10, which read as a limit the run enforced, and it is now None so the setting states nothing it cannot apply.

--skip-off-targets disables all reference-based screening for the run: no transcriptome reference is resolved, downloaded or indexed, the Nextflow off-target stage does not run, and repeat-element detection is skipped as well. Repeat detection scans guides against the query species’ cDNA reference, so it cannot run without the very download the flag exists to avoid; logs/workflow_summary.json reports it as repeat_summary.status = "skipped" with reason = "user_disabled", and candidates keep repeat_flagged = false. Drop --skip-off-targets (optionally with --transcriptome-fasta) whenever you need repeat verdicts.

Rows inside off_target/results/*/analysis.tsv and the aggregated combined_offtargets.tsv include a species column so you can filter hits directly. The aggregator writes seven classification columns onto combined_offtargets.tsv, holding the literal not_classified until something classifies each row; sirnaforge workflow and sirnaforge offtarget fill those verdicts in place, and also onto each transcriptome/*_analysis.tsv the run read.

Once something has classified a row, hit_class is exactly one of on_target, ortholog, repeat, off_target or undetermined; before that it holds the literal not_classified, which is not a verdict and is what a bare nextflow run publishes. undetermined means the hit’s species has no transcript index at all, so orthology and query-gene membership could not be checked β€” species_index_missing on the same row says so. Undetermined hits are still counted in off_target_count and still feed every gate: absent evidence must not loosen a screen, and undetermined_hits on the candidate row reports how much of the count is unqualified. A table produced with no index is therefore distinguishable from one where every alignment genuinely is a liability.

Two symbol columns, and they answer different questions. matched_symbol is the symbol that established the class β€” the ortholog symbol on an ortholog row, the query symbol on an on_target row recognised by symbol β€” with symbol_lookup_missing flagging the rows where that check could not run. It is not a per-hit gene name: it is the literal unknown on every off_target, repeat and undetermined row, and on an on_target row matched by transcript ID, even where the index does resolve a symbol. hit_symbol is the per-row gene name: the symbol the transcript index resolves for rname, independent of class, with hit_symbol_missing flagging the rows it could not resolve. Group off-targets by gene on hit_symbol, never on matched_symbol. Both use the literal unknown rather than an empty cell, and unknown is common and real β€” roughly one in seven reference transcripts carries no symbol β€” so read it as β€œnot annotated”, never as β€œno gene”. A stale table read back with any classification cell blank counts as unannotated and is re-annotated in full before it is republished, so no published row carries an empty classification cell (test_a_row_annotated_in_part_is_repaired_rather_than_republished_with_blank_cells).

ortholog_evidence says how an ortholog verdict was reached, because the two ways are not the same claim. gene_id means the hit’s gene ID was in the orthologue mapping resolved from Ensembl Compara for the query gene β€” the only validated tier. symbol_heuristic means only uppercased gene-symbol equality matched, which HGNC and MGI being separate nomenclature authorities makes both incomplete and unsafe: human TP53’s mouse orthologue is Trp53, so symbol equality misses it, while unrelated genes sharing a symbol across species satisfy it. Every non-ortholog row reads the literal not_applicable, never an empty cell. Treat symbol_heuristic as a lead, not as conservation evidence; a species whose Compara lookup could not be completed is named in offtarget_summary.filtering_stats.orthology.unresolved_species in logs/workflow_summary.json, and its hits are exactly the ones that fall back to the heuristic. Screening against a custom --transcriptome-fasta resolves orthology when you declare the species (mouse:/path/custom_cdna.fa) or when it can be read from the reference’s own Ensembl cDNA headers; otherwise the run warns and every cross-species hit stays an unqualified off_target.

The liability population is hit_class ∈ {off_target, undetermined}, and it is the same population the per-candidate off_target_count is derived from; the published row count is reconciled against the hits that fed those counters, and any shortfall is reported as a run warning. So no counted hit can go unpublished silently. That reconciliation is a row total, not per-candidate attribution β€” a mis-attribution that nets to zero across the table would not raise a warning.

combined_offtargets.tsv has one column shape; transcriptome/*_analysis.tsv has two. The aggregator writes the classification columns itself, so the aggregated table carries all 19 columns whichever entry point produced it β€” a direct nextflow run and sirnaforge workflow differ in whether the verdicts are filled (not_classified versus a real class), not in which columns exist. The per-species files are a different matter: they gain the columns only on the runs whose aggregate came back header-only and the fallback read them, so that artifact has both shapes and GenomeAlignmentSchema (strict=True, 12 columns) will reject the 19-column version of it. Validate against sirnaforge.models.schemas.AggregatedOffTargetSchema, which accepts either width and admits not_classified in every classification column.

Candidate rows carry screen_query_id, the id the candidate was screened under. Guides are deduplicated before alignment, so a hit row’s qname is the representative’s id β€” join row-level evidence on screen_query_id = qname, not on id (which attributes one guide’s entire hit set to a single candidate) and not on guide_sequence (which breaks between a U-spelled guide and its T-spelled twin). It is None when the candidate was not submitted to the aligner’s input FASTA. A candidate that was submitted but whose alignment never ran (nextflow_unavailable, nextflow_failed, or a step-5 exception) still carries the key, and it will join to nothing β€” off_target_screened=False is the signal for that case, not an absent key.

Aggregated summaries collapse those values into human vs other buckets, exposing hits_per_species, human_hits, and other_species_hits in combined_summary.json plus the workflow console output.

combined_summary.json also states which species were actually screened, and hits_per_species covers only those. species_screened is the positive evidence that a search ran; a species named in unscreened_species has no hit count rather than a hit count of zero, and rejected_species_files says per file why (an empty table, an unreadable one, a schema rejection, or an index prefix that resolved to nothing). status is completed only when every requested species was screened. A species dropped before Nextflow β€” requested with no resolvable reference, or one whose index build failed β€” is reported in offtarget_summary.filtering_stats.species_screening_shortfalls in logs/workflow_summary.json and included in unscreened_species, and the run reports partial. The workflow also records the resolved reference decision in logs/workflow_summary.json (reference_summary.transcriptome) so each run documents whether the transcriptome reference was disabled, defaulted, or explicitly provided.



design

Design siRNA/miRNA candidates from FASTA sequences.

Help

                                                                               
 Usage: sirnaforge design [OPTIONS] {input_file}                               
                                                                               
 Design siRNA candidates from a transcript FASTA file.                         
                                                                               
 Outputs a TSV/CSV-like table of candidates, optionally including secondary    
 structure scoring, off-target checks, and chemical modification annotations.  
                                                                               
β”Œβ”€ Arguments ─────────────────────────────────────────────────────────────────┐
β”‚ *    input_file      <file>  Input FASTA file containing transcript         β”‚
β”‚                              sequences                                      β”‚
β”‚                              [required]                                     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”Œβ”€ Options ───────────────────────────────────────────────────────────────────┐
β”‚ --output               -o      <path>                Output file for siRNA  β”‚
β”‚                                                      candidates             β”‚
β”‚                                                      [default:              β”‚
β”‚                                                      sirna_results.tsv]     β”‚
β”‚ --design-mode                  <str>                 Design mode: sirna     β”‚
β”‚                                                      (default) or mirna     β”‚
β”‚                                                      (miRNA-biogenesis-awa… β”‚
β”‚                                                      For ZFN use            β”‚
β”‚                                                      'sirnaforge zfn'.      β”‚
β”‚                                                      [default: sirna]       β”‚
β”‚ --policy-config                <path>                JSON or TOML file of   β”‚
β”‚                                                      policy settings. Beats β”‚
β”‚                                                      the built-in profile   β”‚
β”‚                                                      and loses to options   β”‚
β”‚                                                      given on the command   β”‚
β”‚                                                      line. Unknown setting  β”‚
β”‚                                                      names are rejected,    β”‚
β”‚                                                      not ignored.           β”‚
β”‚ --filter-action                <str>                 Set one filter's       β”‚
β”‚                                                      action:                β”‚
β”‚                                                      filter_id=off|warn|fa… β”‚
β”‚                                                      (repeatable). 'off'    β”‚
β”‚                                                      clears the gate's      β”‚
β”‚                                                      threshold, so it is    β”‚
β”‚                                                      not evaluated, which   β”‚
β”‚                                                      is not the same as     β”‚
β”‚                                                      passing; it is refused β”‚
β”‚                                                      for the seven          β”‚
β”‚                                                      design-stage gates,    β”‚
β”‚                                                      whose thresholds are   β”‚
β”‚                                                      plain floats with no   β”‚
β”‚                                                      absent state (widen    β”‚
β”‚                                                      the threshold          β”‚
β”‚                                                      instead), and it is a  β”‚
β”‚                                                      no-op on a post-screen β”‚
β”‚                                                      gate, which this       β”‚
β”‚                                                      design_only command    β”‚
β”‚                                                      never evaluates        β”‚
β”‚                                                      anyway. 'warn' means   β”‚
β”‚                                                      record the verdict in  β”‚
β”‚                                                      <filter_id>_verdict    β”‚
β”‚                                                      and leave              β”‚
β”‚                                                      passes_filters alone,  β”‚
β”‚                                                      and every design-stage β”‚
β”‚                                                      gate honours it here   β”‚
β”‚                                                      -- including           β”‚
β”‚                                                      gc_content_min,        β”‚
β”‚                                                      gc_content_max and     β”‚
β”‚                                                      max_poly_runs, which   β”‚
β”‚                                                      decide during          β”‚
β”‚                                                      enumeration and now    β”‚
β”‚                                                      retain the candidate   β”‚
β”‚                                                      marked GATE_WARNED.    β”‚
β”‚ --length               -l      <int range>           siRNA length in        β”‚
β”‚                                [19<=x<=23]           nucleotides (default:  β”‚
β”‚                                                      21)                    β”‚
β”‚ --top-n                -n      <int range> [x>=1]    Cap how many           β”‚
β”‚                                                      top-ranked candidates  β”‚
β”‚                                                      are reported (default: β”‚
β”‚                                                      no cap, report all).   β”‚
β”‚                                                      All candidates are     β”‚
β”‚                                                      generated and screened β”‚
β”‚                                                      regardless.            β”‚
β”‚ --gc-min                       <float range>         Minimum GC content     β”‚
β”‚                                [0.0<=x<=100.0]       percentage (default:   β”‚
β”‚                                                      30.0; --design-mode    β”‚
β”‚                                                      mirna defaults to      β”‚
β”‚                                                      30.0)                  β”‚
β”‚ --gc-max                       <float range>         Maximum GC content     β”‚
β”‚                                [0.0<=x<=100.0]       percentage (default:   β”‚
β”‚                                                      60.0; --design-mode    β”‚
β”‚                                                      mirna defaults to      β”‚
β”‚                                                      52.0). Stating it      β”‚
β”‚                                                      keeps it in every      β”‚
β”‚                                                      design mode.           β”‚
β”‚ --max-poly-runs                <int range> [x>=1]    Maximum consecutive    β”‚
β”‚                                                      identical nucleotides  β”‚
β”‚                                                      (default: 3)           β”‚
β”‚ --min-asymmetry                <float range>         Thermodynamic          β”‚
β”‚                                [0.3<=x<=1.0]         asymmetry floor gating β”‚
β”‚                                                      LOW_ASYMMETRY          β”‚
β”‚                                                      (default: 0.65)        β”‚
β”‚ --max-paired-fraction          <float range>         Guide self-structure   β”‚
β”‚                                [0.0<=x<=1.0]         ceiling gating         β”‚
β”‚                                                      EXCESS_PAIRING         β”‚
β”‚                                                      (default: 0.6)         β”‚
β”‚ --min-empirical                <float>               Empirical design-rule  β”‚
β”‚                                                      floor gating           β”‚
β”‚                                                      LOW_EMPIRICAL_SCORE    β”‚
β”‚                                                      (default: 0.4, which   β”‚
β”‚                                                      rejects nothing)       β”‚
β”‚ --plfold-window                <int range>           RNAplfold averaging    β”‚
β”‚                                [20<=x<=1000]         window W for           β”‚
β”‚                                                      target-site            β”‚
β”‚                                                      accessibility          β”‚
β”‚                                                      (default: 150)         β”‚
β”‚ --plfold-max-bp-span           <int range>           RNAplfold maximum      β”‚
β”‚                                [10<=x<=1000]         base-pair span L       β”‚
β”‚                                                      (default: 100); must   β”‚
β”‚                                                      not exceed             β”‚
β”‚                                                      --plfold-window        β”‚
β”‚ --accessibility-log-…          <float>               log10 probability      β”‚
β”‚                                                      treated as zero        β”‚
β”‚                                                      target-site            β”‚
β”‚                                                      accessibility          β”‚
β”‚                                                      (default: -5.0)        β”‚
β”‚ --snp-file                     <path>                VCF file with SNPs to  β”‚
β”‚                                                      avoid                  β”‚
β”‚ --skip-structure                                     Skip secondary         β”‚
β”‚                                                      structure prediction   β”‚
β”‚                                                      (faster)               β”‚
β”‚ --skip-off-targets                                   Skip off-target        β”‚
β”‚                                                      analysis (faster)      β”‚
β”‚ --modifications        -m      <str>                 Chemical modification  β”‚
β”‚                                                      pattern:               β”‚
β”‚                                                      standard_2ome,         β”‚
β”‚                                                      minimal_terminal,      β”‚
β”‚                                                      maximal_stability,     β”‚
β”‚                                                      none (default:         β”‚
β”‚                                                      standard_2ome)         β”‚
β”‚ --overhang                     <str>                 Overhang sequence,     β”‚
β”‚                                                      dTdT for DNA or UU for β”‚
β”‚                                                      RNA (default: dTdT;    β”‚
β”‚                                                      --design-mode mirna    β”‚
β”‚                                                      defaults to UU)        β”‚
β”‚ --verbose              -v                            Enable verbose output  β”‚
β”‚ --help                                               Show this message and  β”‚
β”‚                                                      exit.                  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Example: Design from Sample Data

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ Configuration ──────────────────────┐
β”‚ 🧬 siRNAforge Toolkit                                    β”‚
β”‚ Design Mode: sirna                                       β”‚
β”‚ Input: ../examples/sample_transcripts.fasta              β”‚
β”‚ Output: /tmp/sirna_example.csv                           β”‚
β”‚ Run Mode: design_only (experimental 0.7.1, experimental) β”‚
β”‚ Length: 21 nt                                            β”‚
β”‚ GC range: 30.0%-60.0%                                    β”‚
β”‚ Reported candidates: 5                                   β”‚
β”‚ Modifications: standard_2ome                             β”‚
β”‚ Overhang: dTdT                                           β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
2026-11-22 18:34:51,213 - sirnaforge.models.sirna - INFO - siRNA candidates schema validation passed for 2051 candidates
β ¦ Saving results...
                               πŸ“Š Design Summary                               
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Metric              β”‚ Value                                                 β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Input Sequences     β”‚ 3                                                     β”‚
β”‚ Total Candidates    β”‚ 2051                                                  β”‚
β”‚ Filtered Candidates β”‚ 1967                                                  β”‚
β”‚ Top Candidates      β”‚ 5                                                     β”‚
β”‚ Processing Time     β”‚ 3.36s                                                 β”‚
β”‚ Best Score          β”‚ 97.42674277490929                                     β”‚
β”‚ Tool Versions       β”‚ {'python': '3.12.16', 'biopython': '1.88',            β”‚
β”‚                     β”‚ 'sirnaforge': '0.8.0'}                                β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ† Top Candidates:
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”
β”‚ ID        β”‚ Transcri… β”‚ Position β”‚ Sequence   β”‚ GC%  β”‚ Hits β”‚ Hit % β”‚ Score β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€
β”‚ SIRNAF_N… β”‚ NM_00204… β”‚ 1245     β”‚ TATTGATGG… β”‚ 38.1 β”‚ 1    β”‚ 33.3% β”‚ 97.4  β”‚
β”‚ SIRNAF_N… β”‚ NM_00054… β”‚ 2054     β”‚ AAAGAAATT… β”‚ 38.1 β”‚ 1    β”‚ 33.3% β”‚ 97.1  β”‚
β”‚ SIRNAF_N… β”‚ NM_00054… β”‚ 1107     β”‚ TGAAATATT… β”‚ 38.1 β”‚ 1    β”‚ 33.3% β”‚ 97.0  β”‚
β”‚ SIRNAF_P… β”‚ PQ040393… β”‚ 1157     β”‚ TCTTGATCT… β”‚ 42.9 β”‚ 1    β”‚ 33.3% β”‚ 96.9  β”‚
β”‚ SIRNAF_N… β”‚ NM_00054… β”‚ 2002     β”‚ ATACAAGAG… β”‚ 38.1 β”‚ 1    β”‚ 33.3% β”‚ 96.3  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”˜

βœ… Results saved to: /tmp/sirna_example.csv

Output Preview

id,screen_query_id,transcript_id,position,guide_sequence,passenger_sequence,gc_content,asymmetry_score,structure,mfe,paired_fraction,target_accessibility_p,target_accessibility_p_17mer,target_accessibility_p_site,duplex_stability_dg,duplex_stability_score,dg_5p,dg_3p,delta_dg_end,melting_temp_c,off_target_screened,off_target_count,off_target_penalty,on_target_hits,ortholog_hits,repeat_hits,undetermined_hits,ortholog_species,repeat_flagged,repeat_transcript_fraction,transcriptome_hits_total,transcriptome_hits_0mm,transcriptome_hits_1mm,transcriptome_hits_2mm,transcriptome_hits_seed_0mm,on_target_confirmed,mirna_hits_total,mirna_hits_0mm_seed,mirna_hits_1mm_seed,mirna_hits_high_risk,guide_pos1_base,pos1_pairing_state,seed_class,supp_13_16_score,seed_7mer_hits,seed_8mer_hits,seed_hits_weighted,off_target_seed_risk_class,transcript_hit_count,transcript_hit_fraction,isoform_coverage,conservation_score,design_score,composite_score,score_off_target,score_target_accessibility,score_asymmetry,score_gc_content,score_ago_start,score_supp_13_16,empirical_score,scored_after_screening,weight_set_version,weight_vector,passes_filters,max_poly_run_length,transcriptome_hits_0mm_query,transcriptome_hits_1mm_query,transcriptome_hits_2mm_query,transcriptome_hits_query_le2,mirna_hits_0mm_seed_query,mirna_hits_high_risk_query,total_offtarget_hits_query,selection_state,quality_issues,guide_overhang,guide_modifications,passenger_overhang,passenger_modifications,variant_mode,allele_specific,targeted_alleles,overlapped_variants,gc_content_min_verdict,gc_content_max_verdict,max_poly_runs_verdict,max_repeat_transcript_fraction_verdict,max_paired_fraction_verdict,min_asymmetry_score_verdict,min_empirical_score_verdict,min_isoform_coverage_verdict,max_off_target_count_verdict,max_transcriptome_hits_0mm_verdict,max_transcriptome_hits_1mm_verdict,max_transcriptome_hits_2mm_verdict,max_transcriptome_seed_perfect_verdict,max_transcript_seed_sites_verdict,max_mirna_perfect_seed_verdict,max_mirna_1mm_seed_verdict,fail_on_high_risk_mirna_verdict,max_total_offtarget_hits_verdict,gc_content_min_observed,gc_content_max_observed,max_poly_runs_observed,max_repeat_transcript_fraction_observed,max_paired_fraction_observed,min_asymmetry_score_observed,min_empirical_score_observed,min_isoform_coverage_observed,max_off_target_count_observed,max_transcriptome_hits_0mm_observed,max_transcriptome_hits_1mm_observed,max_transcriptome_hits_2mm_observed,max_transcriptome_seed_perfect_observed,max_transcript_seed_sites_observed,max_mirna_perfect_seed_observed,max_mirna_1mm_seed_observed,fail_on_high_risk_mirna_observed,max_total_offtarget_hits_observed
SIRNAF_NM_002046-7_1245_1265,,NM_002046.7,1245,TATTGATGGTACATGACAAGG,CCTTGTCATGTACCATCAATA,38.095238095238095,1.0,.....................,0.0,0.0,0.5749698309102792,0.17746254765001995,0.1558265960181654,-33.70000076293945,0.2925170587033641,-3.799999952316284,-8.899999618530273,5.099999666213989,68.30738914474875,False,0,0.0,0,0,0,0,,False,0.0,0,0,0,0,0,False,0,0,0,0,,,,,,,,,1,0.3333333333333333,,,97.42674277490929,,,33.317515402757,40.0,24.109227372152287,,,0.6,False,4.1.0,design_experimental_v1,True,2,0,0,0,0,0,0,0,not_selected,,dTdT,2OMe(11),dTdT,2OMe(11),,False,[],[],pass,pass,pass,not_evaluated,pass,pass,pass,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,38.095238095238095,38.095238095238095,2.0,,0.0,1.0,0.6,,,,,,,,,,,
SIRNAF_NM_000546-6_2054_2074,,NM_000546.6,2054,AAAGAAATTGACCCTGAGCAT,ATGCTCAGGGTCAATTTCTTT,38.095238095238095,1.0,.....................,0.0,0.0,0.5108826782260406,0.002897779111343965,0.0012578253769208968,-33.599998474121094,0.2857141819129996,-3.0999999046325684,-8.100000381469727,5.000000476837158,68.53726667536273,False,0,0.0,0,0,0,0,,False,0.0,0,0,0,0,0,False,0,0,0,0,,,,,,,,,1,0.3333333333333333,,,97.06747561762877,,,32.95824824547648,40.0,24.109227372152287,,,0.4,False,4.1.0,design_experimental_v1,True,3,0,0,0,0,0,0,0,not_selected,,dTdT,2OMe(11),dTdT,2OMe(11),,False,[],[],pass,pass,pass,not_evaluated,pass,pass,pass,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,38.095238095238095,38.095238095238095,3.0,,0.0,1.0,0.4,,,,,,,,,,,
SIRNAF_NM_000546-6_1107_1127,,NM_000546.6,1107,TGAAATATTCTCCATCCAGTG,CACTGGATGGAGAATATTTCA,38.095238095238095,1.0,.....................,0.0,0.0,0.5071576712498788,1.8107037840488523e-05,1.3114880121147223e-05,-33.70000076293945,0.2925170587033641,-3.5999999046325684,-9.600000381469727,6.000000476837158,67.70148264120314,False,0,0.0,0,0,0,0,,False,0.0,0,0,0,0,0,False,0,0,0,0,,,,,,,,,1,0.3333333333333333,,,97.0452283651163,,,32.93600099296402,40.0,24.109227372152287,,,0.5,False,4.1.0,design_experimental_v1,True,3,0,0,0,0,0,0,0,not_selected,,dTdT,2OMe(11),dTdT,2OMe(11),,False,[],[],pass,pass,pass,not_evaluated,pass,pass,pass,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,38.095238095238095,38.095238095238095,3.0,,0.0,1.0,0.5,,,,,,,,,,,
SIRNAF_PQ040393-1_1157_1177,,PQ040393.1,1157,TCTTGATCTTCATTGTGCTGG,CCAGCACAATGAAGATCAAGA,42.857142857142854,1.0,.....................,0.0,0.0,0.6936060915120004,0.0320972053797273,0.002843412894413275,-35.599998474121094,0.4217686036817072,-5.900000095367432,-11.100000381469727,5.200000286102295,70.3674193146465,False,0,0.0,0,0,0,0,,False,0.0,0,0,0,0,0,False,0,0,0,0,,,,,,,,,1,0.3333333333333333,,,96.92805147281048,,,33.887790290367356,40.0,23.040261182443125,,,0.6,False,4.1.0,design_experimental_v1,True,2,0,0,0,0,0,0,0,not_selected,,dTdT,2OMe(11),dTdT,2OMe(11),,False,[],[],pass,pass,pass,not_evaluated,pass,pass,pass,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,42.857142857142854,42.857142857142854,2.0,,0.0,1.0,0.6,,,,,,,,,,,
SIRNAF_NM_000546-6_2002_2022,,NM_000546.6,2002,ATACAAGAGATGAAATCCTCC,GGAGGATTTCATCTCTTGTAT,38.095238095238095,0.9900000095367432,......(((........))).,-1.5,0.2857142857142857,0.44563620885275546,0.0002017818990204188,2.964894994877022e-06,-34.0,0.3129251700680273,-5.099999904632568,-10.0,4.900000095367432,67.8081041607008,False,0,0.0,0,0,0,0,,False,0.0,0,0,0,0,0,False,0,0,0,0,,,,,,,,,1,0.3333333333333333,,,96.25209105001717,,,32.54286329639516,39.60000038146973,24.109227372152287,,,0.6,False,4.1.0,design_experimental_v1,True,3,0,0,0,0,0,0,0,not_selected,,dTdT,2OMe(11),dTdT,2OMe(11),,False,[],[],pass,pass,pass,not_evaluated,pass,pass,pass,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,not_evaluated,38.095238095238095,38.095238095238095,3.0,,0.2857142857142857,0.9900000095367432,0.6,,,,,,,,,,,

zfn

Evaluate a ZFN pair and run exhaustive genome-wide off-target search.

Warning

EXPERIMENTAL β€” results are not decision-grade. The ZFN arm ships experimental in 0.6.0 with known unfixed defects in half-site orientation handling, FokI seed-region weighting and off-target region classification, tracked in #82. Do not use ZFN output for any decision without independent validation. The published CCR5 half-site pair does not match its own on-target site under the default strand-pairing rule β€” pass --zfn-right-half-site CTTTTGCAGTTT rather than the published AAACTGCAAAAG β€” which also invalidates the recorded ZFN validation runs. Two further defects change nothing visible in the output: the exported worst_site_score and best_offtarget_score fields are inverted (worst_site_score is the minimum site score, best_offtarget_score the maximum, whereas the highest-scoring off-target is the most dangerous one), and a site inside a large containing gene can be classified intergenic, which undercounts the exonic/promoter tallies the pass/fail filters read. See ZFN Module Guide.

Help

                                                                               
 Usage: sirnaforge zfn [OPTIONS]                                               
                                                                               
 Evaluate a ZFN pair and run exhaustive genome-wide off-target search          
 (EXPERIMENTAL).                                                               
                                                                               
β”Œβ”€ Options ───────────────────────────────────────────────────────────────────┐
β”‚    --output-dir     -o                     <path>           Output          β”‚
β”‚                                                             directory for   β”‚
β”‚                                                             ZFN activity    β”‚
β”‚                                                             evaluation      β”‚
β”‚                                                             results         β”‚
β”‚                                                             [default:       β”‚
β”‚                                                             sirna_zfn_outp… β”‚
β”‚    --zfn-subfinge…                         <str>            ZFN sub-finger  β”‚
β”‚                                                             mutation        β”‚
β”‚                                                             allowance.      β”‚
β”‚                                                             Repeatable      β”‚
β”‚                                                             format:         β”‚
β”‚                                                             scope:max_muta… β”‚
β”‚                                                             scope can be    β”‚
β”‚                                                             subfinger index β”‚
β”‚                                                             (e.g. 2), '*'   β”‚
β”‚                                                             for default     β”‚
β”‚                                                             per-subfinger,  β”‚
β”‚                                                             or 'overall'    β”‚
β”‚                                                             for global      β”‚
β”‚                                                             budgets. Use    β”‚
β”‚                                                             'mismatch' as a β”‚
β”‚                                                             shorthand alias β”‚
β”‚                                                             for             β”‚
β”‚                                                             'substitution'. β”‚
β”‚    --zfn-max-mism…                         <int range>      Convenience     β”‚
β”‚                                            [x>=0]           option          β”‚
β”‚                                                             equivalent to   β”‚
β”‚                                                             --zfn-subfinge… β”‚
β”‚                                                             '*:<N>:mismatc… β”‚
β”‚    --zfn-max-subs…                         <int range>      Convenience     β”‚
β”‚                                            [x>=0]           option          β”‚
β”‚                                                             equivalent to   β”‚
β”‚                                                             --zfn-subfinge… β”‚
β”‚                                                             'overall:<N>:s… β”‚
β”‚ *  --zfn-left-hal…                         <str>            Left ZFN        β”‚
β”‚                                                             half-site       β”‚
β”‚                                                             sequence (9-18  β”‚
β”‚                                                             bp, IUPAC       β”‚
β”‚                                                             allowed).       β”‚
β”‚                                                             [required]      β”‚
β”‚ *  --zfn-right-ha…                         <str>            Right ZFN       β”‚
β”‚                                                             half-site       β”‚
β”‚                                                             sequence (9-18  β”‚
β”‚                                                             bp, IUPAC       β”‚
β”‚                                                             allowed).       β”‚
β”‚                                                             [required]      β”‚
β”‚    --zfn-search-s…                         <str>            Genome          β”‚
β”‚                                                             reference key   β”‚
β”‚                                                             or local FASTA  β”‚
β”‚                                                             path for ZFN    β”‚
β”‚                                                             off-target      β”‚
β”‚                                                             search space.   β”‚
β”‚                                                             Built-in keys:  β”‚
β”‚                                                             ensembl_human_… β”‚
β”‚                                                             ensembl_mouse_… β”‚
β”‚                                                             ensembl_rat_gr… β”‚
β”‚                                                             ensembl_macaqu… β”‚
β”‚                                                             Default:        β”‚
β”‚                                                             ensembl_human_… β”‚
β”‚    --zfn-search-s…                         <str>            Optional        β”‚
β”‚                                                             persisted       β”‚
β”‚                                                             search-space    β”‚
β”‚                                                             index bundle    β”‚
β”‚                                                             path for        β”‚
β”‚                                                             indexed ZFN     β”‚
β”‚                                                             backends        β”‚
β”‚                                                             (currently      β”‚
β”‚                                                             fm_index;       β”‚
β”‚                                                             fm_index is     β”‚
β”‚                                                             experimental on β”‚
β”‚                                                             large           β”‚
β”‚                                                             references).    β”‚
β”‚    --zfn-search-b…                         <exhaustive_pyt  Half-site       β”‚
β”‚                                            hon|pyahocorasi  search backend: β”‚
β”‚                                            ck|fm_index>     pyahocorasick   β”‚
β”‚                                                             (default),      β”‚
β”‚                                                             exhaustive_pyt… β”‚
β”‚                                                             (baseline), or  β”‚
β”‚                                                             fm_index        β”‚
β”‚                                                             (experimental). β”‚
β”‚                                                             [default:       β”‚
β”‚                                                             pyahocorasick]  β”‚
β”‚    --zfn-algorithm                         <homology|conse  ZFN off-target  β”‚
β”‚                                            rved_g|zfn_v2>   scoring         β”‚
β”‚                                                             algorithm:      β”‚
β”‚                                                             homology,       β”‚
β”‚                                                             conserved_g, or β”‚
β”‚                                                             zfn_v2          β”‚
β”‚                                                             (default).      β”‚
β”‚                                                             [default:       β”‚
β”‚                                                             zfn_v2]         β”‚
β”‚    --zfn-dimer-mo…                         <heterodimer_on  Dimer mode:     β”‚
β”‚                                            ly|include_homo  heterodimer_on… β”‚
β”‚                                            dimers>          (default) or    β”‚
β”‚                                                             include_homodi… β”‚
β”‚                                                             [default:       β”‚
β”‚                                                             heterodimer_on… β”‚
β”‚    --zfn-spacer-l…                         <str>            Comma-separated β”‚
β”‚                                                             allowed spacer  β”‚
β”‚                                                             lengths between β”‚
β”‚                                                             half-sites      β”‚
β”‚                                                             (default:       β”‚
β”‚                                                             5,6,7).         β”‚
β”‚                                                             [default:       β”‚
β”‚                                                             5,6,7]          β”‚
β”‚    --zfn-max-mism…                         <int range>      Max mismatches  β”‚
β”‚                                            [0<=x<=6]        per half-site   β”‚
β”‚                                                             in exhaustive   β”‚
β”‚                                                             genomic search  β”‚
β”‚                                                             (default: 2).   β”‚
β”‚                                                             [default: 2]    β”‚
β”‚    --cores                                 <int range>      Total CPU core  β”‚
β”‚                                            [x>=1]           budget for      β”‚
β”‚                                                             workflow        β”‚
β”‚                                                             execution. ZFN  β”‚
β”‚                                                             sharding and    β”‚
β”‚                                                             workflow        β”‚
β”‚                                                             parallel stages β”‚
β”‚                                                             derive from     β”‚
β”‚                                                             this.           β”‚
β”‚                                                             [env var:       β”‚
β”‚                                                             SIRNAFORGE_COR… β”‚
β”‚    --zfn-annotati…                         <str>            Optional        β”‚
β”‚                                                             GTF/GFF         β”‚
β”‚                                                             annotation file β”‚
β”‚                                                             for ZFN         β”‚
β”‚                                                             off-target      β”‚
β”‚                                                             region          β”‚
β”‚                                                             classification. β”‚
β”‚    --verbose        -v                                      Enable verbose  β”‚
β”‚                                                             output          β”‚
β”‚    --log-file                              <path>           Path to         β”‚
β”‚                                                             centralized log β”‚
β”‚                                                             file (overrides β”‚
β”‚                                                             SIRNAFORGE_LOG… β”‚
β”‚                                                             env)            β”‚
β”‚    --nextflow-doc…                         <str>            Override the    β”‚
β”‚                                                             Docker image    β”‚
β”‚                                                             passed to       β”‚
β”‚                                                             Nextflow        β”‚
β”‚                                                             (default:       β”‚
β”‚                                                             ghcr.io/austin… β”‚
β”‚                                                             [env var:       β”‚
β”‚                                                             SIRNAFORGE_NEX… β”‚
β”‚    --json-summary       --no-json-summ…                     Write           β”‚
β”‚                                                             logs/workflow_… β”‚
β”‚                                                             (disable to     β”‚
β”‚                                                             skip JSON       β”‚
β”‚                                                             output)         β”‚
β”‚                                                             [default:       β”‚
β”‚                                                             json-summary]   β”‚
β”‚    --help                                                   Show this       β”‚
β”‚                                                             message and     β”‚
β”‚                                                             exit.           β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Notes

  • --zfn-left-half-site and --zfn-right-half-site are required.

  • --zfn-search-space accepts either a local/remote FASTA or a configured reference key.

  • --zfn-search-backend selects the half-site scan engine: pyahocorasick (default), exhaustive_python (baseline), or fm_index (experimental).

  • --zfn-search-space-index accepts a persisted index-bundle directory for indexed backends. This is currently supported by fm_index.

  • --zfn-algorithm supports homology, conserved_g, and zfn_v2.

  • Outputs are written as sirnaforge/candidate_summary.json and sirnaforge/offtarget_sites.csv, with run metadata in logs/workflow_summary.json.

Operational guidance from the backend tuning work β€” measured before the half-site convention issue was found, so read it as a runtime observation only, not as a validated correctness result:

  • prefer pyahocorasick for the first run on large references, but only for --zfn-max-mismatches of 3 or less

  • use fm_index only for repeated persisted-index workflows; treat it as experimental on large references

  • keep exhaustive_python as the baseline comparator and fallback implementation

Warning

The default pyahocorasick backend aborts above 3 mismatches on a 12 bp half-site. Both pattern-enumerating backends (pyahocorasick, fm_index) expand the query over the full 15-letter IUPAC alphabet rather than the four bases a genome contains, and reject the search when the expansion exceeds 1,000,000 patterns. A 12 bp half-site at --zfn-max-mismatches 4 expands to 5,498,165 patterns and an 18 bp half-site at 3 mismatches to 1,717,605, so both raise:

ValueError: ZFN L half-site is too complex for the pyahocorasick backend: 5498165 candidate
patterns exceed the safety limit of 1000000.

--zfn-max-mismatches 4 is the budget the CCR5 benchmark needs, so pass --zfn-search-backend exhaustive_python for those runs. Tracked in #82.

For reproducible fm_index runs, prebuild one search-space bundle once, then reuse it across runs:

uv run sirnaforge internal zfn-build-search-index \
	--genome-fasta /path/to/hg38.fa \
	--search-backend fm_index

The command prints a JSON summary including bundle_dir; pass that directory to --zfn-search-space-index on subsequent sirnaforge zfn runs.


validate

Check FASTA file format and content.

Help

                                                                               
 Usage: sirnaforge validate [OPTIONS] {input_file}                             
                                                                               
 Validate a FASTA file and report basic statistics.                            
                                                                               
 This performs lightweight validation (parseable FASTA, presence of            
 sequences, and common issues like short/ambiguous sequences).                 
                                                                               
β”Œβ”€ Arguments ─────────────────────────────────────────────────────────────────┐
β”‚ *    input_file      <file>  FASTA file to validate [required]              β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”Œβ”€ Options ───────────────────────────────────────────────────────────────────┐
β”‚ --help          Show this message and exit.                                 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Example: Validate Sample Data

        πŸ“‹ FASTA Validation Results         
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Metric                       β”‚ Value     β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Total sequences              β”‚ 3         β”‚
β”‚ Total length                 β”‚ 5,117 nt  β”‚
β”‚ Average length               β”‚ 1705.7 nt β”‚
β”‚ Min length                   β”‚ 1285 nt   β”‚
β”‚ Max length                   β”‚ 2512 nt   β”‚
β”‚ Short sequences (<50 nt)     β”‚ 0         β”‚
β”‚ Ambiguous sequences (with N) β”‚ 0         β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
βœ… FASTA validation complete

config

Show default configuration parameters.

Resolved Design Parameters:
  profile experimental 0.7.1 (experimental), run mode qualified

Basic Parameters:
  siRNA length: 21 nt
  Reported candidates: all (uncapped)

Filtering Criteria:
  GC content: 30.0% - 60.0%
  Max poly runs: 3
  Max paired fraction: 0.6

Gates:
  gc_content_min: ge 30.0 (fail, design)
  gc_content_max: le 60.0 (fail, design)
  max_poly_runs: le 3 (fail, design)
  max_repeat_transcript_fraction: le 0.001 (fail, design)
  max_paired_fraction: le 0.6 (fail, design)
  min_asymmetry_score: ge 0.65 (warn, design)
  min_empirical_score: ge 0.4 (fail, design)
  min_isoform_coverage: ge no threshold (off, post_screen)
  max_off_target_count: le no threshold (off, post_screen)
  max_transcriptome_hits_0mm: le 1 (fail, post_screen)
  max_transcriptome_hits_1mm: le 10 (fail, post_screen)
  max_transcriptome_hits_2mm: le 50 (fail, post_screen)
  max_transcriptome_seed_perfect: le no threshold (off, post_screen)
  max_transcript_seed_sites: le no threshold (off, post_screen)
  max_mirna_perfect_seed: le 0 (warn, post_screen)
  max_mirna_1mm_seed: le no threshold (off, post_screen)
  fail_on_high_risk_mirna: le 0 (warn, post_screen)
  max_total_offtarget_hits: le no threshold (off, post_screen)

Scoring Weight Vectors:
  design_experimental_v1
    target_accessibility: 0.35
    asymmetry: 0.4
    gc_content: 0.25
  postscreen_sirna_experimental_v1
    off_target: 0.25
    target_accessibility: 0.1
    asymmetry: 0.3
    gc_content: 0.35
  postscreen_mirna_experimental_v1
    off_target: 0.2
    target_accessibility: 0.08
    asymmetry: 0.24
    gc_content: 0.28
    ago_start: 0.1
    supp_13_16: 0.1
  Reported but not scored: empirical (min_empirical_score gate), 
isoform_coverage (optional gate), conservation, paired_fraction (EXCESS_PAIRING
gate)

sequences

Manage siRNA sequences and chemical modification metadata.

Help

                                                                               
 Usage: sirnaforge sequences [OPTIONS] COMMAND [ARGS]...                       
                                                                               
 Manage siRNA sequences and metadata                                           
                                                                               
β”Œβ”€ Options ───────────────────────────────────────────────────────────────────┐
β”‚ --help          Show this message and exit.                                 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”Œβ”€ Commands ──────────────────────────────────────────────────────────────────┐
β”‚ show      Show sequences from a FASTA file in table, JSON, or FASTA format. β”‚
β”‚ annotate  Merge metadata from a JSON file into FASTA headers.               β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

cache

Manage miRNA database cache for off-target analysis.

Help

                                                                               
 Usage: sirnaforge cache [OPTIONS]                                             
                                                                               
 Inspect and clear the unified reference cache.                                
                                                                               
 This command can display cache statistics and/or delete cached assets for     
 miRNA databases and transcriptomes.                                           
                                                                               
β”Œβ”€ Options ───────────────────────────────────────────────────────────────────┐
β”‚ --clear                        Clear all cached databases (miRNA +          β”‚
β”‚                                transcriptomes)                              β”‚
β”‚ --clear-mirna                  Clear only miRNA databases                   β”‚
β”‚ --clear-transcriptome          Clear only transcriptomes                    β”‚
β”‚ --dry-run                      Show what would be deleted without actually  β”‚
β”‚                                deleting                                     β”‚
β”‚ --info                         Show cache information for all databases     β”‚
β”‚ --help                         Show this message and exit.                  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

benchmark

Fixed-length benchmark artifacts and prepare/design commands (#109).

Warning

Only one panel ships real bytes in this repository. huesken_subset is a 180-row Huesken redistribution (tests/unit/data/sirna_efficacy_subset.csv; see tests/unit/data/README.md). Ichihara, Martinelli, Shmushkovich and OligoGym are named in #109/#110 and may appear in the panel registry, but this repository vendors none of their bytes. manifest.json’s panel.data_present records this per artifact, and every other test over the benchmark surface runs against synthetic fixtures named synthetic_<architecture>_* – a passing test over a synthetic fixture, or over huesken_subset, is not evidence about any of the four unvendored panels. The issue’s cited PRD (docs/prd_benchmark_artifacts_and_variable_length.md) does not exist in this repository either; the acceptance criteria in #109 are the entire specification.

Help

                                                                               
 Usage: sirnaforge benchmark [OPTIONS] COMMAND [ARGS]...                       
                                                                               
 Fixed-length benchmark artifacts and prepare/design commands (#109)           
                                                                               
β”Œβ”€ Options ───────────────────────────────────────────────────────────────────┐
β”‚ --help          Show this message and exit.                                 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”Œβ”€ Commands ──────────────────────────────────────────────────────────────────┐
β”‚ prepare  Prepare one fixed-length benchmark artifact for a compatible panel β”‚
β”‚          and paired length (#109).                                          β”‚
β”‚ design   Run the fixed-length design path over a prepared benchmark         β”‚
β”‚          artifact, twice-policied (#109).                                   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

prepare

Writes <out-dir>/<panel_id>__len<paired_length>/ with observations.csv, design_inputs.fasta and manifest.json. Every measured observation is preserved, including one incompatible with the requested paired length – dropping it silently would make a later count unreproducible from the panel bytes alone.

                                                                               
 Usage: sirnaforge benchmark prepare [OPTIONS]                                 
                                                                               
 Prepare one fixed-length benchmark artifact for a compatible panel and paired 
 length (#109).                                                                
                                                                               
 Writes ``<out-dir>/<panel_id>__len<paired_length>/`` with                     
 ``observations.csv``,                                                         
 ``design_inputs.fasta`` and ``manifest.json``. Every measured observation is  
 preserved, including                                                          
 one incompatible with this paired length: dropping it silently would make a   
 later count                                                                   
 unreproducible from the panel bytes alone. ``design_inputs.fasta`` is a plain 
 FASTA, so                                                                     
 ``sirnaforge design`` and ``sirnaforge workflow`` consume it with no new      
 execution path.                                                               
                                                                               
β”Œβ”€ Options ───────────────────────────────────────────────────────────────────┐
β”‚ *  --panel                                <str>            Registry         β”‚
β”‚                                                            panel_id to      β”‚
β”‚                                                            prepare. Only    β”‚
β”‚                                                            'huesken_subset' β”‚
β”‚                                                            ships vendored   β”‚
β”‚                                                            bytes in this    β”‚
β”‚                                                            repo; every      β”‚
β”‚                                                            other panel      β”‚
β”‚                                                            needs            β”‚
β”‚                                                            --panel-csv.     β”‚
β”‚                                                            [required]       β”‚
β”‚    --panel-csv                            <path>           Panel source     β”‚
β”‚                                                            table. Required  β”‚
β”‚                                                            for a panel with β”‚
β”‚                                                            no vendored      β”‚
β”‚                                                            bytes (refused   β”‚
β”‚                                                            with a reason    β”‚
β”‚                                                            otherwise);      β”‚
β”‚                                                            refused outright β”‚
β”‚                                                            for a panel that β”‚
β”‚                                                            ships its own,   β”‚
β”‚                                                            so a run cannot  β”‚
β”‚                                                            silently read    β”‚
β”‚                                                            different bytes  β”‚
β”‚                                                            than the ones    β”‚
β”‚                                                            the manifest     β”‚
β”‚                                                            names.           β”‚
β”‚    --panel-transc…                        <path>           Optional FASTA   β”‚
β”‚                                                            of panel         β”‚
β”‚                                                            transcripts.     β”‚
β”‚                                                            Enables          β”‚
β”‚                                                            design_context_… β”‚
β”‚    --native-obser…                        <file>                            β”‚
β”‚    --native-mappi…                        <file>                            β”‚
β”‚    --native-refer…                        <file>                            β”‚
β”‚    --native-refer…                        <file>                            β”‚
β”‚    --paired-length                        <int range>      Design length    β”‚
β”‚                                           [19<=x<=23]      for the paired   β”‚
β”‚                                                            guide slice      β”‚
β”‚                                                            (default: the    β”‚
β”‚                                                            panel            β”‚
β”‚                                                            descriptor's     β”‚
β”‚                                                            declared         β”‚
β”‚                                                            length).         β”‚
β”‚    --out-dir                              <path>           Directory to     β”‚
β”‚                                                            create           β”‚
β”‚                                                            <panel_id>__len… β”‚
β”‚                                                            under.           β”‚
β”‚                                                            [default:        β”‚
β”‚                                                            benchmark_artif… β”‚
β”‚    --overwrite          --no-overwrite                     Overwrite an     β”‚
β”‚                                                            existing         β”‚
β”‚                                                            artifact         β”‚
β”‚                                                            directory        β”‚
β”‚                                                            instead of       β”‚
β”‚                                                            refusing it.     β”‚
β”‚                                                            [default:        β”‚
β”‚                                                            no-overwrite]    β”‚
β”‚    --verbose        -v                                     Enable verbose   β”‚
β”‚                                                            output           β”‚
β”‚    --help                                                  Show this        β”‚
β”‚                                                            message and      β”‚
β”‚                                                            exit.            β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

design

Runs the fixed-length designer over a prepared artifact and extends manifest.json in place with candidates_all.csv, accounting.csv, both filter-verdict sets and both policy blocks (run_policy for the run that executed, default_run_policy re-resolved in the same process for comparison). --gc-min/--gc-max may only widen the shipped floor/ceiling: a narrower value is refused before any design work, because the default-policy verdicts are re-derived from what the (possibly widened) benchmark run already observed, which is only exact if that run enumerated a superset of what a default run would. The polynucleotide-run requirement (max_poly_runs <= 3) stays active and is recorded in manifest.json’s polynucleotide_run_requirement block regardless of any other option here.

                                                                               
 Usage: sirnaforge benchmark design [OPTIONS]                                  
                                                                               
 Run the fixed-length design path over a prepared benchmark artifact,          
 twice-policied (#109).                                                        
                                                                               
 The run executes once, under the (possibly widened) benchmark policy; the     
 default-policy verdict                                                        
 for every candidate is then re-derived from what that one run already         
 observed, never from a                                                        
 second run. ``--gc-min``/``--gc-max`` may only widen the shipped              
 floor/ceiling -- a narrower value                                             
 is refused before any design work, because the re-derived default verdicts    
 assume the benchmark                                                          
 run enumerated a superset of what a default run would. Every other threshold, 
 and the                                                                       
 polynucleotide-run requirement (<= 3) in particular, resolves exactly as      
 ``sirnaforge design``                                                         
 would; nothing here can relax it.                                             
                                                                               
β”Œβ”€ Options ───────────────────────────────────────────────────────────────────┐
β”‚ *  --artifact               <directory>             A directory written by  β”‚
β”‚                                                     'sirnaforge benchmark   β”‚
β”‚                                                     prepare'                β”‚
β”‚                                                     (<panel_id>__len<paire… β”‚
β”‚                                                     [required]              β”‚
β”‚    --design-mode            <str>                   Design mode: sirna      β”‚
β”‚                                                     (default) or mirna.     β”‚
β”‚                                                     [default: sirna]        β”‚
β”‚    --gc-min                 <float range>           Per-run GC floor,       β”‚
β”‚                             [0.0<=x<=100.0]         widened only (default:  β”‚
β”‚                                                     30.0). A value narrower β”‚
β”‚                                                     than the default is     β”‚
β”‚                                                     refused: it would       β”‚
β”‚                                                     falsify the             β”‚
β”‚                                                     default-policy verdicts β”‚
β”‚                                                     this command re-derives β”‚
β”‚                                                     for candidates a        β”‚
β”‚                                                     narrower run never      β”‚
β”‚                                                     enumerated.             β”‚
β”‚    --gc-max                 <float range>           Per-run GC ceiling,     β”‚
β”‚                             [0.0<=x<=100.0]         widened only (default:  β”‚
β”‚                                                     60.0). Narrowing it is  β”‚
β”‚                                                     refused for the same    β”‚
β”‚                                                     reason as --gc-min.     β”‚
β”‚    --policy-config          <path>                  JSON or TOML file of    β”‚
β”‚                                                     policy settings, reused β”‚
β”‚                                                     from 'sirnaforge        β”‚
β”‚                                                     design'. Cannot narrow  β”‚
β”‚                                                     gc_min/gc_max.          β”‚
β”‚    --filter-action          <str>                   Set one filter's        β”‚
β”‚                                                     action:                 β”‚
β”‚                                                     filter_id=off|warn|fail β”‚
β”‚                                                     (repeatable), reused    β”‚
β”‚                                                     from 'sirnaforge        β”‚
β”‚                                                     design'. Only           β”‚
β”‚                                                     gc_min/gc_max widen     β”‚
β”‚                                                     through this command;   β”‚
β”‚                                                     asymmetry, empirical    β”‚
β”‚                                                     and the                 β”‚
β”‚                                                     polynucleotide-run gate β”‚
β”‚                                                     resolve exactly as      β”‚
β”‚                                                     'sirnaforge design'     β”‚
β”‚                                                     would.                  β”‚
β”‚    --verbose        -v                              Enable verbose output   β”‚
β”‚    --help                                           Show this message and   β”‚
β”‚                                                     exit.                   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜