> For the complete documentation index, see [llms.txt](https://docs.biobox.io/guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.biobox.io/guide/how-to/ask-biobox-with-claude/tools/get-delta-report-target.md).

# get\_delta\_report\_target — Compare a target within a delta report

Compare a target within a delta report

Compare a target within a delta report

## What it does

For a delta report and a chosen target object, return the comparison for that target — either how its evidence changed between the compared report snapshots (live-vs-archived delta), or how the selected models differ for the anchor→target pair (specific-anchor delta).

**When to use:** you have a delta report (from list\_delta\_reports / get\_delta\_report) and want to drill into ONE target; the user asks what changed for a specific gene/target between the compared runs (which evidence was added/removed); the user asks why two models score the same anchor→target pair differently (specific-anchor delta reports).

**When NOT to use:** you want the delta report's overview / top movers across all targets (use get\_delta\_report); you want the org's delta report inventory (use list\_delta\_reports); you want a single report's ranked scores with no comparison (use get\_report\_scores).

**Parameters:**

* `deltaReportId` — the delta report's id (its uuid, from list\_delta\_reports / get\_delta\_report)
* `targetId` — the target object's uuid to compare (e.g. a gene from get\_delta\_report.targets / get\_report\_scores) — the SECOND object analyzed against the delta report's anchor

**Returns:** An object keyed by the delta report's `type`. Common fields: deltaReportId, type, anchorObject ({ uuid, displayName }), target (the resolved target node { uuid, displayName, dbLabels } — echoed so you can confirm the uuid anchored on the object you meant). For a LIVE-VS-ARCHIVED delta: reports (the compared reports), perReportScores (\[{ reportId, score, normScore }] — the target's total score in each), and evidenceDelta ({ newerReportId, olderReportId, added\[], removed\[] (each { evidenceUuid, displayName, weight, graphPath }), changed\[] (lines whose weight/pythonCode changed, with olderWeight/newerWeight + the change flags), unchangedCount }). For a SPECIFIC-ANCHOR delta: models (\[{ modelId, modelName, contributingEvidence: \[{ evidenceUuid, displayName, weight, rawScore, edgeScore }] }] — the evidences each model fires on the anchor→target edge; edgeScore is the normalized per-evidence score on that edge) and summaryText (a plain-text per-model summary). A bad deltaReportId OR a targetId that resolves to no object returns a 404 Not Found error.

## Parameters

| Parameter       | Type   | Required | Description                                                                                                                                                            |
| --------------- | ------ | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `deltaReportId` | string | yes      | the delta report's id (its uuid, from list\_delta\_reports / get\_delta\_report)                                                                                       |
| `targetId`      | string | yes      | the target object's uuid to compare (e.g. a gene from get\_delta\_report.targets / get\_report\_scores) — the SECOND object analyzed against the delta report's anchor |

## Response

```ts
{
  deltaReportId: string;
  type: string | null;
  anchorObject: {
    uuid: string | null;
    displayName: string | null;
  } | null;
  target: {
    uuid: string;
    displayName: string | null;
    dbLabels: string[];
  };
  reports: Array<{
    reportId: string;
    displayName: string | null;
  }>;
  perReportScores: Array<{
    reportId: string;
    score: number | null;
    normScore: number | null;
  }>;
  evidenceDelta: {
    newerReportId: string | null;
    olderReportId: string | null;
    added: Array<{
      evidenceUuid: string | null;
      displayName: string | null;
      weight: number | null;
      graphPath: string | null;
    }>;
    removed: Array<{
      evidenceUuid: string | null;
      displayName: string | null;
      weight: number | null;
      graphPath: string | null;
    }>;
    changed: Array<{
      evidenceUuid: string | null;
      displayName: string | null;
      weightChanged: boolean;
      olderWeight: number | null;
      newerWeight: number | null;
      pythonCodeChanged: boolean;
    }>;
    unchangedCount: number;
  } | null;
} | {
  deltaReportId: string;
  type: string | null;
  anchorObject: {
    uuid: string | null;
    displayName: string | null;
  } | null;
  target: {
    uuid: string;
    displayName: string | null;
    dbLabels: string[];
  };
  models: Array<{
    modelId: string;
    modelName: string | null;
    contributingEvidence: Array<{
      evidenceUuid: string | null;
      displayName: string | null;
      weight: number | null;
      rawScore: number | null;
      edgeScore: number | null;
    }>;
  }>;
  summaryText: string | null;
}
```

## Example

```json
// get_delta_report_target({"deltaReportId":"XAQc6AFG_tUe1PfXsABtX","targetId":"ENSG00000178568"})
{
  "deltaReportId": "XAQc6AFG_tUe1PfXsABtX",
  "targetId": "ENSG00000178568"
}
```

Response (arrays truncated):

```json
{
  "deltaReportId": "XAQc6AFG_tUe1PfXsABtX",
  "type": "live-vs-archived",
  "anchorObject": {
    "uuid": "MONDO:0004976",
    "displayName": "amyotrophic lateral sclerosis"
  },
  "target": {
    "uuid": "ENSG00000178568",
    "displayName": "ERBB4",
    "dbLabels": [
      "Gene",
      "ProteinCoding"
    ]
  },
  "reports": [
    {
      "reportId": "pCfdy8OyuPKQmZp",
      "displayName": "ALS"
    },
    {
      "reportId": "SNV8xUkFBQz1Q4a",
      "displayName": "ALS"
    },
    {
      "reportId": "FExtbFGkakJWXTXcsOgzT",
      "displayName": "ALS"
    }
  ],
  "perReportScores": [
    {
      "reportId": "pCfdy8OyuPKQmZp",
      "score": 1.5162798625413438,
      "normScore": 0.3094622966262094
    },
    {
      "reportId": "SNV8xUkFBQz1Q4a",
      "score": 1.3219510755286288,
      "normScore": 0.35714999281743726
    },
    {
      "reportId": "FExtbFGkakJWXTXcsOgzT",
      "score": 1.3219510755286288,
      "normScore": 0.3863743978235577
    }
  ],
  "evidenceDelta": {
    "newerReportId": "pCfdy8OyuPKQmZp",
    "olderReportId": "SNV8xUkFBQz1Q4a",
    "added": [],
    "removed": [],
    "changed": [
      {
        "evidenceUuid": "BF3gFkxVuwYA7_xcDPE1E",
        "displayName": "OpenTargets- Drug Acts on Gene Approved for the Disease",
        "weightChanged": true,
        "olderWeight": 1.5,
        "newerWeight": -1,
        "pythonCodeChanged": false
      },
      {
        "evidenceUuid": "1kbI8mg6BpzfDN8ab5Qgm",
        "displayName": "ClinVar Pathogenic Varient",
        "weightChanged": true,
        "olderWeight": 1.5,
        "newerWeight": 3,
        "pythonCodeChanged": false
      }
    ],
    "unchangedCount": 18
  }
}
```
