Skip to content

The default value of the resource argument of the Content Service differs from the REST API #33

Open
@136s

Description

@136s

In /exporter/diagram/{identifier}.{ext}, the Default value of resource is TOTAL, but in resultome2py.content.export_diagram, Total.
This prevents markers from being colored in the following code.

from reactome2py import content, analysis


markers = "RAS,MAP,IL10,EGF,EGFR,STAT"
result = analysis.identifiers(ids=markers)
token = result["summary"]["token"]
stId = result["pathways"][0]["stId"]
for i, resource in enumerate(["Total", "TOTAL"]):
    content.export_diagram(
        id=stId, resource=resource, token=token, file=f"{i}-{resource}"
    )
Markers in 0-Total.png are not colored. Markers in 1-TOTAL.png are colored.
0-Total 1-TOTAL

Therefore, Total should be replaced by TOTAL.

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