{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## Biomni 101" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Welcome to Biomni! Here is a simple tutorial on the basics of Biomni package. After you installed the environment, you can then simply try this to initialize the agent, which will automatically download the raw data lake files:" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "import sys\n", "\n", "sys.path.append(\"../\")\n", "\n", "from biomni.agent import A1\n", "\n", "agent = A1(path=\"./biomni_data\", llm=\"claude-sonnet-4-5-20250929\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Then, you can simply start prompting the agent with the desired biomedical research task!" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "log = agent.go(\"\"\"Plan a CRISPR screen to identify genes that regulate T cell exhaustion,\n", " measured by the change in T cell receptor (TCR) signaling between acute\n", " (interleukin-2 [IL-2] only) and chronic (anti-CD3 and IL-2) stimulation conditions.\n", " Generate 32 genes that maximize the perturbation effect.\"\"\")" ] } ], "metadata": { "kernelspec": { "display_name": "biomni_fixed", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.11.13" } }, "nbformat": 4, "nbformat_minor": 2 }