Spaces:
Sleeping
Sleeping
Commit History
-
Fix: Identify/AlphaFold dead-ends on heavily-sequenced proteins (e.g. Cas9)
Tengo Gzirishvili +1: Claude Opus 4.8Reported: opening the closest-structure view on a Cas9 variant said "NO ALPHAFOLD MODEL AVAILABLE" even though SpCas9 obviously has one (UniProt Q99ZW2). Root cause: the Identify BLAST hits `nr`, which is excellent for identification but crowded with redundant GenBank/TPA records — Cas9's top hits are all `tpg|HER…` third-party annotations with NO UniProt accession, so the curated entry is buried and _extract_uniprot finds nothing → no AlphaFold model resolved. Fix: when no parsed `nr` hit carries a UniProt accession, fall back to a homology search against the small curated `swissprot` database. Every UniProtKB/Swiss-Prot entry has an AlphaFold-DB model, so this reliably surfaces the closest KNOWN structure (Cas9 → Q99ZW2). The resolved accession is pinned onto the top hit, with its organism + identity kept separate so the UI labels it honestly as the closest reviewed homolog rather than the exact query. - server.py: _swissprot_uniprot() + _attach_structure_homolog(); called at the…a635fbe