-- DBMS: bigquery
CREATE TABLE `isb-cgc.GDC_metadata.rel17_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 INT64 OPTIONS(description="Two-digit sample_type code which forms part of the sample barcode eg. 01,11,06, etc."),
  sample_type_name STRING OPTIONS(description="The longer name of the sample type; eg. Primary Tumor, Recurrent Tumor, 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="SLIDE IMAGES TO CASE IDS REL17",
  description="Data was generated from file metadata information from the GDC  release 17.1, June 2019. Image slides are mapped to case information.\nMore details: https://docs.gdc.cancer.gov/Data/Release_Notes/Data_Release_Notes/#data-release-170",
  labels=[("access", "open"), ("data_type", "file_metadata"), ("source", "gdc"), ("status", "archived"), ("category", "metadata")]
);

INSERT INTO `isb-cgc.GDC_metadata.rel17_slide2caseIDmap` (program_name, project_id, case_gdc_id, case_barcode, sample_gdc_id, sample_barcode, sample_type, sample_type_name, portion_gdc_id, portion_barcode, slide_gdc_id, slide_barcode) VALUES ('HCMI', 'HCMI-CMDC', '0f89e089-4a1d-4e66-8537-502a788cfe75', 'HCM-BROD-0012-C71', 'ef79477d-81d2-480b-a755-6b2fe7cccac1', 'HCM-BROD-0012-C71-01A', 1, 'Primary Tumor', '12ab0051-32d1-4fc2-8abe-645b54a9d664', 'HCM-BROD-0012-C71-01A-01', '52aff37e-64c6-48b8-89ad-0a440a131603', 'HCM-BROD-0012-C71-01A-01-S2-HE'), ('HCMI', 'HCMI-CMDC', '0f89e089-4a1d-4e66-8537-502a788cfe75', 'HCM-BROD-0012-C71', 'ef79477d-81d2-480b-a755-6b2fe7cccac1', 'HCM-BROD-0012-C71-01A', 1, 'Primary Tumor', '12ab0051-32d1-4fc2-8abe-645b54a9d664', 'HCM-BROD-0012-C71-01A-01', 'c8655bcc-0f23-475d-93fa-4323b901e63c', 'HCM-BROD-0012-C71-01A-01-S1-HE'), ('HCMI', 'HCMI-CMDC', '118bf677-caed-4f7f-a837-dd966dce5ca7', 'HCM-CSHL-0061-C18', '0ca75f2e-b1e8-4f74-acda-7e390d133064', 'HCM-CSHL-0061-C18-01A', 1, 'Primary Tumor', 'ab1be22f-4d4a-4881-92e5-deb9bc94828a', 'HCM-CSHL-0061-C18-01A-01', '56773423-1cbb-46c7-9556-37836d4d9e3d', 'HCM-CSHL-0061-C18-01A-01-S2-HE'), ('HCMI', 'HCMI-CMDC', '118bf677-caed-4f7f-a837-dd966dce5ca7', 'HCM-CSHL-0061-C18', '0ca75f2e-b1e8-4f74-acda-7e390d133064', 'HCM-CSHL-0061-C18-01A', 1, 'Primary Tumor', 'ab1be22f-4d4a-4881-92e5-deb9bc94828a', 'HCM-CSHL-0061-C18-01A-01', '5f6434a1-c35d-487b-863a-a64f9c09212d', 'HCM-CSHL-0061-C18-01A-01-S1-HE'), ('HCMI', 'HCMI-CMDC', '69eced5b-1e76-45c9-bc9c-2aa71a921c57', 'HCM-BROD-0011-C71', 'e6054728-d59e-415d-9a0e-3b7bb0e6fdc5', 'HCM-BROD-0011-C71-01A', 1, 'Primary Tumor', '13fb3cea-0c84-4066-ac6d-6ccaa28b4a88', 'HCM-BROD-0011-C71-01A-01', '32aab2b3-0069-4f77-a3ed-64362fe5950f', 'HCM-BROD-0011-C71-01A-01-S2-HE');