- Configured odm-sdk. See Configured odm-sdk
- The user should be a member of Curator group and have Bearer Token or API token. See Getting a Genestack API token
Please note that there are several limitations:
- The script should be launched under the study owner user.
- 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).
- 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.
- 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 HOSTIf a group name contains spaces use quotes around group name:
odm-share-study --study_accession GSF000745 --group_name 'Group name with space' -H HOSTTo explore the full list of supported arguments use the following command:
odm-share-study -h