Software

CamKit3D (Python)

https://github.com/neurofractal/camkit3D

Markerless multi-camera 3D motion capture for naturalistic behavioural and neuroscience research.

CamKit3D turns a handful of ordinary USB webcams into a markerless motion-capture system — no markers, bodysuits or specialist camera hardware required. It covers the full path from raw video to analysed 3D skeleton data:

  1. Record – capture synchronised video from multiple USB webcams
  2. Synchronise – align frames across cameras to a common timing grid
  3. 2D pose – extract body keypoints per frame with MediaPipe Pose
  4. 3D pose – triangulate 2D keypoints into 3D world coordinates
  5. Analyse – orient, plot and animate the 3D skeleton data, or explore it interactively in the browser

CamKit3D runs stand-alone, but can also be synchronised with wearable brain imaging (e.g. OPM-MEG) for naturalistic neuroscience and social interaction research.

pip install camkit3d

See the documentation for hardware notes, a calibration guide and an end-to-end walkthrough.

OPM-MEG Tutorials in osl-ephys (Python)

https://github.com/neurofractal/OPM-oxford/tree/main/tutorials

A step-by-step OPM-MEG analysis pipeline in osl-ephys and MNE-Python, using data from the Oxford OPM-MEG lab (Cerca Magnetics Neuro-1, 64 sensor locations / 192 channels).

The Four-Motor Task: the participant hears an audio cue instructing them to move their right arm, left arm, right leg or left leg. Each movement lasts 4 seconds, followed by a variable inter-stimulus interval.

#TutorialNotebookMarkdown
1Preprocessingipynbmd
2Sensor-level time-frequency analysisipynbmd
3Coregistration (RHINO)ipynbmd
4Source localisation (LCMV beamformer)ipynbmd
5Parcellation (resting-state data, eyes open/closed)ipynbmd

OPM Data Analysis Tutorials (MATLAB)

https://github.com/FIL-OPMEG/tutorials_interference

Tutorial scripts accompanying Seymour et al. (2022), NeuroImage.

  1. Auditory evoked field paradigm during participant movement
  2. Motor-beta power changes during a finger-tapping paradigm
  3. Auditory evoked field paradigm when the participant is sitting still

fBOSC

https://github.com/neurofractal/fBOSC

A repository for the robust detection of oscillations at the single-trial level. See Seymour et al. (2022), European Journal of Neuroscience.

PACmeg

https://github.com/neurofractal/pacmeg

MATLAB scripts for detecting and validating phase amplitude coupling (PAC) in electrophysiological data. See Seymour et al. (2017), Frontiers in Neuroscience.

analyse_OPMEG (MATLAB)

https://github.com/neurofractal/analyse_OPMEG

A lair of scripts to analyse OPM data produced in collaboration with Dr. Nic Alexander.