Difference between revisions of "Pyctf"

From MEG Core
Jump to navigation Jump to search
Line 1: Line 1:
Pyctf is a Python module that allows access to CTF-format MEG datasets.
+
'''pyctf''' is a Python module that allows access to CTF-format MEG datasets.
 +
It contains numerous Python functions and stand alone tools to help automate your data analysis. Parts of it are written in C, compatible with Py2 and Py3.
  
The latest version is available here: [https://megcore.nih.gov/MEG/pyctf.tgz pyctf.tgz]
+
The latest version (release 20200923) is available here: [https://megcore.nih.gov/MEG/pyctf.tgz pyctf.tgz]
  
See the INSTALL file for installation instructions.
+
See the included INSTALL file for installation instructions.
  
  
Line 11: Line 12:
  
 
   #Then follow the instructions in the INSTALL file
 
   #Then follow the instructions in the INSTALL file
 +
 +
=== Utilities included ===
 +
 +
* thresholdDetect.py is used to detect changes in ADC or other channels, indicating the onset time of stimuli or other events; typically used to detect button presses in the ADC channels.
 +
: {| width=400 style="border: 1px solid lightgrey;"
 +
| Usage: thresholdDetect.py [options] dataset.ds
 +
|}
 +
 +
* parsemarks is a python script that prints marker information from the MarkerFile.mrk in your .ds dataset directory, and can perform various processing on the marks. Running parsemarks with no arguments produces a detailed usage message.

Revision as of 16:10, 23 September 2020

pyctf is a Python module that allows access to CTF-format MEG datasets. It contains numerous Python functions and stand alone tools to help automate your data analysis. Parts of it are written in C, compatible with Py2 and Py3.

The latest version (release 20200923) is available here: pyctf.tgz

See the included INSTALL file for installation instructions.


If on biowulf:

 #Requires gcc and fftw
 module load fftw/3.3.8/openmpi-4.0.1/gcc-9.2.0
 #Then follow the instructions in the INSTALL file

Utilities included

  • thresholdDetect.py is used to detect changes in ADC or other channels, indicating the onset time of stimuli or other events; typically used to detect button presses in the ADC channels.
Usage: thresholdDetect.py [options] dataset.ds
  • parsemarks is a python script that prints marker information from the MarkerFile.mrk in your .ds dataset directory, and can perform various processing on the marks. Running parsemarks with no arguments produces a detailed usage message.