Spaces:
Sleeping
Sleeping
Commit History
-
CRISPR M5: structure viewer β cut site on the AlphaFold modelβ
Tengo Gzirishvili +1: Claude Opus 4.8Reuses the Mol* 5.9.0 viewer already loaded for the directed-evolution page to show a guide's cut site on the gene's predicted 3-D structure. Backend: - Guide.cut_residue: maps each Cas9 cut β 1-based protein residue when a reading frame is resolvable (gene+organism aligned to CDS, or the input is itself a coding sequence). Exposed in /api/crispr/design. - resolve.resolve_uniprot(): gene symbol + organism β reviewed UniProt accession via the UniProt REST API β AlphaFold-DB model URL. Only the (gene, organism) leaves the Space. - GET-style POST /api/crispr/structure (sign-in gated) returns the UniProt accession + AlphaFold URLs. Frontend: - A "View 3-D structure Β· cut at residue N" button inside the M3 "why this guide" panel (shown only when a human/mouse gene context + a resolved residue exist β no new table column). - Structure modal mounts AlphaFold-DB via the proven mountAlphaFold path; header reads "GENE Β· UniProt XXXXX Β· cut at residue Nβ¦73b3e85 -
CRISPR M1: base-editing design mode (CBE/ABE + iSTOP + AA consequence)β
Tengo Gzirishvili +1: Claude Opus 4.8Promotes the base-editor flag into a first-class design mode that out-classes tools which only flag editability. Backend (dee/core/base_editor.py, new): - Editor library: BE4max/BE3/evoCDA (CBE CβT), ABE8e/ABE7.10 (ABE AβG), each with activity window + per-position profile (Komor/Koblan/ Thuronyi/Gaudelli/Richter). - predict_base_edits(): edits in window, per-position efficiency, bystander detection, editability score. - codon_consequence(): frame-aware AA call β silent/missense/nonsense/ stop-loss + CRISPR-STOP / iSTOP detection. Returns None (never guesses) on alignment mismatch or incomplete codon. find_guides() gains mode="base_edit" + base_editor= kwargs (defaults keep every existing caller unchanged). New Guide fields are all defaulted. AA consequence fills only when a reading frame is trusted β gene_symbol+ organism aligned to CDS, or the input is itself a clean coding sequence (_looks_like_cds). Base editing is SpCas9-only; annotation is gated to it.β¦dd2d535 -
CRISPR M0: validation test suite + fix KO cut-position copy-paste bugβ
Tengo Gzirishvili +1: Claude Opus 4.8Establishes a regression net for the live guide-design engine (65 tests, dev-only β not shipped in the image, not in requirements.txt): tests/test_crispr.py guide coordinates round-trip on both strands; CFD vs Doench 2016 matrix; on-target/KO/indel/ base-editor ranges; Cas12a TTTV PAM; hostile input fails safe; CSV/XLSX width + ;-locale safety tests/test_cloning.py cloning-oligo overhangs match the published Zhang (Cas9) / Zetsche (Cas12a) conventions exactly β the highest-consequence output tests/test_offtarget.py genome off-target search via injected in-memory index + temp-FASTA builder (no network) tests/test_exon.py CDS alignment + exon mapping + NMD rule against a hand-built GeneStructure (no Ensembl calls) Fix surfaced by the net: the KO position-bias used a ternary whose two branches werβ¦36858f4
-
CRISPR Phase 2C-1 β cloning oligos + vendor buttons + vector pickerβ
Tengo Gzirishvili +1: Claude Opus 4.7Ports the directed-evolution page's "design β order" loop to CRISPR. Three things, all matching the design-page pattern: 1. Vector picker (dropdown above results table). 5 popular Cas9 vectors + 1 Cas12a vector seeded: - px330 (Addgene 42230, BbsI) β original Zhang Cas9+gRNA - pX458 (Addgene 48138, BbsI) β px330 + 2A-GFP, FACS sortable - pX459 V2 (Addgene 62988, BbsI) β px330 + 2A-Puro - lentiCRISPRv2 (Addgene 52961, BsmBI) β lentiviral all-in-one - pLentiGuide-Puro (Addgene 52963, BsmBI) β gRNA-only lentiviral - pY094 (Addgene 84739, BsmBI) β lentiCpf1 for Cas12a Default = pX459 V2 (covers the most common knockout workflow). 2. Per-guide oligo pair. Standard Zhang-lab format: sense: 5'-CACCG[20 nt spacer]-3' antisense: 5'-AAAC[reverse complement]C-3' Cas12a (pY094) uses the AGAT / AAAA overhang convention from Zetsche 2017. Two new table columns (Sense oligo, Antisense oligo) each with a Copy buβ¦7a41c01 -
CRISPR Phase 2B-1 β E. coli genome off-target + Ensembl exon-aware designβ
Tengo Gzirishvili +1: Claude Opus 4.7Two new optional features, both backward-compatible (no params = pre-2B behavior): 1. Genome off-target search. New dee/core/offtarget.py: - Lazy NCBI download (~3 s) on first request after a cold start. - 8-mer-seeded kmer index in memory; pure-Python (no BWA/bowtie deps). - For each Cas9 guide: search every NGG site in the genome with up to 4 mismatches in the spacer + 1 mismatch in the seed (positions 13-20), CFD-score each candidate, return top hits. - E. coli K-12 MG1655 ready today (5 MB FASTA, ~240k sites, ~5 s build). - Human / mouse stubbed as placeholders pending pre-built indexes hosted externally (Phase 2B-2). - Thread-safe build lock; degrades open on any error. 2. Exon-aware annotation. New dee/core/exon.py: - Ensembl REST lookup for (organism, gene_symbol) β canonical transcript + exon structure + CDS sequence. Cached in-memory. - Align user's pasted DNA to the gene's CDS via fast substring seed β¦345b9c9 -
CRISPR Phase 2A polish β replace Cleanliness (saturated at 6) with Dominance %β
Tengo Gzirishvili +1: Claude Opus 4.7Founder feedback: every guide on EGFP showed Cleanliness=6. The count was useless β algorithm caps top_n at 5 + "other" = 6 items, and the 5% threshold lets all of them through. Replaced with top_dominance_pct: the frequency of the single most- likely repair outcome. Direct biological readout β answers "will I get one main edit product or many?" with one number: 40%+ = clean predictable cut (one dominant edit) β green 25-40% = typical heterogeneous repair β amber <25% = messy (smear of alleles) β red API field renamed outcome_diversity β top_dominance_pct. CSV column "Outcome diversity" β "Top outcome dominance %". UI column "Cleanliness" β "Dominance". Frontend keeps a soft fallback for one deploy cycle so cached browsers don't render "β". XLSX column width adjusted. Cache buster bumped to 20260529-crispr-dominance. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>7c54abf -
CRISPR Phase 2A β inDelphi-inspired indel prediction + base-editor flagβ
Tengo Gzirishvili +1: Claude Opus 4.7Two new capabilities, both empirical heuristics that ship as pure Python with no new deps (defer the neural-network inDelphi to Phase 2B if benchmark gap demands). 1. Indel outcome prediction. For each Cas9 guide we scan Β±17 bp of the cut site for microhomologies (2-6 bp), score MMEJ deletions by MH_length Γ exp(-del_length/10) per Bae 2014, add the templated +1 insertion class (~32% of events, templated from position -4 per van Overbeek 2016 / Lemos 2018), plus a small MH-less baseline. Aggregate per-guide: top_indel_label "-3 (ATG) (28%)" / "+1 T (32%)" / ... frameshift_pct total % of outcomes that are frameshift outcome_diversity # of outcomes β₯ 5% (low = clean cut) predicted_indels top-5 outcomes with frequencies Smoke-tested against EGFP β predictions are biologically plausible: in-frame -3 dels dominate in coding sequence (trinucleotide periodicity β frequent microhomologies), templated +1 inseβ¦db7532c -
Replace CRISPR CSV export with native XLSX (fixes ;-locale Excel mangle)β
Tengo Gzirishvili +1: Claude Opus 4.7Founder hit the bug immediately after the Phase 1 ship: opening the downloaded CSV in Excel on macOS with a Georgian locale split every data row on ";" instead of ",", because Excel's CSV import uses the OS list-separator (";" in most non-English locales) regardless of what the file actually uses. Visible symptom: 15-column data showing up as 2 columns with the KO reasoning text broken in half on the embedded semicolon. Two fixes, shipped together: 1. dee/core/crispr.py β KO reasoning strings now use en-dash "β" instead of ";" so even the fallback CSV path is safe. 2. dee/server.py β /api/crispr/download now emits a proper XLSX via openpyxl. Native Excel format: no delimiter ambiguity, opens cleanly in Excel / Numbers / Google Sheets regardless of locale. Headers bold + paper-fill, numeric columns emitted as proper numbers so sort + cell formats work natively, header row frozen, sensible column widths. 3. Frontend β button label "Download CSV" β β¦ec5933d -
CRISPR Phase 1 β Doench-inspired scoring + CFD self-off-target + Cas12a + KO efficacyβ
Tengo Gzirishvili +1: Claude Opus 4.7Closes the credibility gap vs CRISPOR/CHOPCHOP. Five things: 1. Doench-inspired on-target scoring. Strongest published sequence-only features from Doench 2016 (RS2) β per-position single-nt weights at all 20 positions (was 5), dinucleotide weights at PAM-coupled positions, kept GC + homopolymer + PAM contributions. Honest UI label: "TuringDNA on-target" β not "Doench RS2", since we skipped the gradient-boosted ML layer. 2. CFD self-off-target scoring. The exact 20-position mismatch-penalty matrix from Doench 2016 Supplementary Table 19 plus PAM multiplier table. For each guide, scores every OTHER NGG site in the pasted input as a potential off-target. None of CRISPOR/CHOPCHOP/Synthego does CFD-within-input β defensible novel angle, especially useful when editing tagged constructs where the tag may harbor an unintended cut site. Returns per-guide max_cfd_offtarget + offtarget_count. 3. Cas12a / Cpf1 support. TTTV PAM aβ¦995ee2a
-
Fix CRISPR reverse-strand position formula (off-by-GUIDE_LEN bug)
Verified signatured9c7298 -
CRISPR MVP: Cas9 knockout gRNA designer (sign-in gated, free for accounts)
Verified signaturefeeac92