Skip to content

Instantly share code, notes, and snippets.

View AlexanderPico's full-sized avatar

Alexander Pico AlexanderPico

  • San Francisco, CA, USA
View GitHub Profile
@AlexanderPico
AlexanderPico / wikipathways2gource.py
Created June 17, 2016 09:30 — forked from thomaskelder/wikipathways2gource.py
Small python script to create an input file for Gource (http://gource.io/) to visualize WikiPathways (http://www.wikipathways.org) edit histroy.
## Get pathway edit history from wikipathways.org and export as gource log file
## Run using:
## python wikipathways2gource.py wikipathways.log
## View in gourse using:
## gource -1280x720 -a 3 --seconds-per-day 0.01 --hide dirnames,filenames --user-filter MaintBot --key wikipathways.log
## Create video with gource using:
## gource -1280x720 -a 2 --seconds-per-day 0.005 --hide dirnames,filenames --user-filter MaintBot --key --stop-at-end -o - wikipathways.log | ffmpeg -y -r 30 -f image2pipe -vcodec ppm -i - -vcodec libvpx -b 10000K wikipathways.webm
## Known issues/shortcomings:
## - Pathway ontology terms can have multiple parents, this is ignored, only first is taken here to prevent pathways from showing multiple times in the visualization