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: NGS fallback to Python aligner when native tools missing; add missing re import in sequence_utils
34b3c94
-
chore: increase daily rate limits for testing (50 global, 20 NGS)
ee4814e -
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(pipeline): multi-database UniProt identifier resolution
Resolve ANY BLAST-hit accession (RefSeq, GenBank, PDB, Ensembl, ...) or raw protein sequence to a UniProt accession via a strategy ladder: 1. direct - already a UniProt accession (Swiss-Prot / TrEMBL) 2. xref - synchronous xref: search (~1s, no job queue) 3. name - reviewed full-text search on hit description + gene hint 4. sequence - EBI BLAST of query against UniProtKB (e-value gated) 5. idmapping - UniProt ID-mapping queue as last resort _pipeline _run_uniprot now delegates to the resolver; the expensive sequence-BLAST fallback runs only for the top hit. Results carry a resolution block (accession, method, original accession). Verified live across 6 species and 6 accession types. 29 unit tests.59ba48b
-
feat(primers): add NCBI gene search + sequence retrieval, oligo QC and in-silico PCR verification with recharts graphs
5d5e978
-
fix(pathways): read enrichment results from projection response, add p-value and gene ratio
bde6aea
-
fix(blast): honor program/db/max_hits params, accept DNA queries, poll cap 65 min
- pipeline_v2: resolve program/database/sequence-type via blast_config, thread blast_params through /run -> run_pipeline -> _execute -> _run_blast, clamp max_hits to 5-100, record query_sequence_type/query_accession. - pipelines + pipeline_worker: persist database/program/max_hits/query_accession in context_json and forward as blast_params. - validators: accept DNA/RNA in validate_fasta (was rejecting with 400). - sequence_utils: fix detect_sequence_type so ACGT-only strings are nucleotide (protein alphabet overlaps, so nucleotide check now wins). - frontend jobs page: POLL_TIMEOUT_MS 10min -> 65min to match backend window. - tests: unit coverage for resolve_blast_params + nucleotide validation.1f75a84
-
fix: PDB IDs like 1TIM rejected as NCBI accessions causing 400 error
- detect_source_from_accession: add 4-char alphanumeric PDB detection before fallthrough - sequences.py: add PDB branch that resolves PDB -> protein sequence via RCSB FASTA - PDB IDs no longer misclassified as NCBI, eliminating the 400 Bad Request826daa4 -
fix: case-insensitive accession lookup - normalize to uppercase at entry points
- sequences.py: .upper() accession before detect_source and API calls - ncbi_service.py: .upper() accession in fetch_by_accession - uniprot.py: .upper() accession in run() - Fixes: p04637 vs P04637 producing different results / cache misses9be3066 -
fix: UniProt mapping resilience - skip gracefully instead of failing pipeline
- map_refseq_to_uniprot(): skip direct lookup for known UniProt accessions - map_refseq_to_uniprot(): try RefSeq_Protein first for NP_/XP_/YP_ IDs - map_refseq_to_uniprot(): add logging for debugging mapping failures - map_refseq_to_uniprot(): extend poll to 15 iterations - _run_uniprot(): when mapping fails, return partial BLAST data instead of error - Pipeline continues with BLAST-only results when UniProt is unavailable3683b86
-
fix: prevent GROQ restricted-key hang in interpret and audit steps
- Wrap acompletion() in asyncio.wait_for(timeout=30) to prevent indefinite hang when GROQ API key is restricted/organization blocked - Add proper logging for GROQ timeouts and errors - Fix audit engine: add timeout=15, strip markdown fences from LLM JSON output, handle json.JSONDecodeError separately6891fff -
fix: rewrite map_refseq_to_uniprot to use two-step ID mapping API
Old endpoint rest.uniprot.org/idmapping/uniprotkb/search returns 404. New flow: POST /idmapping/run (form-encoded), then poll GET /idmapping/uniprotkb/results/{jobId} every 1s for up to 10s. Also try direct UniProtKB GET first as fast-path for accessions already in UniProt format (e.g. P01308). Also adds UNIPROT_BASE constant.d5fed69
-
fix: BLAST pipeline crash — accession misclassification + missing error handling
Root cause: NCBI accession QMS45324 (insulin hit) was misclassified as UniProt by detect_source_from_accession due to bare 'P/Q/O' prefix check. UniProt lookup then failed with 400, crashing the entire pipeline. Fixes: - detect_source_from_accession: regex-based detection ([OPQ][0-9]xxx for UniProt, A0A[A-Z0-9]{5,}[0-9] for new format) — QMS45324 now correctly classified as NCBI - UniprotTool._fetch: handle 400/500 errors (not just 404) - _run_uniprot: wrap in try/except so UniProt failures don't crash pipeline - pipeline_v2._execute: each step wrapped in individual try/except so one failed step doesn't kill the whole pipeline - map_refseq_to_uniprot: try RefSeq_Protein, EMBL, and PDB sourceseb567da
-
Phase 1: harden rate limits — JWT-aware keys, per-endpoint caps, daily limits on all job types
bd279b4
-
Phase 0c: offload large artifacts to Supabase Storage (docking, pipeline, sequencing)
e47db42 -
Phase 0a: SSRF protection + auth on docking/sequencing, worker design doc
89fd26d -
Fix docking: add pdb_to_pdbqt_receptor() for protein PDBQT conversion
9125057
-
feat: 4-layer audit/observability system
- Layer 1: useAuditTrail hook emits structured events fire-and-forget - Layer 2: audit_events + audit_insights tables in Supabase - Layer 3: Groq LLM-powered audit engine analyzes session event sequences - Layer 4: AuditInsightPanel floating widget with severity coloring - Instrumented BLAST page as first instrumented tool; others ready for same pattern6a2c89b
-
feat: molecular docking (AutoDock Vina) + docs site + Sentry + cache stats + Phase 2 docs update
- Molecular docking tool via AutoDock Vina (free, CPU-based, local binary) - Dockerfile: openbabel apt install + vina binary from GitHub releases - Backend: DockingTool (PDB fetch, obabel PDBQT conversion, vina subprocess, pose parser) - Backend: POST /api/docking/run + GET /api/docking/status/{job_id} - Frontend: analyze/docking/page.tsx — PDB ID + SMILES input, auto-detect binding pocket, results table with affinity color-coding, PDBe structure viewer - Frontend: docking card with 'New' badge added to analyze/page.tsx - Documentation site: /learn pages (10 topics + glossary), LearnPopover inline help, TutorialWalkthrough onboarding modal - Sentry error monitoring: sentry.client.config.ts, sentry.server.config.ts, next.config.js withSentryConfig, backend sentry_sdk init in main.py - Cache stats tracking: _cache_stats counters, from_cache flag, /api/admin/cache-stats endpoint, @ttl_cache on ncbi_service.search_by_name and pathway_enrichment - All .md docs (MASTER_PL…fb8c550
-
feat: complete Phase 2 — API keys, share links, export, pipeline steps, guest upgrade
305458b
-
fix: add logging to init_redis() so Redis failures are visible in server logs
3edbe65
-
feat: domains, interactions, primers, structure analysis, wizard, phylo tree, conservation
- Add backend routers: domains (InterPro), interactions (STRING-DB), primers (Primer3), structure_analysis (Ramachandran, SS pred, comparison) - Add frontend components: AnalysisWizard, PhyloTreeViewer, DomainArchitecture, StringDBViewer, PrimerDesigner, RamachandranPlot, SecondaryStructureViewer, StructureComparison, ConservationTrack - Add pages: /wizard, /analyze/domains, /analyze/interactions, /analyze/primers, /analyze/compare - Update analyze hub: 10 operations in 3 groups + wizard CTA - Update alignment page: visual phylo tree + conservation track - Update job results: Advanced Analysis tabs panel - Register all routers in main.py; add primer3-py to requirements; fix CORS & profilebac1801
-
Add Reactome diagrams, KEGG search, pathway enrichment (pipeline + standalone)
8ce1e37 -
Security, crash fixes, demo prep, dead code removal
- Auth guard: GET/DELETE /api/jobs/{id} now verify ownership (403 on mismatch) - Streaming auth: interpretStream() injects Supabase Bearer token - DELETE 404: return 404 if job never existed - JobProgress: fixed active step to show next pending step - Step names unified: worker → definition → frontend all match - Null-guards: BlastPanel, ScoreBars, UniprotPanel handle undefined/null data - ErrorBoundary: new class component wrapping dashboard layout - Silent catches: replaced .catch(noop) with user-visible error banner - Demo data: filled alignment strings for all hits; added hemoglobin + BRCA1 - History page: linked in sidebar nav (was orphaned) - pipeline_type default fixed: blast → protein_analysis - Axios timeout: added 30s timeout to api client - Dead code: removed 8 files (engine.py, results/export/waitlist routers, celery_app, redis service, registration tool, StructureViewer component) and 4 unused api.ts functions9a28cd0
-
Sprint 1-2: JWT auth middleware + UniProt dedicated page
f8dfa58
-
Add RefSeq->UniProt mapping step in pipeline + demo uniprot_accession
c080f36 -
fix: extract user UUID from JWT for rate limiter, skip anon
c14f4eb -
fix: Analyze button on retrieve page + sessionStorage handoff to blast wizard
6c461b6 -
fix: FASTA header text bleeding into sequence validation, add IUPAC codes U O B Z X J
57fa457
-
Deploy prep: Render config + Dockerfile, refactored backend auth flow, dashboard, landing page, error states, guest flow
76fb273
-
Core pipeline testability: progress callback, rate limiter 429, history table
- Pipeline engine: progress_callback fires after BLAST/UniProt/AlphaFold, Pydantic models normalized to plain dict (fixes 'runs but no result') - Worker: async Supabase REST PATCH for real-time step progress - Rate limiter: raises HTTP 429 with Content-Range parsing, fail-open - History: table layout with clickable rows -> /results/[jobId] - BLAST: add stype param, fix email (EBI rejects invalid domains) - Celery: Redis ping check so fallback to sync thread works - UI: progress bar + percentage in JobProgress, nav link fixes - Auth: removed for testing (will re-enable in Phase 1) - Status: changed pending -> queued to match DB check constraint88aa370 -
Initial commit: Bio Nexus pipeline engine — BLAST + UniProt + AlphaFold + AI interpretation (Phase 1)
5a0e691