fMRI Data

LAION-fMRI includes raw multi-echo BOLD data and preprocessed optimally-combined BOLD timeseries. Most users will start from the single-trial GLMsingle betas documented in GLMsingle Beta Estimates, but the functional data are available for users who want to inspect or rerun the preprocessing.

For acquisition parameters, see MRI Acquisition; for the preprocessing pipeline, see Preprocessing.

Raw Functional Data

The scanner DICOMs were converted with heudiconv into BIDS-style NIfTI files. Multi-echo BOLD and SBRef files live under func/, fieldmaps under fmap/, and the MEGRE anatomical scan under anat/.

A representative image-viewing run contains magnitude and phase BOLD files for all three echoes, one SBRef per echo, JSON sidecars, and the trial event file:

sub-01/ses-01/func/
├── sub-01_ses-01_task-images_run-01_echo-1_part-mag_bold.nii.gz
├── sub-01_ses-01_task-images_run-01_echo-1_part-mag_bold.json
├── sub-01_ses-01_task-images_run-01_echo-1_part-phase_bold.nii.gz
├── sub-01_ses-01_task-images_run-01_echo-1_part-phase_bold.json
├── sub-01_ses-01_task-images_run-01_echo-1_sbref.nii.gz
├── sub-01_ses-01_task-images_run-01_echo-1_sbref.json
├── sub-01_ses-01_task-images_run-01_echo-2_part-mag_bold.nii.gz
├── sub-01_ses-01_task-images_run-01_echo-2_part-mag_bold.json
├── sub-01_ses-01_task-images_run-01_echo-2_part-phase_bold.nii.gz
├── sub-01_ses-01_task-images_run-01_echo-2_part-phase_bold.json
├── sub-01_ses-01_task-images_run-01_echo-2_sbref.nii.gz
├── sub-01_ses-01_task-images_run-01_echo-2_sbref.json
├── sub-01_ses-01_task-images_run-01_echo-3_part-mag_bold.nii.gz
├── sub-01_ses-01_task-images_run-01_echo-3_part-mag_bold.json
├── sub-01_ses-01_task-images_run-01_echo-3_part-phase_bold.nii.gz
├── sub-01_ses-01_task-images_run-01_echo-3_part-phase_bold.json
├── sub-01_ses-01_task-images_run-01_echo-3_sbref.nii.gz
├── sub-01_ses-01_task-images_run-01_echo-3_sbref.json
└── sub-01_ses-01_task-images_run-01_events.tsv

Fieldmaps are stored separately:

sub-01/ses-01/fmap/
├── sub-01_ses-01_run-01_magnitude1.nii.gz
├── sub-01_ses-01_run-01_magnitude1.json
├── sub-01_ses-01_run-01_magnitude2.nii.gz
├── sub-01_ses-01_run-01_magnitude2.json
├── sub-01_ses-01_run-01_phasediff.nii.gz
└── sub-01_ses-01_run-01_phasediff.json

Preprocessed Functional Data

The final preprocessed BOLD output used for downstream analysis is stored under derivatives/tedana. Each run is a single T2*-weighted optimally-combined NIfTI in subject-native T1w space, sampled on a 1.778 mm isotropic grid with TR = 1.0 s. The sidecar JSON links the output back to the three echo BOLD files from which it was derived.

derivatives/tedana/sub-01/ses-01/func/
├── sub-01_ses-01_task-images_run-01_space-T1w_desc-optcom_bold.nii.gz
└── sub-01_ses-01_task-images_run-01_space-T1w_desc-optcom_bold.json

Most main image-viewing sessions contain 12 task-images runs. Session ses-31 is a mixed eyetracking session with fewer image-viewing runs plus localizer/deepmreye runs. Sessions ses-32 to ses-34 are supplemental sessions and are not part of the initial launch-release data.

Precision Mapping Functional Data

The retinotopic mapping and localizer sessions are released for all seven mapping subjects (sub-01, sub-03, sub-04, sub-05, sub-06, sub-07, sub-08), both raw and preprocessed. Their preprocessing is described in Preprocessing (“Precision Mapping Sessions”). The maps fitted on them are in Retinotopy and Functional Localizers.

Raw data

The raw sessions sit beside the LAION sessions in each subject folder, as single-echo BIDS (TR = 1.5 s, 1.5 mm isotropic):

