Versions Compared

Key

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

...

  • Create a manifest

  • Upload files in bulk

  • Modify files in bulk using a manifest

  • Download files in bulk

Uploading

...

Data in

...

Bulk

Creating a

...

Manifest

Files to be uploaded are specified in a tab separated (.tsv) manifest. The manifest has columns that contain information about each file to be uploaded along with annotations that will be associated with the file in Synapse.

...

  • The path and parent columns are required

  • The name is only necessary if the displayed name in Synapse should be different than the name of the uploaded file

  • Used and executed are optional for provenance (but helpful!),

  • Emotion and species are optional annotations (but also helpful!)

Download the template.

Validate the

...

Manifest and

...

Upload Files

The format of the manifest file (called filesToUpload.tsv in this example) can be validated prior to upload by using the parameter dryRun in syncToSynapse. The dryRun parameter will not upload the data specified in the manifest file. Instead, the client checks that: the manifest file format is correct, all file paths exist, all files are unique, provenance can be set (optional), and the parent synID exists. The number of files and total upload size is also summarized in the dryRun output. This helps ensure your data upload does not end prematurely due to a typo in the file path or parent synID.

...

After validating the manifest, you can now upload the files to Synapse by removing the dryRun parameter. Once the upload is complete, you will receive an email notification. This notification will also show any errors from the upload.

Downloading

...

Data in

...

Bulk

Files can be downloaded in bulk using the syncFromSynapse function. This function allows you to download all the files in a folder or project along with all the annotations and provenance on those files. A manifest file called SYNAPSE_METADATA_MANIFEST.tsv that contains the metadata will also be added in the path.

Editing in

...

Bulk

You can modify values in the manifest and re-upload them to Synapse using syncToSynapse to edit files in bulk. The manifest allows you to modify everything: file path, provenance, annotations, and versions. If the files have not changed and you only want to update the file annotations, add a column called forceVersion to the manifest with the value False for each row. This will stop syncToSynapse from uploading new versions of the files.

...

Info

Note: Changing the parent synID in a manifest creates a copy of the file. It does not move it.

See also:

Downloading dataData/wiki/spaces/DOCS/pages/1972470373Annotations and queriesQueries/wiki/spaces/DOCS/pages/2011070739/wiki/spaces/DOCS/pages/2668134540

...