CONP Portal | Share

Upload a tool/pipeline | Upload a dataset

I. Tool/pipeline addition procedure

Tools/pipelines can be uploaded using Boutiques’ command bosh publish.

For more information on how to do that, please visit the ‘Publishing your own tool’ section of the Boutiques tutorial Python notebook.

II. Dataset addition procedures

It is possible to upload a dataset using one of the following:

- Upload using Zenodo

  1. Upload your dataset to with the specific keyword canadian-open-neuroscience-platform. If your dataset is larger than 50GB you will need to contact Zenodo with a request category of File upload quota increase in order to be able to upload it.

  2. If you set your dataset as restricted, create a personal token via Applications > Personal access tokens > New Token > Check all scopes > Create and send the token via email to CONP Technical Steering Committee member Tristan Glatard (

- Upload using OSF

  1. Upload your dataset to with the specific tag canadian-open-neuroscience-platform.

  2. Ensure the dataset/project is set to Public. Private datasets will be supported in the near future.

- Upload using DataLad


DataLad is a software tool for managing digital objects such as datasets, built on git and git-annex.

To download CONP data currently (April 2020) requires git-annex version>=8.20200309, and we recommend DataLad version>=0.12.5.

We recommend setting your git configuration to store your username and email:

git config --global "yourusername" 
git config --global ""
git config credential.helper cache  (keeps login information in memory for 5 mins)
1) Installation
  • on Linux

We recommend the Miniconda installation procedure detailed in the Install DataLad on linux-machines with no root access entry on the DataLad Handbook, which installs the most up-to-date versions of DataLad, git-annex, and git if needed.

  • on Mac OS X

Please visit the Install DataLad section of the DataLad Handbook and follow the instruction for Mac OS X install.

2) Creating a new dataset with DataLad
  • On github, fork a new copy of into your userspace.

  • Install that copy locally:

datalad install -r<yourusername>/conp-dataset

( use -r flag to install directory structure)

  • Create a local project:
cd conp-dataset
datalad create -d . projects/<newprojectname>
  • Create a sibling for this project on github. The command below will generate a sibling in your local space

datalad create-sibling-github -d projects/<newprojectname> <newprojectname>

The first "newprojectname" is local, the second is the name of the github repository that will be created in your personal github space. These do not need to be identical for the procedure to work, but it is recommended that they should be to avoid confusion.

To inspect existing siblings:

datalad siblings

  • Manually edit the .gitmodules file in your local conp-dataset directory:

The last three lines of this file will contain an entry for your new project, but the format datalad currently generates is not functional. The lines should be edited to the following format:

[submodule "projects/<newprojectname>"]
  path = projects/<newprojectname>
  url =<yourusername>/<newprojectname>.git

Previous entries in the .gitmodules file can be used as a guide.

Populating a new dataset

Choice of how to populate a new dataset will vary based on the special remote providing access to the data. The following procedure covers working with the web special remote. Alternative, more experimental options using other special remotes are documented [here] (

All commands presented in the following sections should be run from projects/<newprojectname> unless specified otherwise.

####### Requirements

All datasets must include a in the root directory.
Adding metadata about your dataset is required.

All datasets must include a DATS.json metadata file in the root directory as described in the main documentation page.

(It is not necessary to manually create these files when using Zenodo as the CONP Zenodo crawler automatically generates them.)

  • For large datafiles on ftp or http servers, use the web remote:
git annex addurl <URL_of_resource> --file <linkname>

The --file switch is optional but recommended, because without it the default name for a link is built from the full URL of the resource and tends to be unwieldy and/or uninformative.

NB: Generating the link requires enough space on your local machine to store the large data file, as git-annex needs to download the file to generate checksums.

  • Add small files such as directly to your git repository. These will not be annexed:
datalad add --to-git ./
3) Publishing a new dataset to GitHub

From your new project directory:

  datalad save
  datalad publish --to github
  cd ../..		(this should put you in ~/conp-dataset/)
  datalad save
  datalad publish --to origin

Both of the save and publish steps are necessary, and must be done from the appropriate directories in the right order.

When adding new data to an existing project, the publish --to github is replaced by another publish --to origin command.

4) Testing the new dataset
  • You should now have a git repository containing your new dataset correctly linked as a submodule of <yourusername>/conp-dataset. Test this by downloading.
datalad install -r<yourusername>/conp-dataset
cd conp-dataset/projects/<newprojectname>

This -r is a recursive install, so all subdirectories and small files should be present, and links to annexed files.

  • Test that dataset files download correctly, either URLs (Web remote) or files (Globus remote):

datalad get [<url_name> | path/to/file]

5) Obtaining a Digital Object Identifier for your dataset

Datasets in CONP are required to have a Digital Object Identifier (DOI). A DOI is a unique and permanent identifier associated with a research object to make it citeable and retrievable. To get a DOI for your dataset, follow the following steps:

  • Log in to Zenodo, preferably using your GitHub account.

  • Select your GitHub repository at Zenodo.

  • Release your dataset on GitHub (see instructions here), which creates a DOI and archives your dataset on Zenodo.

  • Get the DOI badge from here, add it to the file of your dataset and add its value to the identifier field of your DATS.json file. This links to the DOI associated with the latest release of your dataset.

  • Submit a pull request to merge your dataset with CONP-PCNO/conp-dataset. Travis-CI will automatically test your dataset to confirm whether files download correctly, validate the format of your DATS.json file etc.

6) Longer-term use and storage

We recommend that datasets be forked into to mitigate the risk of becoming inaccessible as the projects that generated the data conclude, depending on the circumstances of individual datasources.

If you need help at any stage, please open an issue in
the CONP-PCNO/conp-dataset repository and we will do our best to help you.