Published
Edited
May 1, 2019
1 fork
Insert cell
md`# CGR workshop`
Insert cell
html`
<h2>Reading from GDC</h2>
<p>We're using data from GDC portal to show how we can get genomics Bog Data at will</p>
`
Insert cell
Insert cell
x = (await fetch(url)).json()
Insert cell
md`#Importing`
Insert cell
import {segunUrl} from '@episphere/gtex'
Insert cell
segunUrl
Insert cell
dt = (await fetch(segunUrl)).json()
Insert cell
plotly = require('https://cdn.plot.ly/plotly-latest.min.js')
Insert cell
trace={
return {
x:dt.genotypes,
y:dt.data
}
}
Insert cell
Insert cell
Object.keys(dt)
Insert cell
plotIt([uniqueGenotypes])
Insert cell
dt.data
Insert cell
html`<div id="plotlyHere" height="500px">...</div>`
Insert cell
plotly.plot(`plotlyHere`,trace)
Insert cell
import {plotIt} from '@jonasalmeida/webgen'
Insert cell
dt2 = (await fetch('https://health.data.ny.gov/resource/82xm-y6g8.json?hospital_county=Manhattan&ccs_diagnosis_description=Cancer%20of%20bladder&facility_name=Memorial%20Hospital%20for%20Cancer%20and%20Allied%20Diseases')).json()
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