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

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more