Skip to content

mevers/shiny_STRING

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

shiny_STRING

Screenshot

STRING data

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().

Details

This shiny app makes use of shinyjs::extendShinyjs, which requires the V8 package.

Changelog

Version 1.2 (2 July 2020)

  • [enhancement] PNGs are now saved as high-res 1080x800 images; closes #2.

Version 1.1 (1 July 2020)

  • [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 (using canvas-to-blob). The custom javascript function are stored in www/my_functions.js and hooked to an actionButton 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 in app.R.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published