Spaces:
Sleeping
Sleeping
Jonas
commited on
Commit
·
f7fd84e
1
Parent(s):
c2b5b0b
Update README.md to enhance the description of the ADE Explorer, detailing its functionalities and tools, including new features for serious outcomes, time-series trends, and report sources.
Browse files
README.md
CHANGED
|
@@ -12,11 +12,9 @@ sdk_version: 5.33.0
|
|
| 12 |
|
| 13 |
# Medication Adverse-Event Explorer (ADE Explorer)
|
| 14 |
|
| 15 |
-
|
| 16 |
-
(A) finding top adverse events for a drug, and
|
| 17 |
-
(B) checking the frequency of a specific drug-event pair.
|
| 18 |
|
| 19 |
-
It
|
| 20 |
|
| 21 |
**Hackathon Track:** `mcp-server-track`
|
| 22 |
|
|
@@ -24,10 +22,13 @@ It uses public data from OpenFDA.
|
|
| 24 |
|
| 25 |
## Usage
|
| 26 |
|
| 27 |
-
|
| 28 |
|
| 29 |
-
|
| 30 |
-
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
## MCP Server Configuration
|
| 33 |
|
|
@@ -51,7 +52,33 @@ To use this application as a tool with an MCP client (like Cursor or Claude Desk
|
|
| 51 |
}
|
| 52 |
```
|
| 53 |
|
| 54 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
|
| 56 |
---
|
| 57 |
|
|
|
|
| 12 |
|
| 13 |
# Medication Adverse-Event Explorer (ADE Explorer)
|
| 14 |
|
| 15 |
+
An interactive Gradio application for exploring and visualizing data from the FDA Adverse Event Reporting System (FAERS). It also functions as an MCP (Model Context Protocol) server, allowing it to be used as a tool by language models.
|
|
|
|
|
|
|
| 16 |
|
| 17 |
+
It was created for the [MCP Hackathon](https://huggingface.co/Agents-MCP-Hackathon) in May 2025.
|
| 18 |
|
| 19 |
**Hackathon Track:** `mcp-server-track`
|
| 20 |
|
|
|
|
| 22 |
|
| 23 |
## Usage
|
| 24 |
|
| 25 |
+
The explorer is organized into several tabs, each providing a different view of the data:
|
| 26 |
|
| 27 |
+
- **Top Events:** Find the most frequently reported adverse events for a specific drug. You can filter the results by the number of events to show, patient sex, and age range. The output includes a bar chart and a table with both raw counts and relative frequencies.
|
| 28 |
+
- **Serious Outcomes:** See a breakdown of the most serious outcomes (e.g., hospitalization, death) reported for a drug. The output includes a chart and a table showing the percentage of total serious reports for each outcome.
|
| 29 |
+
- **Event Frequency:** Get the total number of reports for a specific combination of a drug and an adverse event, along with the percentage this combination represents out of all reports for that drug.
|
| 30 |
+
- **Time-Series Trends:** Plot the number of adverse event reports over time for a specific drug and event pair, with options for yearly or quarterly aggregation.
|
| 31 |
+
- **Report Sources:** View a pie chart and data table showing the breakdown of who reported the adverse events (e.g., Consumer, Physician, Pharmacist).
|
| 32 |
|
| 33 |
## MCP Server Configuration
|
| 34 |
|
|
|
|
| 52 |
}
|
| 53 |
```
|
| 54 |
|
| 55 |
+
or for Claude Desktop:
|
| 56 |
+
|
| 57 |
+
```json
|
| 58 |
+
{
|
| 59 |
+
"mcpServers": {
|
| 60 |
+
"ade_explorer": {
|
| 61 |
+
"command": "npx",
|
| 62 |
+
"args": [
|
| 63 |
+
"mcp-remote",
|
| 64 |
+
"http://127.0.0.1:7860/gradio_api/mcp/sse",
|
| 65 |
+
"--transport",
|
| 66 |
+
"sse-only"
|
| 67 |
+
]
|
| 68 |
+
}
|
| 69 |
+
}
|
| 70 |
+
}
|
| 71 |
+
```
|
| 72 |
+
|
| 73 |
+
### Exposed MCP Tools
|
| 74 |
+
|
| 75 |
+
The server exposes the following tools, corresponding to the functionalities in the UI:
|
| 76 |
+
|
| 77 |
+
- `top_adverse_events_tool(drug_name: str, top_n: int = 10, patient_sex: str = "all", min_age: int = 0, max_age: int = 120)`: Finds the top reported adverse events for a given drug, with optional filters.
|
| 78 |
+
- `serious_outcomes_tool(drug_name: str, top_n: int = 6)`: Finds the top reported serious outcomes for a given drug.
|
| 79 |
+
- `drug_event_stats_tool(drug_name: str, event_name: str)`: Gets the total number of reports for a specific drug and adverse event pair.
|
| 80 |
+
- `time_series_tool(drug_name: str, event_name: str, aggregation: str)`: Creates a time-series plot for a drug-event pair (`aggregation` can be 'Yearly' or 'Quarterly').
|
| 81 |
+
- `report_source_tool(drug_name: str, top_n: int = 5)`: Creates a pie chart of report sources for a given drug.
|
| 82 |
|
| 83 |
---
|
| 84 |
|