Skip to main content

🧬 What is siRNAforge?

siRNAforge is a production-ready tool for designing small interfering RNAs (siRNAs) with integrated multi-species off-target analysis. Built for researchers who need reliable, high-specificity gene silencing candidates.

Why siRNAforge?

  • 🎯 End-to-end workflow — From gene symbol to ranked candidates in one command
  • 🔬 Multi-species validation — Off-target analysis of transcriptome and miRNA seed matches across the human, rat, and rhesus macaque transcriptomes
  • 🐍 Developer-friendly — Modern Python API with full type hints and Pydantic models. Easily extend with your own scoring methods.

Key Features

Feature Description
🔍 Multi-database search Remote Ensembl and NCBI RefSeq retrieval; human GENCODE lookup from local annotation and transcript FASTA files
🧬 Variant targeting Design and rank candidates against specific genetic variants with population AF filtering
🧾 Transcript annotations Ensembl REST or local GENCODE GTF / NCBI RefSeq GFF3/GTF models; local files record assembly and checksums
🌡️ Thermodynamic scoring ViennaRNA-based secondary structure prediction and stability analysis
🎯 Transcriptome Off-target analysis Transcriptome BWA-MEM2 transcriptome search with mismatch tolerance control
🧬 miRNA seed avoidance MirGeneDB, miRBase, or both for mature-miRNA seed matching (positions 2-8; internal pyahocorasick default)
🔤 Smart species handling Accepts any format (common names, miRBase codes, scientific names) — auto-normalizes to canonical
⚙️ Nextflow pipeline Scalable, containerized execution for high-throughput analysis
💉 Chemical modifications Track 2'-O-methyl, 2'-fluoro, and phosphorothioate patterns
📊 Rich output Structured CSV, FASTA, and JSON reports with comprehensive metadata

Supported Python versions: 3.10, 3.11, 3.12 (Python 3.13+ pending ViennaRNA compatibility)


📦 Installation

Choose your path based on what you need to do:

Complete installation guide with troubleshooting →

  • Deploy / run from registry (no setup) — Pull the prebuilt image with all bio tools, Nextflow, and Java bundled.

    docker pull ghcr.io/austin-s-h/sirnaforge:latest
    
  • Daily development (Python-only, fast) — Use uv + managed virtualenv; great for core code and unit tests. Heavy bio/Nextflow tests stay skipped unless you also have Docker/Java.

    curl -LsSf https://astral.sh/uv/install.sh | sh
    git clone https://github.com/austin-s-h/sirnaforge && cd sirnaforge
    make dev
    make check
    
  • Complete local testing (matches CI) — Either

    1. Build and test in Docker (reuses the bundled tools): make docker-build-test
    2. Or use conda to get bio deps + Java locally, then run the full suite:
    conda env create -f environment-dev.yml
    conda activate sirnaforge
    make test-release
    

    (Nextflow/Java are required for Nextflow-marked tests; Docker is required for container-marked tests.)


🚀 Quick Start

Run a gene workflow:

# Docker
docker run -v $(pwd):/workspace -w /workspace \
  ghcr.io/austin-s-h/sirnaforge:latest \
  sirnaforge workflow TP53 --output-dir results

# Local
uv run sirnaforge workflow TP53 --output-dir results

What you get:

  • Transcript sequences from Ensembl
  • Thermodynamically-scored siRNA candidates
  • Off-target analysis through the selected Nextflow runtime (Docker or a complete native toolchain)
  • Ranked results in CSV and FASTA formats
  • Automatic Ensembl transcriptome indexing across human, mouse, rat, and rhesus macaque (override with --transcriptome-fasta, or supply design-ready transcripts via --input-fasta)
  • A reference_summary block in logs/workflow_summary.json that records whether each reference was explicit, defaulted, or disabled

Need more control? Customize with parameters:

sirnaforge workflow BRCA1 \
  --species "human,rat,rhesus" \
  --gc-min 40 --gc-max 60 \
  --max-off-targets 20 \
  --design-mode mirna \
  --output-dir results

Selection defaults are deliberately permissive:

  • --top-n is uncapped — every ranked candidate is reported. Pass a value only to truncate the reported set; enumeration and screening always cover every candidate either way.
  • --max-off-targets defaults to 15 genuine off-target sites (on-target, ortholog and repeat-mediated hits are excluded first). This is the PASS/EXCESS_OFF_TARGETS gate. It is not --max-hits, which caps how many hits are recorded per candidate per species and will censor your counts if you set it.

ZFN mutation constraints (composable)

⚠️ EXPERIMENTAL — ZFN output is not decision-grade. The implementation defects tracked in #82 have regression coverage, including the right-half-site orientation, FokI seed geometry, nested gene overlaps, mismatch enumeration, result fields, empty outputs, sharding, and the public Nextflow route. Exact and two-mismatch searches against GRCh38 primary recover the CCR5 on-target and produce candidate sites; these software checks do not establish nuclease activity, specificity, or agreement with an independent experimental panel. Do not use ZFN output for decisions without independent validation. Start from the ZFN Module Guide.

