PathwayCommons / pcviz

Pathway Commons Bio Network Visualizer
http://www.pathwaycommons.org/pcviz/
MIT License
8 stars 3 forks source link

Better document preparing the cache for pre-calculated networks #19

Closed armish closed 8 years ago

armish commented 8 years ago

Entry point: https://github.com/PathwayCommons/pcviz/blob/master/src/main/scripts/uniprot_scraper.sh

Some boilerplate text for this:

To prepare those caches, you need to 
clean up your `precalculted.folder`  (see this property)
deploy a dummy PCViz without empty caches (after clean up)
Edit uniprot_scraper.js to point to the non-cached version of PCViz (if it is different than the production one)
Run uniprot_scraper.sh with these arguments (make sure you have phantomjs installed globally before doing so; this takes about 2 days to complete)
Remove all PNGs from the output directory (as we don't make use of them for now)
Move all JSONs in the folder over to your `precalculated.folder`
Restart/re-deploy PCViz with this folder populated
It is a good idea to clean up other cache folders (portal, iHop, cocitations, etc.) once in a while, but it is not required unless the formating changes for those files/services. Only precalculated networks cache requires pre-processing.

cc @IgorRodchenkov @onursumer