Oracle
Context-Aware Gene Importance Prediction
POST /predict_gene_essentialityPredicts whether a given gene is essential for cell survival or proliferation in a specific cellular context (e.g., human cancer cell lines).
Parameters
taskstringRequiredThe API task identifier
Example: predict_gene_essentiality
genestringRequiredParameter: gene
Example: KRAS
contextobjectRequiredParameter: context
Example: {"cell_line":"A549","known_mutations":["TP53","KEAP1"]}
Code Examples
Python Example
PYTHONimport 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
CURLcurl -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"
}