Download mcp/atlas.py from mgbam/MCP_Res: direct link, hf CLI and curl.
- Browser
- Download file 329 Bytes
-
https://huggingface.co/spaces/mgbam/MCP_Res/resolve/49fee0b83cc6421d58b3568b62846bb4cc8cd6c0/mcp/atlas.py
- Command line
-
hf download hf://spaces/mgbam/MCP_Res@49fee0b83cc6421d58b3568b62846bb4cc8cd6c0/mcp/atlas.py
-
curl -L -o atlas.py https://huggingface.co/spaces/mgbam/MCP_Res/resolve/49fee0b83cc6421d58b3568b62846bb4cc8cd6c0/mcp/atlas.py
329 Bytes
| import httpx | |
| from functools import lru_cache | |
| _URL = "https://www.ebi.ac.uk/gxa/json/expressionSummary?geneQuery={}" | |
| async def fetch_expression(sym: str): | |
| async with httpx.AsyncClient(timeout=10) as c: | |
| r = await c.get(_URL.format(sym)) | |
| return r.json() if r.status_code == 200 else {} | |