Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return TP53_loh: 1 when it's inferred from TP53mut and TP53maxvaf #14

Open
juanesarango opened this issue Jul 3, 2024 · 1 comment
Open

Comments

@juanesarango
Copy link
Contributor

When TP53_loh is inferred, the api still responds with 0

$ curl \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"HB": 10, "PLT": 100, "BM_BLAST": 5, "CYTO_IPSSR": "Intermediate", "TP53mut": "2 or more", "TP53maxvaf": 80}' \
    https://api.mds-risk-model.com/ipssm

Response:

{
  "patient": {
    "HB": 10,
    "PLT": 100,
    "BM_BLAST": 5,
    "CYTO_IPSSR": "Intermediate",
    "RUNX1": "NA",
    "TP53mut": "2 or more",
    "TP53maxvaf": 80,
    "del5q": 0,
    "del7_7q": 0,
    "del17_17p": 0,
    "complex": 0,
    "TP53loh": 0,
    "MLL_PTD": 0,
    "FLT3": 0,
    "ASXL1": 0,
    "CBL": 0,
    "DNMT3A": 0,
    "ETV6": 0,
    "EZH2": 0,
    "IDH2": 0,
    "KRAS": 0,
    "NPM1": 0,
    "NRAS": 0,
    "SF3B1": 0,
    "SRSF2": 0,
    "U2AF1": 0,
    "BCOR": 0,
    "BCORL1": 0,
    "CEBPA": 0,
    "ETNK1": 0,
    "GATA2": 0,
    "GNB1": 0,
    "IDH1": 0,
    "NF1": 0,
    "PHF6": 0,
    "PPM1D": 0,
    "PRPF8": 0,
    "PTPN11": 0,
    "SETBP1": 0,
    "STAG2": 0,
    "WT1": 0
  },
  "ipssm": {
    "means": {
      "riskScore": 1.48,
      "riskCat": "High"
    },
    "worst": {
      "riskScore": 2.02,
      "riskCat": "Very High"
    },
    "best": {
      "riskScore": 1.41,
      "riskCat": "High"
    }
  }
}

Current behavior:

It returns TP53loh: 0 even thought it should be inferred as TP53mut is 2 or more and it's maximum vaf is > 55%.

What should it return:

It should show: TP53_loh: 1, or add a new variable like: TP53_loh_inferred: 1

@juanesarango juanesarango mentioned this issue Jul 3, 2024
5 tasks
@juanesarango
Copy link
Contributor Author

juanesarango commented Jul 3, 2024

In the ipssm R package the behavior is that if input is TP53loh: 0 but it can be inferred, the output is TP53loh: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant