Published
Edited
May 10, 2019
5 forks
Importers
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
md`Using plotly, we can make a pie chart showing # of cases by project`
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
md`I wrote a 2d histogram fucntion to help with this, although i don't really use it fully.`
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
md`## Firebrowse`
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
projectData_ugly=(await fetch('https://api.gdc.cancer.gov/projects?fields=disease_type,name,program.name,project_id,summary.case_count&from=0&size=1000&sort=disease_type:asc')).json()
Insert cell
Insert cell
betterFetch = async function(url,body) {
let fetchData = {
method: 'POST',
body: JSON.stringify(body),
headers:{'Content-Type':'application/json'}
}
let tmpData=(await fetch(url, fetchData)).json()
return(tmpData)
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
require('@oncojs/lolliplot')

Insert cell
require('@oncojs/sapien')

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
fb =
{
const response = await fetch("https://raw.githubusercontent.com"
+ "/episphere/firebrowse/master/firebrowse.js");
const blob = await response.blob();
return require(URL.createObjectURL(blob)).catch(() => window.firebrowse);
}
Insert cell
fb.created_at
Insert cell
fb.get()
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
jq = require("https://code.jquery.com/jquery-3.4.1.js")
Insert cell
queryurl =jq.param(queryJSON)
Insert cell
(await fetch(hosturl +'?'+endpointurl +'?' + queryurl)).json()
Insert cell
(await fetch(endpointurl +'?' + queryurl)).json()
Insert cell
(await fb.get(endpointurl +'?' + queryurl)).json()
Insert cell
betterFetch(hosturl+'?'+endpointurl,queryJSON)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
md`
### inline code \n
This is the function call I am going to make:
\`\`\`javascript
factorial(5)
\`\`\`
... and the result is here: <b> ${factorial(5)} </b>, right in the middle of my text
`
Insert cell
Insert cell
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