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
-
fix: eliminate infinite re-render loop - remove ResizeObserver, fix ref prop conflict, simplify zoom/pan
1631264 -
fix: prevent infinite re-render loop in GenomeViewer (error #290)
444bafe -
feat: replace igv.js with custom SAM/VCF genome viewer
1d58553 -
chore: remove samUrl prop from IgvBrowser (igv.js only supports BAM)
6c7f30f -
refactor: require native samtools/minimap2, delete hand-rolled BAM/BAI code
- Install samtools + minimap2 in backend/Dockerfile and build.sh - render.yaml now uses build.sh (installs native tools) - _run_alignment: raises RuntimeError if tools missing, checks returncode on every subprocess call (minimap2, samtools sort, samtools index) - Deleted ~350 lines of hand-rolled BAM/BAI code: _bgzf_compress, _voffset_for, _sam_to_bam, _write_bai, _seq_to_half_ints, _parse_cigar, _cigar_ref_len, _reg2bin - _python_alignment now produces SAM only (no BAM/BAI) - _run_variant_calling: added returncode checks on bcftools calls - _upload_ngs_files: removed Python fallback paths - IgvBrowser: removed 300-line JS BAM converter, fetches BAM/BAI/VCF as Blobs for igv.js (which only supports BAM for alignments)2fe9546
-
fix: igv.js fetch BAM/BAI as Blobs, client-side SAM-to-BAM conversion, proper BGZF
41d0a94 -
fix: SAM-only igv.js track, indexed:false reference, debug logging
454af7f -
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(ngs): pure-Python SAM to BAM converter with BGZF + BAI index for igv.js
- Added _sam_to_bam() for converting SAM to valid BGZF-compressed BAM - Added _bgzf_compress() producing proper BGZF blocks with raw deflate - Added _write_bai() generating minimal BAI index files - Python alignment now auto-generates BAM from SAM - Upload function finds aligned.bam as fallback - IgvBrowser prefers BAM over SAM with format detection - Removes duplicate helper functions0c59ad3 -
fix: load igv.js from CDN instead of ESM import
e32795d -
fix: igv.js white screen — CIGAR ops, qual strings, locus format
Backend (ngs.py): - CIGAR: replaced 1X with 1M (SAM spec: M = alignment match including mismatches). Added proper multi-digit collapse (63M37M -> 100M) - Quality strings: padded/truncated to match sequence length exactly - Unmapped reads: also get fixed-length quality strings Frontend: - IgvBrowser: added loading/error states, 100ms DOM delay, container clear before reinit, status feedback - Locus: changed from invalid gene names (SCoV2) to position format (NC_045512v2:21000-25000) for SARS-CoV-2 region of interest - SAM download link added alongside BAM/VCF/FASTA Verified: CIGAR collapse produces 100M, no X ops, all QUAL match seq len.a56b947 -
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(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(landing): trust & craft pass — sample result preview with confidence bands, honest service/status copy, unified CTA verbs, grouped database taxonomy, 44px nav touch targets, calmer motion (no chevron loop, glow under nav)
0d05012 -
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): share colored MSA viewer across BLAST job, alignment tool, report, shared and phylo surfaces
ec313db
-
feat(seq-tools): MSA match/mismatch/gap cell highlighting, consensus row and legend
773cf91 -
fix(seq-tools): stop auto-scrolling on job completion, fix structure highlight & AlphaFold viewer loading
9d96b4e -
feat(seq-tools): wire motif scanner into BLAST, structure, alignment and dot-plot workflows
fc75164 -
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(frontend): stop polling after job completion and surface AI rate-limit retry countdown
224d629
-
fix(interactions): add evidence-type filter, JSON export, and learn tooltips to STRING-DB viewer
d2ea003 -
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
-
Add next/core-web-vitals ESLint config, fix unescaped entities
867aec4 -
Polish tool pages: fix dead bg-glass-card classes, contrast on teal, confidence band tokens, RNA badge
906f65b -
Convert legacy light pages (auth, callback, shared, blast) and components to native dark tokens
c976c65 -
Remove light/dark theme toggle (dark-only app), drop ThemeProvider + darkMode config, add accent-hover token
c490645 -
refactor(icons): migrate lucide-react to @phosphor-icons/react, remove dep
349f22c -
style(theme): Geist fonts, AA-verified text tiers, 4-band confidence tokens
4d6992b -
chore: frontend design polish (accent palette, remove glow/gradient utils), ignore installed skill trees, add opencode skills config
415d3b5
-
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
-
fix(frontend): clear stale results, prefill-only bridges, and results-ready banners
Stop bridge pages from auto-running searches on navigation, clear result cards when inputs change, and add completion banners with auto-scroll on polling job pages. Co-authored-by: Cursor <cursoragent@cursor.com>bc59cdc -
feat(frontend): roll design-system classes across all dashboard pages + fix sidebar toggle alignment
6c03381 -
feat(frontend): HUD glass design system + clay components
Add reusable UI kit (GlassPanel, HudPanel, HudLegend, DataCard, CriticalButton, ClaySegmented, ClaySlider, ClayToggle, FlatInput) and apply the glass/HUD styling across pipeline, structure, and results views. Adds CODE_SAMPLE_TEMPLATE.md.d54a751