Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Using API to pull snakeplots #524

@samhimes92

Description

@samhimes92

Hi,

I'm working on creating on interactive visualization using d3. I'd like to use the API to pull snake plot svgs. I started by pulling the snake plot svg from gpcrdb manually.

For example https://gpcrdb.org/protein/oprd_human/ -> download -> svg

It downloads the svg as an XML and it works perfectly for my purposes.

When I use the API , I use a request URL like this, https://gpcrdb.org/services/plot/snake/oprd_human
and it downloads a json. When I convert that json to XML, I notice that there are some big differences between it and the XML that I downloaded manually. For example, the XML that I download manually has a ViewBox element, while the one pulled from the API doesn't.

Is there a way to get snakeplot pulled from the API to be the exact same as the one pulled manually from the db?

Metadata

Metadata

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