PotentialIntegration - kpeaton/altanalyze_wikitest GitHub Wiki

Useful Extensions to Consider

Visualization

Data Analysis

note: Win32 and Win64 unofficial installers can be found here: http://www.lfd.uci.edu/~gohlke/pythonlibs/

Visualization Software Installation Notes

python-graph (build Cytoscape like networks)

  1. easy_install python-graph-core
  2. easy_install python-graph-dot (possible dependency)
  3. install graphviz (dependency for dot and graphviz)
    • install MacPorts (easy install for mac apps – from dmg)
    • sudo install graphviz
  4. ran example python-graph file and received a warning about trying to import the module gv. The module gv appears to be local to python graph and is called when graphviz is found in the indicated path (path is manually specified in the test code.) No graphviz folder containing a folder named python found. No solution on the Wiki for mac.
  5. Tried to install pygraphviz (not sure if this is related) using easy_install, does not appear to be related.
  6. stopped here… failed

pyGraphViz

  1. Saw at http://stackoverflow.com/questions/5639049/setting-graph-attributes-in-pygraph that pyGraphViz can run virtually the same example and work without using the above python-graph… this worked! Use this instead (only dependency is graphviz and possibly dot – not sure). Need to test on PC and Linux.

MatPlotLib (make charts)

  1. Depends on numpy (already installed)
  2. easy_install matplotlib… encountered several errors, but installed. As an alternative can install from: http://matplotlib.sourceforge.net (installs numpy)
  3. Tried - http://www.thetechrepo.com/main-articles/465-how-to-create-a-graph-in-python - worked great!
  4. Tried the animation examples on the website and encountered a common error:
    • File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.1.0-py2.7-macosx-10.6-intel.egg/matplotlib/animation.py", line 248, in blit_clear
    • a.figure.canvas.restore_region(bg_cachea)
    • AttributeError: 'FigureCanvasMac' object has no attribute 'restore_region'
    • No function restore_region in the class FigureCanvasMac in the module “backend_macosx.py” (only one that contains FigureCanvasMac).
    • After contacting the MatPlotLib community, discovered that setting blit=False will fix this problem.

iGraph (directed networks with arrows)

  1. Depends on Cairo for non-SVG based visualization (PNG, PDF)
  2. amd64bit installer from: http://www.lfd.uci.edu/~gohlke/pythonlibs/
  3. cairo dependencies from http://ftp.gnome.org/pub/gnome/binaries/win64/dependencies/ as described here: http://www.cs.rhul.ac.uk/home/tamas/development/igraph/tutorial/install.html#installing-igraph
⚠️ **GitHub.com Fallback** ⚠️