Code Monkey home page Code Monkey logo

Comments (2)

colleenXu avatar colleenXu commented on June 26, 2024

@tokebe @andrewsu I think this bug fix can be deployed now for this upcoming release...

from biothings_explorer.

colleenXu avatar colleenXu commented on June 26, 2024
I've confirmed that things work as-expected after the Prod deployment

POST to https://bte.transltr.io/v1/smartapi/adf20dd6ff23dfe18e8e012bde686e31/query (Prod instance, Multiomics drug-repsonse only through BTE)

{
    "message": {
        "query_graph": {
            "nodes": {
                "n0": {
                    "ids":["PUBCHEM.COMPOUND:5291"],
                    "categories":["biolink:ChemicalEntity"],
                    "name": "imatinib"
                },
                "n1": {
                    "categories":["biolink:Gene"]
               }
            },
            "edges": {
                "e1": {
                    "subject": "n0",
                    "object": "n1",
                    "predicates": ["biolink:physically_interacts_with"]
                }
            }
        }
    }
}

Response (multiomics-fix.json) has two separate edges, one for TTD and one for drugcentral

                "95791a7a9661df24ea4774998fc53757": {
                    "predicate": "biolink:physically_interacts_with",
                    "subject": "PUBCHEM.COMPOUND:5291",
                    "object": "NCBIGene:3815",
                    "attributes": [
                        {
                            "attribute_type_id": "biolink:primary_knowledge_source",
                            "attributes": [
                                {
                                    "attribute_type_id": "biolink:source_infores",
                                    "value": "infores:ttd"
                                }
                            ],
                            "value": "infores:ttd"
                        },
                        {
                            "attribute_type_id": "biolink:aggregator_knowledge_source",
                            "value": "infores:biothings-multiomics-biggim-drugresponse"
                        }
                    ],
                    "sources": [
                        {
                            "resource_id": "infores:ttd",
                            "resource_role": "primary_knowledge_source"
                        },
                        {
                            "resource_id": "infores:biothings-multiomics-biggim-drugresponse",
                            "resource_role": "aggregator_knowledge_source",
                            "upstream_resource_ids": [
                                "infores:ttd"
                            ]
                        },
                        {
                            "resource_id": "infores:service-provider-trapi",
                            "resource_role": "aggregator_knowledge_source",
                            "upstream_resource_ids": [
                                "infores:biothings-multiomics-biggim-drugresponse"
                            ]
                        }
                    ]
                },


                "3e5fb4a92bbbbe921a84a0c0193e5460": {
                    "predicate": "biolink:physically_interacts_with",
                    "subject": "PUBCHEM.COMPOUND:5291",
                    "object": "NCBIGene:3815",
                    "attributes": [
                        {
                            "attribute_type_id": "biolink:primary_knowledge_source",
                            "attributes": [
                                {
                                    "attribute_type_id": "biolink:source_infores",
                                    "value": "infores:drugcentral"
                                }
                            ],
                            "value": "infores:drugcentral"
                        },
                        {
                            "attribute_type_id": "biolink:aggregator_knowledge_source",
                            "value": "infores:biothings-multiomics-biggim-drugresponse"
                        }
                    ],
                    "sources": [
                        {
                            "resource_id": "infores:drugcentral",
                            "resource_role": "primary_knowledge_source"
                        },
                        {
                            "resource_id": "infores:biothings-multiomics-biggim-drugresponse",
                            "resource_role": "aggregator_knowledge_source",
                            "upstream_resource_ids": [
                                "infores:drugcentral"
                            ]
                        },
                        {
                            "resource_id": "infores:service-provider-trapi",
                            "resource_role": "aggregator_knowledge_source",
                            "upstream_resource_ids": [
                                "infores:biothings-multiomics-biggim-drugresponse"
                            ]
                        }
                    ]
                },

Closing issue, opening a new one on a more robust fix.

from biothings_explorer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.