Main Content

For Developers

How can I download BAM index files (BAI files) using the API?

Submitted by Anonymous on

BAI files are included with the download when using the GDC Data Transfer Tool to download BAM files. 

When using the API to download BAM files, BAI files will only be included if the related_files=true parameter is specified together with the BAM UUID, for example: 

https://api.gdc.cancer.gov/data/53f4ad60-0777-409c-a34d-ca4442dc9c44?related_files=true 

How do I obtain an account to log in to the GDC?

Submitted by Anonymous on

Generally, browsing indexed GDC metadata (such as information about the cases and files contained in the GDC Data Portal) does not require a login.

eRA Commons authentication and dbGaP authorization are required before accessing controlled data, which generally includes individually identifiable information such as low level genomic sequencing data and germline variants.

Controlled-access data users log in to the GDC using their eRA Commons accounts. The GDC then verifies that the user has authorization in dbGaP to access specific controlled datasets.

Subscribe to For Developers