Published
Edited
Apr 8, 2020
Insert cell
Insert cell
cors = 'https://cors-anywhere.herokuapp.com/' // make sure to include the / at the end!
Insert cell
Insert cell
institutionsUrl = cors + "https://phagesdb.org/api/institutions"
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
sequencedPhagesUrl = cors +
'https://phagesdb.org/api/sequenced_phages?page_size=99999999'
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
publicationsUrl = cors + 'https://phagesdb.org/api/publications/'
Insert cell
Insert cell
Insert cell
compare = function(a,b) {
if (a.pub_year < b.pub_year) {
return 1
}
else if (a.pub_year > b.pub_year) {
return -1
}
else {
return 0
}
}
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