Published
Edited
Apr 27, 2020
3 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
available_libs = [
'GO_Biological_Process_2018',
'GO_Cellular_Component_2018',
'GO_Molecular_Function_2018',
'GTEx_Tissue_Sample_Gene_Expression_Profiles_up',
'KEGG_2019_Human',
'ARCHS4_Tissues',
'ChEA_2016',
'MGI_Mammalian_Phenotype_Level_4_2019',
'Disease_Perturbations_from_GEO_up',
'Ligand_Perturbations_from_GEO_up'
]
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// list_id = JSON.parse(new_post_response.body).userListId.toString()
Insert cell
list_id = get_new_list_id(new_post_response)
Insert cell
function get_new_list_id(new_post_response){
let new_list_id
try{
new_list_id = JSON.parse(new_post_response.body).userListId.toString()
} catch(err){
new_list_id = 'some-id'
}
return new_list_id
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// enr_arr_ini = JSON.parse(fetch_enrichment.body)[inst_lib]
enr_arr_ini = get_enr_arr_ini(fetch_enrichment, inst_lib)
Insert cell
function get_enr_arr_ini(fetch_enrichment, inst_lib){
let enr_arr_ini
try{
enr_arr_ini = JSON.parse(fetch_enrichment.body)[inst_lib]
} catch(err){
enr_arr_ini = []
}
return enr_arr_ini
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
y_new = d3.scaleBand()
.domain(d3.range(bar_data_values.length))
.range([0, 22 * bar_data_values.length])
Insert cell
x_new = d3.scaleLinear()
.domain([0, d3.max(bar_data_values)])
.range([0, 950])
Insert cell
Insert cell
Insert cell
Insert cell
d3 = {
// const d3 = require('d3')
const d3 = await require("d3@5", "d3-array@2");
// d3.cloud = await require("d3-cloud@1");
return d3
}
Insert cell
Insert cell
// set table style to full width
html`
<style>
p {
min-width: 100%;
}
h2 {
min-width: 100%;
}
h3 {
min-width: 100%;
}
`
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more