ZFN mode accepts repeatable mutation constraints so you can combine per-subfinger and global budgets.

sirnaforge zfn \
  --zfn-left-half-site GCGTGGGCG \
  --zfn-right-half-site GCCCACGCG \
  --zfn-search-space ensembl_human_hg38_primary \
  --zfn-max-mismatches-per-subfinger 1 \
  --zfn-max-substitutions-overall 3 \
  --zfn-subfinger-mutation "2:0:deletion" \
  --output-dir zfn_results

Constraint syntax for --zfn-subfinger-mutation is:

  • scope:max_mutations:type1,type2
  • scope can be:
    • * → default budget for each subfinger
    • <index> → specific subfinger (1-based)
    • overall → global budget across all subfingers
  • supported types: substitution, transition, transversion, insertion, deletion
  • shorthand: mismatch is accepted as an alias for substitution

Transcript database sources

Ensembl is the default. NCBI RefSeq gene/sequence retrieval uses remote E-utilities:

sirnaforge search TP53 --database refseq --no-fallback

Human GENCODE search uses a local GTF and transcript FASTA from the same release and assembly:

export SIRNAFORGE_GENCODE_GTF=/data/gencode.annotation.gtf.gz
export SIRNAFORGE_GENCODE_FASTA=/data/gencode.transcripts.fa.gz
export SIRNAFORGE_GENCODE_ASSEMBLY=GRCh38
sirnaforge search TP53 --database gencode --no-fallback

workflow --database refseq or workflow --database gencode selects the same retrieval providers. Local RefSeq GFF3/GTF files can supply structural annotations independently of sequence retrieval. Selecting a gene provider does not replace the transcriptome/miRNA screening references. See the annotation provider guide for file requirements and offline workflows.

Custom inputs & offline mode

Bring your own transcript sequences while still running the full workflow:

# Design from bundled sample FASTA (design-only mode, no transcriptome off-target)
sirnaforge workflow TP53 \
  --input-fasta examples/sample_transcripts.fasta \
  --output-dir custom_inputs_demo

# Design from bundled sample FASTA and align against mouse transcriptome
sirnaforge workflow TP53 \
  --input-fasta examples/sample_transcripts.fasta \
  --transcriptome-fasta ensembl_mouse_cdna \
  --output-dir custom_inputs_demo

# Remote FASTA sources also work
sirnaforge workflow BRCA1 \
  --input-fasta https://example.org/custom/brca1.fasta \
  --transcriptome-fasta /data/reference/ensembl_human_cdna_111.fasta

--input-fasta skips gene search and designs directly from your sequences. When used alone, transcriptome screening is disabled. Supply --transcriptome-fasta or --transcriptome-indices to request screening with custom inputs.

When screening is enabled without explicit references, the workflow downloads and indexes the selected Ensembl cDNA references (human, mouse, rat, and macaque by default), reusing valid caches. Explicit --transcriptome-indices replaces automatic downloads. Index construction and alignment use the same Nextflow runtime. See the execution-mode guide.

Hits on the target gene's orthologue in another screened species are classified ortholog, not counted as off-target liabilities. Orthologues are resolved against Ensembl Compara on stable gene IDs, because symbols do not travel across nomenclature authorities — human TP53's mouse orthologue is Trp53. Each row's ortholog_evidence column says which evidence was used (gene_id, or the symbol_heuristic fallback), so a validated conservation call is never confused with a symbol coincidence. A custom --transcriptome-fasta gets the same treatment when its Ensembl cDNA headers identify the species.

Every workflow run now captures the resolved transcriptome decision in logs/workflow_summary.json under reference_summary.transcriptome, indicating whether the reference was auto-selected, explicitly supplied, or intentionally disabled. This makes it easier to audit production runs and confirm that default references were applied as expected.

📖 Usage examples and workflows → 📖 Complete CLI reference →


📚 Documentation

🎯 For Users

🔧 For Developers

📘 Browse full documentation →

Use sirnaforge --help, sirnaforge workflow --help, or the detailed CLI reference.


🎯 Use Cases

🧬 Basic Gene Silencing

sirnaforge workflow EGFR --output-dir egfr_analysis

Design siRNAs for a single target gene with default parameters.

🔬 Multi-Species Validation

# Accepts any species format - auto-normalizes to canonical names
sirnaforge workflow TP53 --species "human,rat,macaque"
# Also works: --species "hsa,rno,mml" or --species "Homo sapiens,Rattus norvegicus,Macaca mulatta"

Check off-target potential across multiple model organisms.

🧪 miRNA Seed Avoidance

# Species parameter drives both transcriptome and miRNA analysis
sirnaforge workflow BRCA1 --species "human,mouse"
# Override miRNA species independently if needed: --mirna-species "hsa,mmu,rno"

# Use miRBase instead of the default MirGeneDB
sirnaforge workflow BRCA1 --species human --mirna-db mirbase

# Require both sources and deduplicate their mature sequences
sirnaforge workflow BRCA1 --species human --mirna-db mirgenedb+mirbase

