# GTEx access via samtools

**URL:** <https://help.anvilproject.org/t/gtex-access-via-samtools/402>\
**Category:** Help\
**Created:** [June 1, 2026, 3:57pm UTC](https://help.anvilproject.org/t/gtex-access-via-samtools/402 "2026-06-01T15:57:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MARGAUX\_HUJOEL](https://yyz1.discourse-cdn.com/flex027/user_avatar/help.anvilproject.org/margaux_hujoel/32/273_2.png) [@MARGAUX\_HUJOEL](https://help.anvilproject.org/u/MARGAUX_HUJOEL)\
**Post date:** [June 1, 2026, 3:57pm UTC](https://help.anvilproject.org/t/gtex-access-via-samtools/402/1 "2026-06-01T15:57:41Z")

</div>

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:

```auto
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!

---

<div class="post-metadata">

**Author:** ![Valeriya\_Gaysinskaya](https://yyz1.discourse-cdn.com/flex027/user_avatar/help.anvilproject.org/valeriya_gaysinskaya/32/162_2.png) [@Valeriya\_Gaysinskaya](https://help.anvilproject.org/u/Valeriya_Gaysinskaya)\
**Post date:** [June 3, 2026, 12:32pm UTC](https://help.anvilproject.org/t/gtex-access-via-samtools/402/2 "2026-06-03T12:32:28Z")

</div>

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)

 ![01Jun26_hprc-project-id](https://canada1.discourse-cdn.com/flex027/uploads/anvil/original/1X/eb7f01b0717a11ff8a8215fd4fb4894ed18e73e0.jpeg)

**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”)\>
