diff options
author | Frederick Muriuki Muriithi | 2021-09-16 13:06:04 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2021-09-16 13:06:04 +0300 |
commit | 056171a0a2f127e90ab803b74635495fb0c079a2 (patch) | |
tree | b14c46a89f26bc695427c1eef561757fb9d9b4dc /.github | |
parent | 2cc9f382e199dbdbaab98c7e06deabd72e244adb (diff) | |
download | genenetwork3-056171a0a2f127e90ab803b74635495fb0c079a2.tar.gz |
Intergrate the heatmap generation with the API
Issue:
https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/clustering.gmi
* Intergrate the heatmap generation code on the /api/heatmaps/clustered
endpoint.
The endpoint should take a json query of the form:
{"traits_names": [ ... ] }
where the "traits_name" value is a list of the full names of traits.
A sample query to the endpoint could be something like the following:
curl -i -X POST "http://localhost:8080/api/heatmaps/clustered" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"traits_names": [
"UCLA_BXDBXH_CARTILAGE_V2::ILM103710672",
"UCLA_BXDBXH_CARTILAGE_V2::ILM2260338",
"UCLA_BXDBXH_CARTILAGE_V2::ILM3140576",
"UCLA_BXDBXH_CARTILAGE_V2::ILM5670577",
"UCLA_BXDBXH_CARTILAGE_V2::ILM2070121",
"UCLA_BXDBXH_CARTILAGE_V2::ILM103990541",
"UCLA_BXDBXH_CARTILAGE_V2::ILM1190722",
"UCLA_BXDBXH_CARTILAGE_V2::ILM6590722",
"UCLA_BXDBXH_CARTILAGE_V2::ILM4200064",
"UCLA_BXDBXH_CARTILAGE_V2::ILM3140463"
]
}'
which should respond with a json response containing the raw binary string
for the png format and possibly another for the svg format.
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions