.. _data_naming: ----------------------- Data Naming and Storing ----------------------- .. contents:: :local: :depth: 4 Data Naming and Storing: MEG ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Data host """"""""" The MEG data is securely stored on NYU BOX, access is given through invitations. The *Data* folder is structured in the **BIDS** standardized format. Please raise an issue on *github* repository if you think the structure does not conform to **BIDS**. Sign in on NYU Box in the below link .. admonition:: Link to MEG data (Box Invitation Only) `https://nyu.box.com/v/meg-datafiles `_ Or directly from the below widget .. raw:: html If you are unable to access the datasets it means you do not have the permission to. Kindly send an email to `nyuad.meg@nyu.edu` Data naming BIDS protocol """"""""""""""""""""""""" A typical MEG dataset from NYUAD contains the following files and folders in BIDS-specification `https://bids-specification.readthedocs.io/ `_ : Your data should be stored in the BIDS format. Find a template to be used under `bids-template`, the template contains all the information that you should have in each file. In the following, [SUB_ID] should be replaced with the ID of the subject for naming purposes. The different data files generated from a MEG experiment are the following. .. note:: If you have found a bug in the BIDS naming format please raise an issue on github or create a pull request with your proposed modifications. Directory structuring ~~~~~~~~~~~~~~~~~~~~~ Your file structure should look like this: - **root** level directory named after your project 'PROJECT_NAME' - within the **root** directory, you should have: - `README.md`: general information on your project - `dataset_description.json`: a `JSON` object detailing authors, project name, grants and so on - `sub-[SUB_ID]`: a folder for each subject, within which there should be: - Optionally a `ses-[SES_ID]` where SES_ID is a numeric session ID, inside which you will find: - `meg` (must have one): will contain your MEG data and other meta-data - `sourcedata` (not necessary) - If the `ses-[SES_ID]` folder is not there, it means you do not have multiple sessions for the subject, in that case you will directly find `meg` and `sourcedata` within the `sub-[SUB_ID]` folder Additionally, it can have: - `events.json` should have meta-data about the device used for presenting Stimulus - `events.tsv` should have information about the types of trials, onset and duration - `task-[PROJECT_NAME]_meg.json` should have information about the MEG system used, sampling frequency and so on If the three above files are not found at the root of your dataset, it means that each subject or session might have a specific configuration, in that case make sure to have these files within the subject or session, while adding the sub/ses ID's to the name of the file. The three above files can be found at the root of your dataset, while having the same files within each session/subject under the following condition: - when some parameters are specified at the level of the dataset, while other are specific for the session/subject .. note:: General BIDS notes: - If a particular file applies to all runs, then it should not have the `run` descriptor in its name - If a particular file applies to all sessions, then it should not have the `ses` descriptor in its name Filename Entities and Ordering ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The BIDS standard enforces a strict ordering of components (entities) in filenames. The following table shows the order in which entities must appear if they are present. Entities marked as **Mandatory** must always be included. .. list-table:: :widths: 25 20 55 :header-rows: 1 * - Entity - Status - Description * - ``sub-