Spaces:
Running on Zero

Accept bundled gene symbols in CellGemma Studio

#15
by rpinho1 - opened

I checked all 19,881 keys in the shipped knowledge graph. Studio rejected three. The catalog keys C4B_2 and GTF2H2C_2 fail because they contain underscores. The browser cuts XNDC1N-ZNF705EP-ALG1L9P, an approved 23-character HGNC symbol, to 20 characters. Both routes return 422 when given that complete symbol directly.

This change aligns the browser input and both routes on a 32-character limit and accepts underscores. Validation still requires an exact normalized catalog lookup.

I verified that both local routes returned 200 for all three inputs and that pasting each symbol in Chrome preserved it in the submitted prompt. The browser replay used saved completions from the released bfloat16 weights on Apple MPS, with K562 control cell 0 and a 32-token generation cap.

The regression test fails on main and passes with the patch. Run python -m unittest discover -s tests -p test_gene_symbol_validation.py.

🤖 Generated with Claude Code

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment