Visual Neuroscience Lab
  • Home
  • Neurodesktop
  • Behavioral
  • Labmeeting
  • DICOM to GLM
  • MRI
  • People
  • Other Topics
  • Archive
  1. MRI
  2. MRI BIDS and OSF
  • Home
  • Neurodesktop
  • MRI: from DICOM to GLM Analysis
    • 01 - DICOM to BIDS
    • 02 - T1w for PBn
    • 03 - Defacing
    • 04 - Removing Noise Scan
    • 05 - fmriprep
    • 06 - first level GLM
    • Troubleshooting
  • MRI
    • Retinotopic Mapping
    • 3D printing a brain
    • 7T anatomical analysis on neurodesk
    • MRI BIDS and OSF
    • fMRIprep analysis
    • Old MRI setup
    • Update to the MRI lab setup
    • Physiological noise correction
  • Behavioral
    • Vision tests
    • BIDS for behavioral studies
    • Custom-built chin rests
  • People
    • Stipends and prizes for master students
    • Coffee time
    • Participant compensation
    • Things to do if you are leaving the lab
    • Scientific writing in practice
    • Interns
    • Pflichtpraktikum
  • Other Topics
    • Calculating a priori sample size using G Power
    • Gamma correction
    • Contribute to the website
    • Lab Members Only!!!
  • Labmeeting
  • Archive

On this page

  • BIDS
    • Validating BIDS dataset
  • OSF
    • Upload a file to an OSF project
    • Set your OSF acctount password
  1. MRI
  2. MRI BIDS and OSF

MRI BIDS and OSF

BIDS
OSF
Information about BIDS and OSF
Author

AA

Published

May 23, 2024

BIDS

Brain Imaging Data Structure (more information here).

Validating BIDS dataset

With docker, you can run this line in the terminal:

$ docker run -ti --rm -v [path_to_your_toplevel_bids_directory]:/data:ro bids/validator /data

Common issues:

  • files don’t follow BIDS naming conventions (more info about filenames here)
  • events.tsv files are missing
  • participants.tsv is missing
  • participants.json file is missing or does not describe all variables from the tsv file
  • datasset_description is missing or there is no name of the dataset or author names in it.
  • readme file is missing or too short
  • …

OSF

Upload your dataset to OSF using osfclient (user’s guide here). This is a useful python-based package to uploading data in bulk to OSF, especially because you cannot upload folders to OSF projects via browser.

Installation: $ pip3 install osfclient

Upload a file to an OSF project

$ osf -p <projectid> -u yourOSFacount@example.com upload local/file.txt remote/path.txt ### Upload a folder (recursively) to an OSF project $ osf -p <projectid> -u yourOSFacount@example.com upload -r local/folder remote/path

Set your OSF acctount password

Set a password so you don’t have to enter it each time you upload data

$ export OSF_PASSWORD=yourpassword

Back to top