Upset Plot
Summary and Format
Generating the data for upset plots is a one step process.
Making a post request to
http://bindiscover.metabolomics.us:4999/venntableresource/
With the format
{
"dropdown_triplet_selection_value": ["homo sapiens - Serum - No Disease","homo sapiens - Plasma - No Disease"], #any triplet from our data
"slider_percent_present_value": 80, #any integer from 0 to 100. what percent-obvserved
#for a triplet constitutes present
"toggle_average_true_value": "True", #valid values only True
"radio_items_filter_value":"no_filter" #valid values "no_filter" and "common"
#if no filter, do nothing unusual
#if common, return only compounds present in all
#triplets
}
will yield the core information for the sunburst diagram, eg
"[
{\"bin\": 2, \"compound\": \"alanine\", \"homo sapiens - Serum - No Disease\": 69575947.69588457, \"homo sapiens - Plasma - No Disease\": 81540624.82164448, \"compound_identifier\": 2, \"bin_type\": \"known\", \"english_name\": \"alanine\", \"identifier\": \"QNAYBMKLOCPYGJ-REOHCLBHSA-N\"},
{\"bin\": 3, \"compound\": \"valine\", \"homo sapiens - Serum - No Disease\": 37329254.94725463, \"homo sapiens - Plasma - No Disease\": 37080214.40829862, \"compound_identifier\": 3, \"bin_type\": \"known\", \"english_name\": \"valine\", \"identifier\": \"KZSNJWFQEVHDMF-BYPYZUCNSA-N\"},
...
]