sub-03/
├── ses-PrismaAnat/anat/             # T1w, T2w
├── ses-BarsLMSEyeCalib/{func,fmap}/
├── ses-Corners1/{func,fmap}/
├── ses-Corners2/{func,fmap}/
├── ses-Foveal/{func,fmap}/
├── ses-MotionLocBarsSML/{func,fmap}/
└── ses-4BarScreenfLoc/{anat,func,fmap}/

Preprocessed data

The preprocessed runs are under derivatives/preproc-mapping, on the 1.5 mm T1w grid with TR = 1.0 s, as well as on each subject’s native surface:

derivatives/preproc-mapping/sub-03/ses-Foveal/func/
├── sub-03_ses-Foveal_task-BAR_run-01_space-T1w_res-1pt5_desc-preproc_bold.nii.gz
├── sub-03_ses-Foveal_task-BAR_run-01_space-T1w_res-1pt5_desc-pscHp_bold.nii.gz
├── sub-03_ses-Foveal_task-BAR_run-01_space-T1w_res-1pt5_desc-slabedge_mask.nii.gz
├── sub-03_ses-Foveal_task-BAR_run-01_hemi-L_space-fsnative_desc-pscHp_bold.func.gii
├── sub-03_ses-Foveal_task-BAR_run-01_hemi-L_space-fsnative_desc-slabedge_mask.func.gii
├── sub-03_ses-Foveal_task-BAR_run-01_desc-apertures_design.h5
├── sub-03_ses-Foveal_task-BAR_run-01_desc-frames_design.tsv
└── ...  (hemi-R, and a JSON sidecar beside every file)

Every run ships desc-preproc (the interpolated BOLD). The brain mask on the same grid is the subject’s anatomical one, derivatives/anatomical/sub-XX/ses-<anat>/anat/sub-XX_ses-<anat>_space-T1w_res-1pt5_desc-brain_mask.nii.gz (ses-PrismaAnat; ses-ConnectomAnat for sub-04; see Anatomical Data). Beyond that, each run ships the stage its released maps were fitted on:

Runs

Stage

Retinotopy (BAR, WEDGE, BARS/BARM/BARL, corner tasks) and 4bar

desc-pscHp (percent signal change, high-pass filtered), volume and surface, with desc-slabedge_mask

Localizers (floc, MotionLeft, MotionRight)

desc-psc (percent signal change, not filtered: the localizer GLMs model drift themselves), volume and surface

Resting state (RS) and DeepMREye

desc-preproc only

desc-preproc intensities are half the scanner values (see Preprocessing). The pRF and 4bar runs also ship the design the fits used: desc-apertures_design.h5 (for every 1 s frame and screen pixel, the fraction of the frame the aperture covered; pixel positions in degrees of visual angle from fixation) and desc-frames_design.tsv (the frame sequence with its timing). The aperture libraries those designs come from are in stimuli/retinotopy/.

Six sub-01 runs in ses-MotionLocBarsSML are shifted onto the common stimulus timeline; their as-acquired versions ship beside them as desc-preprocAsAcquired and desc-pscHpAsAcquired, with matching *AsAcquired design files.

Loading raw data

Raw BIDS files are reachable through the same package, either via laion_fmri.download.download_raw() (raw only) or with include_raw=True on laion_fmri.download.download() (raw on top of the derivative walk). Subject exposes three accessors on top:

from laion_fmri import load_subject
from laion_fmri.download import download_raw

download_raw(subject="sub-01", ses="ses-01", run="01")

sub = load_subject("sub-01")

sub.has_raw()                                    # True
sub.has_raw(session="ses-01")                    # True

events = sub.get_events(session="ses-01")        # every run
events_run1 = sub.get_events(session="ses-01",
                             run="01")           # one run

bold = sub.get_raw_bold(session="ses-01",
                        run="01", echo="1")      # (n_vols, n_vox)
sbref = sub.get_sbref(session="ses-01",
                      run="01", echo="1")        # (n_vox,)

Subject.get_events() returns the raw BIDS events TSV(s) as a pandas DataFrame. With run=None (default) it concatenates every run in the session and adds a run column tagging each row. Subject.get_raw_bold() and Subject.get_sbref() return float32 arrays masked with the same brain mask used by Subject.get_betas() (default mask_source="anatomical").

Confounds and Behavioral Files

Richer confound documentation will be expanded in a later documentation update. For the trial table that aligns directly with the released GLMsingle beta volumes, see GLMsingle Beta Estimates. For raw BIDS events.tsv, see the “Loading raw data” section above.