KarrLab / datanator_rest_api

A OAS3 compliant REST API for the Datanator integrated database
MIT License
0 stars 3 forks source link

Null ID in pH Distribution #56

Closed yosefdroth closed 4 years ago

yosefdroth commented 4 years ago

One of the id's is null in the pH distribution - https://api.datanator.info/reactions/summary/get_frequency/?field=temperature

jonrkarr commented 4 years ago

I think this represents the number of measurements for which no pH metadata is available. If you're only visualizing the distribution of the available metadata, this can be ignored.

jonrkarr commented 4 years ago

It looks like there are 63,134 total measurements. Of these 5,643 (8.9%) have no pH metadata.

The available pH metadata could be visualized as a histogram or as a kernel density line plot (more sophisticated; basically this is another way to visualize the same information that is not sensitive to the choice of bin size).

This webpage provides JavaScript code for a kernel density line: https://gist.github.com/mbostock/4341954

jonrkarr commented 4 years ago

There's also a NPM package https://www.npmjs.com/package/kernel-smooth example: https://github.com/Planeshifter/kernel-smooth/blob/master/examples/index.js

yosefdroth commented 4 years ago

Good call -- thanks!

I was planning on making a histogram using charjs -- I will check out the kernel density line you posted.

lzy7071 commented 4 years ago

Some of the entries in sabiork collection have no pH values, indicated by null value here.