SCRfear converts public fear-conditioning skin-conductance datasets from the PsPM open data collection to the M-BIDS format consistent with BIDS, and can combine them into a single corpus. The source datasets are downloaded from Zenodo. Dataset-specific differences are defined in configuration.
The current configurations cover:
- CFG1
- CFG2
- DoxAv2
- DoxMemP
- DoxMem1
- DoxMem2
- FER01
- FER02
- FR
- FSS6B
- LI
- LSOA
- MinAv
- PubFe
- SC4B
- TC
- VC7B
Only acquisition blocks are converted. Experimental blocks become BIDS
run-* recordings; no ses-* directory is created. Event files are stored in
the same physio directory as their corresponding SCR recording.
SCRfear requires Python 3.10 or newer. Clone the repository, then create a virtual environment and install the project from the repository root:
git clone https://github.com/bachlab/SCRFear.git
cd SCRFear
python -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install -e .On macOS or Linux, activate the environment with
source .venv/bin/activate instead.
Run all scrfear commands from the repository root. The default data
locations and the files in metadata/ are resolved relative to the current
directory.
Download a dataset's Data.zip from Zenodo:
scrfear download FER02Download all configured datasets:
scrfear download allThis retains both the downloaded archives and extracted files, so downloading all datasets requires substantial disk space.
Or place a manually downloaded and extracted dataset under
Datasets/<dataset>/. The converter accepts MAT files in the dataset folder,
Data, or Data/Data.
Convert one or more datasets:
scrfear convert FER02
scrfear convert FER01 FER02 FRConvert every configured dataset:
scrfear convert allCombine all converted datasets into one corpus:
scrfear combineSpecific converted datasets can also be combined:
scrfear combine CFG1 CFG2The corpus uses new consecutive participant IDs. Corpus/participants.tsv
records each participant's source dataset and original ID, and
Corpus/scrfear_corpus_overview.csv provides the same mapping in a compact
three-column table. The participant list in
converter/data/SCRopt_ppids.csv is applied during corpus creation and should
produce 543 participants. DoxMem1, DoxAv2, and MinAv are limited to their
placebo groups. Use --force to rebuild an existing corpus.
Participants who also took part in a pupil recording are linked to the
PupilFear corpus. metadata/pupilbench_corpus_overview.csv maps each
dataset's original participant ID to its PupilFear corpus ID, and conversion
writes this ID to the PupilFearSubjectID column of participants.tsv
(n/a when there is no matching pupil recording). Use --pupilfear-overview
to read the mapping from a different file.
Use --subjects for a small test conversion:
scrfear convert FER02 --subjects 01 02The default output locations are:
- Downloaded data:
Datasets/<dataset>/ - Separate BIDS datasets:
Converted_Datasets/<dataset>/ - Combined corpus:
Corpus/
These locations can be changed:
scrfear convert FER02 --raw-dir D:\SCR-data --output-dir D:\SCR-BIDS
scrfear combine --input-dir D:\SCR-BIDS --output-dir D:\SCR-CorpusCombining copies the converted participant directories, so the corpus requires additional disk space.
Use command-specific help to see all options and their defaults:
scrfear download --help
scrfear convert --help
scrfear combine --helpSCRfear does not include any physiological data. Each dataset is downloaded
from its Zenodo record, and the record's licence and citation apply to the
data. Every converted dataset lists its authors and Zenodo source in
dataset_description.json. Please cite the original datasets when you use
the converted data, and cite de Vries et al. (2026). preprint for the collection.
All source datasets are licensed CC-BY-4.0, except SC4B, which is CC-BY-SA-4.0. Converted datasets keep their source licence. A corpus that includes SC4B is licensed CC-BY-SA-4.0, because the ShareAlike terms apply to the combined data.
SCRfear is licensed under the GNU Affero General Public License v3.0. See LICENSE.
python -m unittest discover -s testsAll dataset-specific settings, such as file patterns, experimental blocks,
stimuli and exclusions, are defined in converter/lib/tsv_configs.py.
