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

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

Open
136s opened this issue Jan 23, 2024 · 0 comments

Comments

@136s
Copy link

136s commented Jan 23, 2024

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.

136s added a commit to 136s/reactome2py that referenced this issue Jan 23, 2024
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