Skip to content

badbytes/pymeg

Repository files navigation

Installation of pymeg on linux.

Of course make sure you install python2.? http://www.python.org/download/

A list of dependant software.

numpy
scipy
matplotlib
pynifti
vtk
nibable

If using debian based linux for instance you would install the necessary dependencies with something like this.

sudo apt-get install python-scipy python-matplotlib python-nifti

Assuming linux is your operating system, do the following. Download pymeg*.tgz and extract it somewhere. For example your home dir.

mv pymeg.tgz ~/
cd ~/
tar -xvzf pymeg.tgz

or download the git repository
git clone https://github.com/badbytes/pymeg.git

Add pymeg path to your shells environmental variables.

echo 'export PYTHONPATH=$PYTHONPATH:'$HOME'/pymeg/' >> ~/.bashrc
source ~/.bashrc

Now start python and test a function From the commandline type "python" to start an interactive python shell and try to load the pdf module.


Python 2.5.2 (r252:60911, May  7 2008, 15:21:12)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from pdf2py import pdf

If you get a trackback error (see below) regarding this module, either your PYTHONPATH is not set correctly
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named pdf2py

If everything is ok, try to import some MEG data.
ie.
p = pdf.read('/path2data/e,rfhp1.0Hz,ra,f50lp,o')

To start the GTK gui interface, type the following command.
cd ~/pymeg/gui/gtk/
python pymeg.py

For more documentation on usage of tools, see http://wiki.neuromeg.org/PyMEG

Releases

No releases published

Packages

No packages published