Release 25.12 GraphQLQuery API does not match with Opentargets Platform results for Breast Cancer

Hello,

I was doing this GraphQL query :

Variables: {“diseaseId”: “MONDO_0007254”}


query BreastCancerTargets($diseaseId: String!) {
  disease(efoId: $diseaseId) {
    id
    name
    associatedTargets(page: { size: 10, index: 0 }) {
      count
      rows {
        target {
          id
          approvedSymbol
          approvedName
          biotype
        }
        score
        datatypeScores {
          id
          score
        }
      }
    }
  }
}

And I got the following results:

https://api.platform.opentargets.org/api/v4/graphql/browser?query=query%20targetInfo%20%7B%0A%20%20target%28ensemblId%3A%20%22ENSG00000169083%22%29%20%7B%0A%20%20%20%20id%0A%20%20%20%20approvedSymbol%0A%20%20%20%20biotype%0A%20%20%20%20geneticConstraint%20%7B%0A%20%20%20%20%20%20constraintType%0A%20%20%20%20%20%20exp%0A%20%20%20%20%20%20obs%0A%20%20%20%20%20%20score%0A%20%20%20%20%20%20oe%0A%20%20%20%20%20%20oeLower%0A%20%20%20%20%20%20oeUpper%0A%20%20%20%20%7D%0A%20%20%20%20tractability%20%7B%0A%20%20%20%20%20%20label%0A%20%20%20%20%20%20modality%0A%20%20%20%20%20%20value%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D%0A

But when I compare it with opentargets standalone latest release, that is suppose to be the same as the graphql api, i get slightly different overall score results:

Open Targets Platform

Comparison:

Please would it be possible to know why?

Hi @koryclick,

The Platform uses an API query to populate the breast cancer associations page. You can see it by clicking here:

If you compare your query against the Platform query, you might be able to find the issue :slight_smile:

@koryclick We’ve been taking a look and we’ve found the issue.

The discrepancy is due to a difference in the default settings of the API: the weight of the cancer biomarkers datasource is set to 0.5 in the API but 1 in the Platform UI.

If you copy the API query from the Platform, you will get the correct weightings.

We will fix this in the upcoming release — well spotted!

1 Like

Just to let you know that we’ve aligned the Platform UI and the API in the latest release, out today!