Versions Compared

Key

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

This use case will combine concepts from Annotating Data With Metadata/wiki/spaces/DOCS/pages/2011070739Uploading and Organizing Data Into Projects, Files, and Folders. You will learn how to:

  • Create a manifest

  • Upload 100 files

  • Edit annotations on these files using the Synapse programmatic clients

...

  1. Navigate to your project.

  2. Go to the tables tab, select Tables Tools in the upper right corner, and click Add File View.

  3. In the resulting pop-up, give the new file view a name.

  4. Select the container (Synapse project or folder) of files, and click Next. In this case, you would want the synID of the parent column in the manifest.

  5. Select the columns you would like to keep. Since we are going to edit the annotations later, make sure you have the column etag listed as one of your columns.

  6. Add All Annotations at the end of the opened window will add all existing annotations.

  7. Click Finish to create the file view.

(plus) For more information on file views, see /wiki/spaces/DOCS/pages/2011070739.

Perform a One-Time Annotation Update or Deletion (web)

...

  1. Query for the file view with synTableQuery() or syn.tableQuery(). To delete all the annotations of a key, you have to keep the column in the file view but remove the values.

  2. Update and then store the annotations in the R client or Python client.

...