Oracle

Context-Aware Gene Importance Prediction

POST /predict_gene_essentiality
Predicts whether a given gene is essential for cell survival or proliferation in a specific cellular context (e.g., human cancer cell lines).

Parameters

taskstringRequired

The API task identifier

Example: predict_gene_essentiality
genestringRequired

Parameter: gene

Example: KRAS
contextobjectRequired

Parameter: context

Example: {"cell_line":"A549","known_mutations":["TP53","KEAP1"]}

Code Examples

Python Example

PYTHON
import requests

response = requests.post(
    "https://api.crispro.ai/predict_gene_essentiality",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={
    "task": "predict_gene_essentiality",
    "gene": "KRAS",
    "context": {
        "cell_line": "A549",
        "known_mutations": [
            "TP53",
            "KEAP1"
        ]
    }
}
)

result = response.json()
print(result)

cURL Example

CURL
curl -X POST https://api.crispro.ai/predict_gene_essentiality \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"task":"predict_gene_essentiality","gene":"KRAS","context":{"cell_line":"A549","known_mutations":["TP53","KEAP1"]}}'

Response Schema

{
  "essentiality_score": "string",
  "essentiality_category": "string"
}