NEMAR Assistant
on002718
Step 4 · Plotted famous vs scrambled ERPs 2nd try
Step 5 · Summary
Famous faces evoke a larger N170 than scrambled faces in sub-002: −4.1 µV against −2.3 µV at 172 ms over EEG065 to EEG068. This is one subject; I can repeat it for all 18.
5 steps ran in this chat. Keep going in a notebook with all of their code.
on002718
ERPs: famous vs scrambled
Imported 5 steps from your chat. The failed first try of step 4 was left out. Python is starting, then run all cells.
Famous vs scrambled ERPs in on002718
From a NEMAR Assistant chat on Nov 10, 2026. Data: NEMAR's streaming copy, quantized and lossy.
[ ]:
%pip install eegprep-lean scipy
import numpy as np
import matplotlib.pyplot as plt
import eegprep_lean

index = await eegprep_lean.read_index("on002718")
Step 1 · Count face onsets per condition
[ ]:
store = index.store("sub-002/eeg/sub-002_task-FaceRecognition_eeg.set")
events = store.events()
faces = events[events["trial_type"].str.match("(famous|unfamiliar|scrambled)_")]
print(faces["trial_type"].str.split("_").str[0].value_counts())
Step 2 · Cut epochs from −200 to 600 ms
[ ]:
window = await eegprep_lean.read_window(index, store, group=store.group("eeg_250hz"))
rate = window.rate
onsets = (faces["onset"].to_numpy() * rate).astype(int)
…
Step 3 · Average epochs per condition