Description Usage Arguments Value See Also Examples
In contrast to the bucket_path
function, output_path
takes
the "output" parameter from the analysis-runner invocation into account.
Requires the DATASET
, ACCESS_LEVEL
, and OUTPUT
environment variables to
be set.
1 | output_path(path_suffix, bucket_category = NULL)
|
path_suffix |
A suffix to append to the bucket + output directory. |
bucket_category |
A category like "upload", "tmp", "web". If omitted, defaults to the "main" and "test" buckets based on the access level. See https://github.com/populationgenomics/team-docs/tree/main/storage_policies for a full list of categories and their use cases. |
Full GCS path.
1 2 3 4 5 | # Assuming that the analysis-runner has been invoked with
# `--dataset tob-wgs --access-level test --output snp/v1`:
Sys.setenv("DATASET" = "proj1", "ACCESS_LEVEL" = "test", "OUTPUT" = "dirA/v1")
(o1 <- output_path("report.html", "web")) # gs://cpg-proj1-test-web/dirA/v1/report.html
(o2 <- output_path("output.txt")) # gs://cpg-proj1-test/dirA/v1/output.txt
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.