Versions Compared

Key

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

...

  1. get the ID of your project

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

  2. get the ID of the datatype of the data you want to upload

    Code Block
    $ singularity run docker://brainlife/cli datatype query --query <datatype>

...

  1. <keyword>

...

The command returns several results, it’s up to you to select the one you want.

Once you get these two IDinformations, 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)For example for the neuro/meg/fif datatype:

Code Block
$ singularity run docker://brainlife/cli data upload --fif rest1-raw.fif --calibration sss_cal.dat --crosstalk --ct_sparse.fif --directory <path>destination mean_tm-raw.fif --project <projectid>5ff32b04116c5cbba4d1929b --datatype <datatypeid>neuro/meg/fif --subject rest1-raw

You can upload data by specifying a single directory containing all of the files for its associated datatype. However, you can also specify the path for each individual file ID.

Eventually, if you want to have info on your newly uploaded dataset:

Code Block
$ singularity run docker://brainlife/cli data query --subject rest1-raw

...

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 
}

...