Skip to content

Specify 0 vs 1 based indexing within BIDS #499

Open
@sappelhoff

Description

@sappelhoff

Problem

The sample column in events.tsv encodes the following:

OPTIONAL. Onset of the event according to the sampling scheme of the recorded modality (i.e., referring to the raw data file that the events.tsv file accompanies).

As identified by @robertoostenveld, we do not specify whether we use 0-based or 1-based indexing

This should be clarified.

potential solution

I feel like going with 1-based indexing would make sense if most recommended data formats that also encode samples go with it. For example, most EEG data formats have a representation of "samples".

(BrainVision uses 1-based sample indexes in their datafiles (page 14 in the spec)

How about data formats in iEEG and MEG? ... is this relevant for MRI or other data types?

There is also the argument that many people are not familiar with 0-based indexing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions