Technical background

krajcsi edited this page Sep 24, 2016 · 3 revisions
  • CogStat is written in Python
    • Because it is a free, high level general language, that is becoming more popular among scientist and also its statistical modules are improving
    • Currently Python 2 is used
    • When appropriate function is not available in Python, R is used occasionally

Python packages used by CogStat

  • pandas - handling the data
  • statsmodels - for most of the statistical calculations
  • numpy, scipy.stats - for some other statistical calculations
  • rpy - for R-Python connection
  • matplotlib - for most of the graphs
  • PyQT (qt4) - for the GUI
  • python-bidi - for RTL languages displaying matplotlib labels

Main modules of CogStat

  • cogstat.py - main module, handles the data and chooses the relevant results
  • cogstat_stat.py - creates graphs and strings of the statistical analysis
  • cogstat_stat_num.py - statistical functions that are not available in other Python modules
  • cogstat_gui.py - well, the GUI, except the dialogs
  • cogstat_dialogs.py - dialog handling for the GUI
  • cogstat_util.py - various functions used in several modules

Some additional details are partly available in the code comments and docs.

Many part of the code needs refactoring, partly because in former phases of the development the technical solutions changed a lot.

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.