Report and filter candidate seed matches against the selected mature-miRNA references.

⚙️ High-Throughput Analysis

# Batch multiple genes (off-target step uses the embedded Nextflow pipeline)
for gene in TP53 BRCA1 EGFR KRAS; do
  sirnaforge workflow "$gene" --output-dir "batch_results/$gene"
done

Process many genes in batch while reusing the same embedded Nextflow off-target engine.

💊 Chemical Modifications

sirnaforge workflow KRAS --modification-file examples/modification_patterns/fda_approved_onpattro.json

Track and apply FDA-approved modification patterns.

📖 More examples and tutorials →


🏗️ Architecture

siRNAforge implements a modular pipeline designed for both interactive use and high-throughput automation:

Gene Symbol → Transcript Retrieval → siRNA Design → Off-target Analysis → Ranked Candidates

Core Components:

  • Gene Search — Multi-database transcript retrieval (Ensembl, RefSeq, GENCODE)
  • Design Engine — Thermodynamic scoring with ViennaRNA integration
  • Off-target Analysis — BWA-MEM2 transcriptome-wide alignment
  • Nextflow Pipeline — Scalable containerized execution

📖 Architecture documentation →


🔬 System Requirements

All dependencies included in the image:

  • Nextflow ≥25.04.0
  • BWA-MEM2 ≥2.2.1
  • SAMtools ≥1.19.2
  • ViennaRNA ≥2.7.0
  • Python 3.10-3.12

Local Development

Python-only features work immediately. Off-target analysis requires Docker or manual installation of bioinformatics tools.

📖 Dependency details →


🤝 Contributing

We welcome contributions! siRNAforge uses modern Python tooling with make workflows for efficient development.

Essential Make Commands

🧪 Testing (By Tier)

make test-dev        # Fast unit tests (~15s) - for development iteration
make test-ci         # Smoke tests for CI/CD with coverage reports
make test-release    # Deterministic host + container validation with coverage
make test            # Normal suite; live-service tests are opt-in

🧪 Testing (By Requirement)

make test-requires-network  # Explicit local-only live-service checks
make test-requires-nextflow # Tests requiring Nextflow

For a targeted live check, use uv run pytest tests/integration/test_variant_live.py --run-network -v. Normal runs skip live-service tests, both release stages exclude them, and CI rejects --run-network. See the testing guide for local Docker opt-in.

🔧 Code Quality

make lint       # Check code quality (ruff check + mypy)
make format     # Auto-format and autofix style issues (ruff)
make check      # format + test-dev (mutating quick validation)
make pre-commit # Run all pre-commit hooks locally
make security   # Run bandit + safety scans

🐳 Docker

make docker-build    # Build Docker image
make docker-test     # Run tests INSIDE container
make docker-shell    # Interactive shell in container
make docker-run      # Run workflow (e.g., make docker-run GENE=TP53)
make docker-build-test # Clean, rebuild, and validate Docker image

📚 Documentation

make docs        # Build HTML documentation
make docs-serve  # Serve docs locally at localhost:8000

🔧 Utilities

make clean       # Clean build artifacts and caches
make version     # Show current version
make example     # Run the sample workflow on bundled transcripts
make cache-info  # Inspect local transcript/miRNA cache mounts
make help        # Show all Make targets with descriptions

📖 Complete development guide → 📖 Contributing guidelines → 📖 Testing strategies →


📄 License

This project is licensed under the MIT License. See LICENSE for details.


📞 Support & Community


🙏 Acknowledgments

siRNAforge integrates several open-source bioinformatics tools:

Built with ❤️ for the research community
Portions developed with AI assistance • Reviewed and validated by human developers

Metadata

Release files for sirnaforge 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sirnaforge 0.8.0
File Size Uploaded Provenance Actions
sirnaforge-0.8.0.tar.gz 1.1 MB With provenance Details for sirnaforge-0.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sirnaforge 0.8.0
File Interpreter ABI Platform Actions
sirnaforge-0.8.0-py3-none-any.whl Python 3 none any Details for sirnaforge-0.8.0-py3-none-any.whl

Total release size: 1.9 MB

Release files / sirnaforge-0.8.0.tar.gz

Download URL sirnaforge-0.8.0.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
b81004fe6c2f4e2b2bfd68a190db2e7fc2ec9bc6dd0a6980751c778322cb8492
BLAKE2b-256 checksum
How to use checksums
454190c6167cf9f3a3362cda2a2a0316928e1cefbfe5d3c503ec8f23b1e58b9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / sirnaforge-0.8.0-py3-none-any.whl

Download URL sirnaforge-0.8.0-py3-none-any.whl
Size 779.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a6ba0ad8ada1f36aac1b409d3e84ea3a4d0e390e77d24fc2ca620442acfd6448
BLAKE2b-256 checksum
How to use checksums
0f5a25b2e96345d8dd3bceb1cf69b8a657b1b42f150fe6b0c1bd26c2c8534e18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Security for sirnaforge 0.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sirnaforge-0.8.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page