Visual Neuroscience Lab
  • Home
  • Neurodesktop
  • Behavioral
  • Labmeeting
  • DICOM to GLM
  • MRI
  • People
  • Internship
  • Other Topics
  • Archive
  1. MRI
  2. MRI BIDS and OSF
  • Home
  • Neurodesktop
  • MRI: from DICOM to GLM Analysis
    • 00 - Overview
    • 01 - DICOM to BIDS
    • 02 - Check IntendedFor field of the fmap’s JSON
    • 03 - T1w for PBn
    • 04 - Defacing
    • 05 - Removing Noise Scan
    • 06 - fMRIprep
    • 07 - Retinotopic Mapping
    • 08 - first level GLM
    • 09- second level GLM
    • Troubleshooting
  • MRI
    • MRI-Studies: General Information
    • 3D printing a brain
    • 7T anatomical analysis on neurodesk
    • MRI BIDS and OSF
    • fMRIprep analysis
    • MNI space
    • 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 and PhD students
    • Coffee time
    • Participant compensation
    • Things to do if you are leaving the lab
    • Scientific writing in practice
    • Research funding opportunities
  • Internship
    • Pflichtpraktikum
    • Internship Checklist
    • internship/claustrum_segmentation.qmd
  • Other Topics
    • Calculating a priori sample size using G Power
    • Gamma correction
    • Contribute to the website
    • Older ways to access the server
  • 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