Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Status
colourRed
titledraft

It is possible to upload data on Brainlife. Datasets can be public or private (it depends on the nature of the project it is linked to).

...

Code Block
$ singularity run docker://brainlife/cli login

The result is:

...

Then, to run the BL command, you must write :For more details, see the BL documentation.

In order to upload a data object, Brainlife requires that you supply a project and datatype associated with it it:

  1. get the ID of your project

    Code Block
    $ singularity run docker://brainlife/cli project query --admin <admin>
    Image Added

  2. get the ID of the datatype of your project

    Code Block
    $ singularity run docker://brainlife/cli datatype 

...

  1. query --

...

  1. query <datatype>

...

Once you get these two ID, you can upload your data. To do so, all that is required is a directory to upload, a project id, and a datatype id (but other options exist):

Code Block
$ singularity run docker://brainlife/cli bl <command> data upload --directory <path> --project <projectid> --datatype <datatypeid>

Info

It can be heavy to always write singularity run docker://brainlife/cli when using BL CLI, so you can add this command to your ~/.bashrc:

Code Block
function bl {
    singularity run docker://brainlife/cli $@
}

...

For more details, see the BL documentation.

In order to upload a data object, Brainlife requires that you supply a project and datatype associated with it.