-- DBMS: bigquery
CREATE TABLE `isb-cgc.GDC_metadata.rel13_slide2caseIDmap`
(
  program_name STRING OPTIONS(description="Program name, eg TCGA or TARGET"),
  project_id STRING OPTIONS(description="ID of the Project -- e.g. TCGA-BRCA, TARGET-AML, etc."),
  case_gdc_id STRING OPTIONS(description="GDC unique identifier"),
  case_barcode STRING OPTIONS(description="Submitter identifier, eg HCC1954, TCGA-ZX-AA5X, etc"),
  sample_gdc_id STRING OPTIONS(description="Unique GDC identifier for this sample (corresponds to the sample_barcode), eg a1ec9279-c1a6-4e58-97ed-9ec1f36187c5  --  this can be used to access more information from the GDC data portal"),
  sample_barcode STRING OPTIONS(description="Original/submitter sample ID"),
  sample_type_id INT64 OPTIONS(description="Type of metadata file, eg mage-tab"),
  sample_type STRING OPTIONS(description="Two-digit sample_type code which forms part of the sample barcode eg. 01,11,06, etc."),
  portion_gdc_id STRING OPTIONS(description="Original/submitter portion ID"),
  portion_barcode STRING OPTIONS(description="Original/submitter portion ID"),
  slide_gdc_id STRING OPTIONS(description="Slide GDC uuid"),
  slide_barcode STRING OPTIONS(description="Slide submitter ID")
)
OPTIONS(
  friendly_name="RELEASE 13 SLIDE IMAGES TO CASE IDS REL13",
  description="Data was generated from file metadata information from the GDC release October 2018. Image slides are mapped to case information. \nMore details: https://docs.gdc.cancer.gov/Data/Release_Notes/Data_Release_Notes/#data-release-130",
  labels=[("access", "open"), ("data_type", "file_metadata"), ("source", "gdc"), ("status", "archived"), ("category", "metadata")]
);

INSERT INTO `isb-cgc.GDC_metadata.rel13_slide2caseIDmap` (program_name, project_id, case_gdc_id, case_barcode, sample_gdc_id, sample_barcode, sample_type_id, sample_type, portion_gdc_id, portion_barcode, slide_gdc_id, slide_barcode) VALUES ('TCGA', 'TCGA-BLCA', '9c274536-3ca1-4f0e-93a8-1688074d862f', 'TCGA-DK-A1A6', 'f7f74a2b-5299-424d-b9a7-2b313dc7823c', 'TCGA-DK-A1A6-06A', 6, 'Metastatic', '5df8dcdf-6717-48b1-988d-5239a6f5bd69', 'TCGA-DK-A1A6-06A-11', 'c62f2d94-94cc-4948-be2f-ab9a314eefa3', 'TCGA-DK-A1A6-06A-01-TS1'), ('TCGA', 'TCGA-BRCA', '0a2a3529-f645-4967-9a58-89ee20b8bb62', 'TCGA-E2-A15E', '0a84f440-20db-433e-8ac5-5a721eaf7db4', 'TCGA-E2-A15E-06Z', 6, 'Metastatic', 'NA', 'NA', 'ccbe6e6a-aa62-403e-af75-1fa3ca34e31f', 'TCGA-E2-A15E-06Z-00-DX1'), ('TCGA', 'TCGA-BRCA', '0a2a3529-f645-4967-9a58-89ee20b8bb62', 'TCGA-E2-A15E', '28462438-fe47-4880-82d9-ee43d534d8a3', 'TCGA-E2-A15E-06A', 6, 'Metastatic', '1716ea4f-0977-4fdd-a164-a3bde024fe96', 'TCGA-E2-A15E-06A-11', 'e5b7bb2d-5cf3-4bd6-a36b-9b7c69ca56de', 'TCGA-E2-A15E-06A-01-TS1'), ('TCGA', 'TCGA-BRCA', '17c1d42c-cb84-4655-a4cd-b54bae17ecaf', 'TCGA-E2-A15K', '4fcf4afe-40be-40eb-95cb-5b172ed83d11', 'TCGA-E2-A15K-06A', 6, 'Metastatic', 'e62a108f-46c5-4752-b6d7-1d61c6108f2c', 'TCGA-E2-A15K-06A-11', 'c2f7ed54-0f5a-4f43-b130-77a7dcceb9db', 'TCGA-E2-A15K-06A-01-TS1'), ('TCGA', 'TCGA-BRCA', '4aa68586-6331-4795-b40c-859386640df6', 'TCGA-BH-A1FE', '3e38b9a1-4367-47fd-9a44-2c611406e922', 'TCGA-BH-A1FE-06A', 6, 'Metastatic', '753d4e50-a214-4dc0-a5f8-af6a57055f04', 'TCGA-BH-A1FE-06A-11', '5b9d58fa-f6df-44b9-8ad1-078fda8341d2', 'TCGA-BH-A1FE-06A-01-TSA');