Skip to content
Snippets Groups Projects
Commit 75e4303f authored by Kate Voss's avatar Kate Voss
Browse files

Changed path to scripts for run example

parent 6a8dd618
No related branches found
Tags v5.4.11
No related merge requests found
...@@ -10,6 +10,7 @@ To run a giving script using Docker: ...@@ -10,6 +10,7 @@ To run a giving script using Docker:
## Prerequisites ## Prerequisites
* Install the Google Cloud SDK from https://cloud.google.com/sdk/downloads * Install the Google Cloud SDK from https://cloud.google.com/sdk/downloads
* Set the Application Default Credentials (run `gcloud auth application-default login`) * Set the Application Default Credentials (run `gcloud auth application-default login`)
* Python 2.7
When running without the run script or docker, check the packages that are pip When running without the run script or docker, check the packages that are pip
installed in either run.sh or the Dockerfile. installed in either run.sh or the Dockerfile.
\ No newline at end of file
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
This script takes in a file of email addresses (one per line) and uses those to set permissions on a given method or config. All users in that file will get the same access level, so if other access levels are needed per "group" of users, you must use different files. This script takes in a file of email addresses (one per line) and uses those to set permissions on a given method or config. All users in that file will get the same access level, so if other access levels are needed per "group" of users, you must use different files.
Run this as follows (from the main directory): Run this as follows (from the main directory):
```./run.sh add_many_emails_to_method/add_many_emails_to_method.py -s <method/config namespace> -n <method/config name> -i <snapshot id> -t <type, either method or config> -r <access level, either READER or OWNER> -f <file with one email per line>``` ```./run.sh scripts/add_many_emails_to_method/add_many_emails_to_method.py -s <method/config namespace> -n <method/config name> -i <snapshot id> -t <type, either method or config> -r <access level, either READER or OWNER> -f <file with one email per line>```
\ No newline at end of file \ No newline at end of file
...@@ -3,9 +3,9 @@ This script will provide a cost breakdown for either (a) all workflows in all su ...@@ -3,9 +3,9 @@ This script will provide a cost breakdown for either (a) all workflows in all su
Usage: Usage:
* All submissions in a workspace: ./run.sh bigquery_billing_report/bigquery_billing_report.py -p \<firecloud billing project name\> -n \<workspace name\> * All submissions in a workspace: ./run.sh scripts/bigquery_billing_report/bigquery_billing_report.py -p \<firecloud billing project name\> -n \<workspace name\>
* All workflows in a submission: ./run.sh bigquery_billing_report/bigquery_billing_report.py -p \<firecloud billing project name\> -n \<workspace name\> -s \<submission id\> * All workflows in a submission: ./run.sh scripts/bigquery_billing_report/bigquery_billing_report.py -p \<firecloud billing project name\> -n \<workspace name\> -s \<submission id\>
* A single workflow: ./run.sh bigquery_billing_report/bigquery_billing_report.py -p \<firecloud billing project name\> -n \<workspace name\> -s \<submission id\> -w \<workflow id\> * A single workflow: ./run.sh scripts/bigquery_billing_report/bigquery_billing_report.py -p \<firecloud billing project name\> -n \<workspace name\> -s \<submission id\> -w \<workflow id\>
* For Big Query datasets not exported to the firecloud billing project: * For Big Query datasets not exported to the firecloud billing project:
......
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
This script writes a TSV file for a given entity when that entity is too large to download from the GUI. This script writes a TSV file for a given entity when that entity is too large to download from the GUI.
Run this as follows (from the main directory): Run this as follows (from the main directory):
```./run.sh entity_to_tsv_for_large_data/entity_to_tsv_for_large_data.py -p <workspace project> -n <workspace name> -e <entity type, e.g. sample> -o <output_tsv_file_name>``` ```./run.sh scripts/entity_to_tsv_for_large_data/entity_to_tsv_for_large_data.py -p <workspace project> -n <workspace name> -e <entity type, e.g. sample> -o <output_tsv_file_name>```
\ No newline at end of file \ No newline at end of file
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
This script imports a TSV file when it is too large to import from the GUI. This script imports a TSV file when it is too large to import from the GUI.
Run this as follows (from the main directory): Run this as follows (from the main directory):
```./run.sh import_large_tsv/import_large_tsv.py -p <workspace project> -n <workspace name> -f <tsv file name>``` ```./run.sh scripts/import_large_tsv/import_large_tsv.py -p <workspace project> -n <workspace name> -f <tsv file name>```
\ No newline at end of file \ No newline at end of file
...@@ -4,4 +4,4 @@ This script will take a submission id from a given workspace and bind the output ...@@ -4,4 +4,4 @@ This script will take a submission id from a given workspace and bind the output
Optionally an expression override argument can be given that allows new output expressions to be defined and override the existing method config's output expressions. This can be used for example to bind an output that did not originally have an expresion defined for it when the analysis was run. Optionally an expression override argument can be given that allows new output expressions to be defined and override the existing method config's output expressions. This can be used for example to bind an output that did not originally have an expresion defined for it when the analysis was run.
Run this as follows (from the main directory): Run this as follows (from the main directory):
```./run.sh rebind_output_attributes/rebind_output_attributes.py -p <workspace project> -n <workspace name> -s <submission id of the overriding outputs> -e <optional, if used this can override output expressions used in the method config for this submission. Syntax is in the form {"output_name": "expression"}``` ```./run.sh scripts/rebind_output_attributes/rebind_output_attributes.py -p <workspace project> -n <workspace name> -s <submission id of the overriding outputs> -e <optional, if used this can override output expressions used in the method config for this submission. Syntax is in the form {"output_name": "expression"}```
\ No newline at end of file \ No newline at end of file
...@@ -5,4 +5,4 @@ In order to run this script you will need to download the credentials JSON file ...@@ -5,4 +5,4 @@ In order to run this script you will need to download the credentials JSON file
Usage (from the main directory where run.sh resides): Usage (from the main directory where run.sh resides):
```./run.sh register_service_account/register_service_account.py -j <path to your service account credentials json file> -e <email address for owner of this service account>``` ```./run.sh scripts/register_service_account/register_service_account.py -j <path to your service account credentials json file> -e <email address for owner of this service account>```
...@@ -3,5 +3,9 @@ This script will display the estimated storage costs for a single workspace or a ...@@ -3,5 +3,9 @@ This script will display the estimated storage costs for a single workspace or a
Usage: Usage:
* All workspaces in a project: ./run.sh storage_costs_estimates/storage_costs_estimates.py -p \<firecloud billing project name\> * All workspaces in a project:
* A single workspace: ./run.sh storage_costs_estimates/storage_costs_estimates.py -p \<firecloud billing project name\> -n \<workspace name\> ./run.sh scripts/storage_costs_estimates/storage_costs_estimates.py -p \<firecloud billing project name\>
\ No newline at end of file * A single workspace:
./run.sh scripts/storage_costs_estimates/storage_costs_estimates.py -p \<firecloud billing project name\> -n \<workspace name\>
You can find the [FireCloud billing project name here](https://portal.firecloud.org/#billing) and the [workspace name here](https://portal.firecloud.org/#workspaces).
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment