Public
Edited
Aug 2, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
allSampleTypes = FileAttachment("All-Sample-Types.json").json()
Insert cell
types = allSampleTypes.map((d,i)=> [d.name])
Insert cell
arrayToObj = function (array, object={}, key="", dataKey="") {
array.map((d, i) => {
const k= d[key];
object[k] = d[dataKey];
})
return object;
}
Insert cell
sampleTypes = {}
Insert cell
key = "name"
Insert cell
dataKey = "udfs"
Insert cell
typesFields = arrayToObj(allSampleTypes,sampleTypes,key,dataKey)
Insert cell
udfs = allSampleTypes.map(obj => obj.udfs)
Insert cell
Insert cell
Insert cell
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