DataLad

Install datalad under virtual environment

source miniconda3/etc/profile.d/conda.sh

# TO DO ONLY ONCE: 

conda create -y -n venv3.7 python=3.7

# TO ACTIVATE:

conda activate venv3.7

pip install datalad

# For Debian/Ubuntu:
su 
apt-get install git-annex
# For OSX:
# first, install brew: https://brew.sh/
brew install git-annex

Datalad usage

Install dataset from OpenNeuro

datalad install https://github.com/OpenNeuroDatasets/ds001919.git

Get one subject

datalad get sub-unf01

Get all subjects

datalad get . 

Update dataset

datalad update -r —merge

AWS

How to download openneuro dataset using AWS

The info is related to the OSX use:

  • Install AWS using the info here
  • Check AWS cli version by running :
  /usr/local/bin/aws --version
  • Download dataset from openneuro by running this command:
  /usr/local/bin/aws  s3 sync --no-sign-request s3://openneuro.org/ds001919 ds001919-dwld/