Spaces:
Running
Running
Commit History
-
feat: techspec additions — de novo tier-6 branch, structure export, page capture + final synthesis
Pre-work A1-A7: pymol2-wheel cleanup + fpocket source builds, migration 008 structure_prep_jobs with RLS, user-scoped reads, input validation, SSRF routing, chain_integrity + castp/fpocket status tags. S1: zero-hit proteins complete as de novo runs — composition/hints bundle, InterProScan5 sequence-search domains, ESMFold structure card; confidence tiers (identified/homolog/de_novo) threaded backend-to-frontend with badges, DeNovoPanel, unavailable-state messaging. S2: /api/structure-export router (PDB/CIF/styled PyMOL .pse), docking complex.pdb + ligand.sdf exports, StructureExportMenu on viewer + docking page, honest ChimeraX/VMD file+script bundles. S3: migration 009 page_captures, rate-limited allowlisted capture service wired per source, deterministic final-synthesis findings with confidence-tier tagging, FinalReport panel. 84 backend tests green across five suites; frontend tsc + lint clean.4939f56 -
feat: optimize CASTp SASA with KDTree, add sequence input to CASTp + Structure Prep, ESMFold integration for unknown genes
Backend: - castp.py: Replace O(n²) adjacency loop with scipy KDTree O(n log n), compute SASA on first model only - castp router: Accept pdb_id, sequence (auto-ESMFold), or pdb_text input - structure_prep.py: Add esmfold_predict() for raw sequences via HF Inference API - structure_prep router: Accept sequences for full pipeline (ESMFold → chain detection → repair → cleanup → pockets) Frontend: - CASTp page: PDB ID / amino acid sequence toggle, textarea with residue counter - Structure Prep page: PDB ID / amino acid sequence toggle, progress bar with ESMFold step - api.ts: Add runCastpSequence(), runStructurePrepSequence(), sequence_source on CastpResulte21c532
-
feat: structure preparation pipeline — broken chains → SWISS-MODEL repair → PyMOL cleanup → fpocket + CASTp
- Broken chain detection: Biopython REMARK 465 + CA-CA gap >4.2Å - SWISS-MODEL auto-repair when broken chains found (SMR Repository API) - PyMOL cleanup (waters/hetero removal) with Biopython fallback - fpocket local pocket detection (compiled from source in Docker) - CASTp remote async via CASTpFold server (polls for results) - Combined pocket results panel (fpocket + CASTp side by side) - Pipeline status stepper UI with progress bar - Both Dockerfiles: fpocket compiled from Discngine/fpocket source - Frontend: analyze/structure-prep/page.tsx with full pipeline visualization - Wired into main.py + api.ts, TypeScript clean1b28e93 -
fix: switch runCastp to longApi (660s timeout)
c6a8542 -
feat: add CASTp pockets, SWISS-MODEL, ESMFold + fix Dockerfiles
- CASTp pocket analysis: Biopython SASA + grid-based cavity detection, 3 endpoints - SWISS-MODEL Repository: query SMR API for homology models + experimental structures - ESMFold structure prediction: HF Inference API proxy, async job with progress - Fix root Dockerfile: add g++/libgl1/libgomp1/libopenblas-dev/libxml2/libxslt1.1 - Fix primer3-py quoting bug in both Dockerfiles (shell redirect issue) - Wire 3 routers into main.py, add API client functions, update analyze hub - TypeScript clean, zero errorsbe36a29
-
fix: retry NGS run on 503 (Render cold start)
12ba364
-
fix(ngs): dynamic locus + SAM-first igv.js for reliable genome browser
Root causes of blank igv.js browser: 1. Locus hardcoded to NC_045512v2:21000-25000 but synthetic reads align at position ~0 — browser was viewing an empty region 2. BAM format from pure-Python converter may still have subtle issues that igv.js strict parser rejects Fixes: - Backend: _python_alignment now computes read_region from actual mapped positions and returns it in the result - Backend: _compute_read_region() helper parses SAM for min/max positions - Backend: minimap2 path also gets read_region via the helper - Frontend: IgvBrowser prefers SAM over BAM (text format, zero risk) - Frontend: NGS page uses alignment.read_region for igv.js locus instead of hardcoded REFERENCE_LOCUS map - Frontend: Added read_region to NGSAlignment type132a669 -
feat: add igv.js genome browser + proper 6-step NGS pipeline
Backend (ngs.py): - Step 1 QC: per-base quality distribution, GC windows, read length stats - Step 2 Trim: quality/length filtering with before/after metrics - Step 3 Align: Python seed-and-extend alignment (mapped reads, CIGAR) - Step 4 Variant: pileup-based variant calling with VCF output - Step 5 Annotation: SnpEff/cross-reference with protein changes - Step 6 Visualization: upload BAM/SAM/VCF/FASTA to Supabase Storage Frontend: - IgvBrowser component: lazy-loads igv.js, loads BAM/SAM + VCF tracks - Rebuilt NGS page with all 6 steps, per-base quality SVG chart - Download links for BAM/SAM/VCF/FASTA - TypeScript types updated for file_urls, quality charts, annotations Verified: end-to-end test produced 50 variants, uploaded SAM+VCF+reference.95e9035 -
feat: add full 6-step NGS pipeline + fix sequencing WinError 193
NGS Pipeline (new): - tools/ngs.py: 6-step pipeline (QC, trim, align, variants, annotate, report) with native tool detection (fastqc/fastp/minimap2/samtools/bcftools/snpEff) and pure-Python fallbacks for every step (works on Windows + Linux/Docker) - routers/ngs.py: FastAPI router with POST /run, GET /status, GET /references - migrations/007_ngs_jobs.sql: ngs_jobs table + claim RPC + RLS policies - worker.py: wired ngs_jobs into durable worker dispatch - rate_limit.py: 5 NGS jobs/day per user - Frontend: /analyze/ngs page with 6-step progress stepper, QC stats, trimming retention, alignment mapping rate, variant table, annotation with known variant lookup, consensus FASTA download, BLAST bridge - api.ts: NGS types + runNGS/getNGSStatus/listNGSReferences functions Sequencing Pipeline fix: - Fixed [WinError 193] by detecting platform and refusing to execute Linux ELF binary on Windows; added Python fallback alignment5fa9145
-
feat(seo): JSON-LD structured data — Organization/WebSite graph, SoftwareApplication+HowTo homepage, BreadcrumbList across tools
30a62d7 -
feat(branding): Synteny rebrand — new identity, signal-coded palette, and pipeline icons
6fdc858
-
feat(results): in-app share dialog + self-normalized dotplot scoring
Share flow: replace native share sheet / clipboard-only sharing with a dedicated ShareDialog (copy link, native Web Share when available, and popup links for X, Facebook, LinkedIn, WhatsApp, Telegram, Reddit, Email). Wizard and job detail pages now create the link, open the dialog, and show a spinner while the link is being created. Dotplot: stringency now means percent of a window's perfect self-match for substitution scoring (residue-composition independent), so identical A-rich proteins render a full main diagonal and conserved regions appear regardless of amino-acid content. Both inputs must be protein for matrix scoring; protein-vs-DNA comparisons fall back to identity and report a mixed type. BLAST panels link dot plots against full-length subject sequences from the MSA instead of the aligned segment. Verified: backend test_seq_tools 48 passed; frontend tsc + next build clean.525a5b5
-
feat(admet): ProTox 3.0 ML toxicity prediction — backend client + endpoint, frontend ProTox tab, restored sidebar chevron
38e4510
-
feat(design): bioluminescent green+violet palette and re-tuned landing hero
- Swap the whole instrument palette to life-green (#4ADE80 / #15803D) primary, violet (#A78BFA / #5B21B6) secondary, amber (#FBBF24) warnings across globals.css tokens, tailwind config, and every hardcoded chart/sequence color in src (alignment, phylo, domains, structure, interactions, ADMET). - Landing hero: split layout with a live binary-DNA viewer panel (0/1 glyphs flowing along green/violet strands, pointer parallax, reduced-motion static frame, ResizeObserver tracking), new workflow-first subcopy, spring entrances. - Sidebar: remove the floating collapse chevron; sidebar always expanded. - Remove CursorGlow component and all usages. - Sync design.md to the new palette and contrast values.deb8696 -
feat(ui): apple-design conformance — springs for micro-interactions, reduced-motion/transparency/contrast support, typography tracking
4724c43
-
feat(theme): dual light/dark mode with Apple light theme, toggle, and theme-aware viewers
e83084c
-
feat(seq-tools): MSA match/mismatch/gap cell highlighting, consensus row and legend
773cf91 -
feat(seq-tools): motif categories & structure overlay, dot-plot scoring & features, cross-tool links
033540e -
feat(seq-tools): add sequence utilities, motif scanner and dot plot tools with frontend pages
60aee05
-
feat(alignment): show matched/mismatched/gaps/length stats across all alignment views via shared AlignmentStatsBar
c83d9b9 -
feat(primers): add NCBI gene search + sequence retrieval, oligo QC and in-silico PCR verification with recharts graphs
5d5e978 -
feat(export): add downloads to ADMET, MD, pairwise, AlphaFold, docking, pathway, plus 4 new learn topics
527a85d -
fix(pipeline): send alignment_mode from wizard to pipeline v2 API
0f1caf6 -
fix(function-predict): add BP term, real AA composition, JSON export, UniProt distinction, and /learn topic
0e1d7f2
-
fix(pathways): read enrichment results from projection response, add p-value and gene ratio
bde6aea -
Fix pipeline MSA/AI stall, add SwissADME-parity ADMET panel, PubChem search, docking ligand data
- Pipeline: lazy litellm loading in interpreter/llm_client, brace-safe prompt building, EBI MSA best-effort (clustalo->muscle) + in-process progressive MSA fallback (msa_fallback.py), robust polling with consecutive-failure detection in PipelineResults. - ADMET: SwissADME-parity block (BOILED-Egg polygons, ESOL, Martin bioavailability, Muegge, radar, SA score), HBA as pure N+O count, recharts radar/BOILED-Egg/range-bar panel, chemical name in header. - PubChem: /api/admet/search autocomplete + name/CID->SMILES resolution, debounced compound search box on ADMET page. - Docking: ligand essential-data table (formula, MW, heavy atoms, H count, HBA/HBD/TPSA/RB/LogP) and per-pose hydrogen counts. - Pin backend start scripts to backend/.venv.5bb077e
-
Add MSA pairwise refinement, new UI components (SmoothLoader, Reveal, CursorGlow, Parallax), rate-limit handling in AIInterpretation
ace64e6 -
Fix AI model fallback chain and enrich share message with result details
- llm_client: only add a backup model when PRO_MODEL is explicitly configured; drop hardcoded gemini-1.5-flash that 404s on Vertex - interpreter: skip retries for non-existent models, friendly not-found error message - share: message now includes top hit, hit count, query, and length extracted from the result context (jobs page + wizard)0e66d74 -
Fix share links, persist wizard jobs, add AI interpretation fallback, animate landing
- Share: hydrated context on shared pages, allow anonymous/guest jobs, Web Share API with custom message, surface real API errors, add Share button to wizard results - Wizard: persist v2 jobs to Supabase (history + shareable), attach auth token to v2 runs, surface MSA failures and add FASTA download, render MSA + phylo on jobs/shared pages - AI: retry/backoff honoring provider rate-limit delays, provider cascade with fallback models, friendly streaming errors and notices, retry button - Landing: cursor-tracking TiltCard with spotlight, database marquee, animated pipeline connectors, scroll reveals, refreshed semantic gradients1f74aa2 -
Refine design system: semantic color tokens, tiered motion, denser result cards, VinaLog toolbar
5e98b5a -
Add global/local BLAST modes, full-length pairwise alignment view, standalone pairwise tool
8321d59
-
feat(docking): Vina full-detail — parse 1.2.7 log (RMSD l.b./u.b., version, seed), RMSD table + run-config UI (3e)
4320faf
-
feat(uniprot,domains): reviewed/organism filters + debounce/fast-path, PROSITE raw-sequence scan UI (3c,3d)
7acf89d -
feat(alignment): multi-method MSA (clustalo/muscle/kalign/mafft/tcoffee) with method selector (3b)
cc7ed3f -
feat(alignment): pairwise global/local alignment via BLAST hit 'Align pair' (3a)
- POST /api/alignment/pairwise: Biopython PairwiseAligner (Needleman-Wunsch global default / Smith-Waterman local), BLOSUM62/PAM250, configurable gap penalties; subject fetched by accession (NCBI efetch -> UniProt fallback, ttl_cache 86400); clear 400 on dead/obsolete accession - Degenerate no-overlap local alignment returns empty result, not an error - BlastPanel 'Align pair' button: full query seq threaded from all 4 render sites, dimmed overhang beyond the aligned region, coverage note, fetch-failure UI - biopython>=1.80 pinned; 18 offline testsf0992bc -
feat(md): verified force field/solvent menu (ff14SB/ff15ipq/ff19SB/amberfb15/CHARMM36 x OBC1/OBC2/GBN2) with alanine-dipeptide createSystem startup probe; explicit errors for invalid combos; dynamic frontend menu
2583376
-
feat(md): clay simulation-parameter controls (force field, solvent, run length)
09fc54e
-
feat(md): temperature/KE, Rg and SASA traces; fix OpenMM in deployed image
- Add temperature (from kinetic energy), radius-of-gyration and Shrake-Ruger SASA time series to OpenMM production results; static single points in the BioPython fallback; avg summary keys. - Correct nm->A conversion in _positions_to_np (RMSD/Rg/SASA were 10x too small and mislabeled as angstrom). - Self-calibrating production length: probe real platform throughput so runs fit the budget on fast local OpenCL and slow CPU-only containers (HF Spaces). - Deployment: install openmm>=8.0 via pip (PyPI since 8.0) instead of the broken micromamba+site-packages symlink; add libgomp1 to worker image; fix libgl1-mesa-glx -> libgl1 for bookworm base. Verified in a built image: OpenMM 8.5.2 imports and a full 1CRN production run completes with sane temperature/Rg/SASA. - Random-data unit tests for Rg, SASA, temperature-from-KE and Langevin thermostat; production integration test asserts the new keys. - Frontend: charts for temperature, Rg and SASA; SASA avg in summary.8e3419e -
feat(md): real OpenMM production runs with accurate Ca RMSD
- OpenMM 8.x implicit-solvent fix (explicit obc2 forcefield, NoCutoff) - Strip non-standard residues before parameterization - Adaptive production length (target 250 ps, cap 1 ns) sized to atom count - Ca-atom Kabsch RMSD + per-residue Ca RMSF, minimization drift metric - Graceful fallback to BioPython analysis when OpenMM cannot build structure - Fix rdkit/OpenMM DLL conflict (preload openmm before rdkit in worker/conftest) - Frontend: adaptive production progress bar + extended result typescbef588
-
fix: increase axios timeout for long-running endpoints and fix Render config
- Add longApi (660s timeout) for BLAST, docking, MD, function prediction - Keep 30s timeout for fast queries (structure, uniprot, domains, etc.) - Fix render.yaml: DEMO_MODE=false, add CORS_ORIGIN for all Vercel domains - Add NCBI_API_KEY and NCBI_EMAIL to Render env vars240d7ca
-
perf: parallelize post-BLAST steps + fast_mode Swiss-Prot toggle
- _execute(): UniProt, MSA, Pathway Enrichment run in parallel via asyncio.gather - _execute(): Domains + AlphaFold run in parallel after UniProt completes - Total post-BLAST time: ~8min sequential -> ~4min (limited by MSA) - Add fast_mode toggle: Swiss-Prot (~560K seqs, 5-10s) vs nr (~300M seqs, 30s-2min) - Frontend: fast mode toggle in BLAST wizard advanced settings - Backend: fast_mode flows through pipelines.py -> worker -> pipeline_v2 -> blast.pyf3682aa
-
feat: ADMET 3a/3b split — mark RDKit descriptors as production, toxicity/ADMET as rule-based heuristic
fe8fda4
-
feat: industrial-grade ADMET + detailed MD/function results
Backend (admet.py): - 50+ molecular descriptors (Fsp3, MR, volume, E-state, Wiener, Zagreb) - Full functional group analysis (12 groups) - 5 drug-likeness filters (Lipinski, Veber, Ghose, Egan, MDDR) - ADMET predictions: absorption (oral bio, Caco-2, Pgp, HIA), distribution (Vd, BBB, PPB, CNS), metabolism (CYP panel, half-life, LipE), toxicity (AMES, hERG, DILI, skin, LD50), clearance - Structural alerts: PAINS + Brenk - Composite drug-likeness score (0-100) and toxicity risk score (0-10) - Fixed imports (removed rdFineMD, Fragkins typo) Frontend (admet/page.tsx): - Tabbed layout: Overview, Properties, Drug-likeness, ADMET, Alerts - Risk badge components (color-coded pass/fail/risk levels) - Detailed ADMET category breakdowns - Structural alert summary with progress bar Frontend (md/page.tsx): - Simulation parameters card with engine/forcefield/solvent details - Integration steps progress bars - Energy analysis with convergence + production trace - RMSD/RMSF statistics (min/max/avg) …24c3fcb -
fix: OpenMM via micromamba + BioPython structural fallback, real error messages
bd95b9f -
feat: scientifically accurate MD simulation with OBC2 solvent, Kabsch RMSD, per-residue RMSF
3fba508
-
Phase 3a/4/5: ADMET descriptors (RDKit), MD simulation (OpenMM), function prediction (DeepFRI-inspired) — backend + frontend
99fb209
-
Phase 0a: SSRF protection + auth on docking/sequencing, worker design doc
89fd26d -
Docking viewer upgrade: Molstar GPU rendering, proper interaction geometry, 3D dashed-line rendering
e86bafa -
Fix docking route mismatches: GET /status/{id}, frontend pdb URL prefix
e619a9b
-
feat: add interaction fingerprinting and 3Dmol.js viewer to molecular docking page
- Backend: H-bond, hydrophobic, pi-stacking detection with conservative cutoffs - Backend: inline ligand PDB generation per pose, stored in result - Backend: GET /api/docking/result/{job_id}/pdb endpoint - Frontend: DockingViewer (3Dmol.js) — protein cartoon + ligand stick overlay - Frontend: InteractionPanel — collapsible tables for all interaction types - Frontend: poses table now shows H/HP/π counts per posea6857c7