STRING data from string-db.org. Access is implemented through the STRING API. Here we use javascript:getSTRING
, which is based on HTTP requests through Ajax's XMLHttpRequest()
.
This shiny app makes use of shinyjs::extendShinyjs
, which requires the V8
package.
- [enhancement] PNGs are now saved as high-res 1080x800 images; closes #2.
- [enhancement] Added possibility to download network as a PNG (see #1); this works by converting the network SVG to Canvas (using
canvg
) which in turn gets converted to a PNG (usingcanvas-to-blob
). The custom javascript function are stored inwww/my_functions.js
and hooked to anactionButton
in shiny. The SVG to PNG conversion was adapted from KhalilRavanna's solution on Stack Overflow: Save inline SVG as JPEG/PNG/SVG. Since the PNG is based on the SVG, the PNG will reflect any changes to the SVG network node layout. - [refactoring] Custom javascript functions that load the STRING data and convert the SVG network to a PNG are now saved in the JS file
www/my_functions.js
; this is tidier than using inline JS code inapp.R
.