Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Latest commit

 

History

History
32 lines (23 loc) · 1.43 KB

File metadata and controls

32 lines (23 loc) · 1.43 KB

How to share a study programmatically

Requirements

Instructions

Please note that there are several limitations:

  1. The script should be launched under the study owner user.
  2. The script will fail if the user attempts to share studies with a group name that is used more than once in groups they are a member of (ie, group names should not be duplicated).
  1. Prepare the data for script: you need accessions of the studies you want to share and the names of the user groups with which you want to share they studies.
  2. Run the script and follow its login instructions, replacing the host name with the name of the instance the script will apply to. The script will print “Success” or an error stacktrace if there is an error.
odm-share-study --study_accession GSF013340 --group_name GroupName -H HOST

If a group name contains spaces use quotes around group name:

odm-share-study --study_accession GSF000745 --group_name 'Group name with space' -H HOST

To explore the full list of supported arguments use the following command:

odm-share-study -h