Code
import os
import warnings
from jaxcmr.analyses.cue_centered_lagrank import plot_cue_centered_lagrank
from jaxcmr.helpers import find_project_root, generate_trial_mask, load_data, save_figure
warnings.filterwarnings("ignore")Condense cue-driven temporal organization into a single scalar per subject.
The cue-centered lag-rank parallels the cue-centered CRP but produces a scalar factor per subject instead of a CRP curve. A score of 0.5 indicates chance; scores above 0.5 reflect temporal contiguity between the retrieval cue and the recalled item. The dataset must contain a cue_clips field.
The plot shows per-subject cue-centered temporal factor scores.
data_path — path to an HDF5 file containing a RecallDataset with a cue_clips field.figure_dir — directory for saving figures.figure_str — base filename for the saved figure. Leave empty to display without saving.trial_query — a Python expression to select trials, or None for all trials.size — maximum number of study positions a single item can occupy.