Skip to content

Error in drug search for proximity #2

@lspindler2509

Description

@lspindler2509

I tried to run the proximity drug search algorithm with the following parameters:

parameters = {
"identifier": identifier,
"algorithm": "proximity",
"target": "drug",
"includeIndirectDrugs": False,
"includeNonApprovedDrugs": False,
"result_size": 50,
}
task = new_task(id_set, parameters)
r = task.get_result()

Once the Drugst.One backend was done, the error of the screenshot occurs, which is apparently in the following file:
https://github.com/drugst-one/python-package/blob/main/src/drugstone/scripts/normalize_nodes.py

image

With the same call/setup when using trustrank, degree or closeness, everything works. So it seems to be a specific problem with proximity.
Did we call the algorithm incorrectly, or is this maybe a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions