GTEx access via samtools

I am trying to access GTEx crams (to which I have access) via samtools and the gsurl. I am having issues setting up billing. I linked terra to my GCP account and created a billing project. However I am having issues finding the project-id for this to give to samtools e.g. with commands such as:

export GCS_REQUESTER_PAYS_PROJECT="your-billing-project-id"
export GCS_OAUTH_TOKEN=$(gcloud auth application-default print-access-token)
samtools view gs://requester-pays-bucket/sample.bam chr1:1-10000

Thank you in advance!

Hi, and thank you for your question.

To find your Google Project ID:

You first need to create or open an AnVIL Workspace. On the Workspace Dashboard, under Cloud Information, you will find the Google Project ID (see example below)

Alternatively, from an AnVIL RStudio session within the Workspace, you can retrieve the same project ID with the following code:

<google_project_id ← Sys.getenv(“GOOGLE_PROJECT”)>