-- DBMS: bigquery
CREATE TABLE `isb-cgc.GDC_metadata.rel18_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 REL18",
  description="Data was generated from file metadata information from the GDC release 18, downloaded July 12, 2019.. Image slides are mapped to case information.\nMore details: https://docs.gdc.cancer.gov/Data/Release_Notes/Data_Release_Notes/#data-release-180",
  labels=[("access", "open"), ("data_type", "file_metadata"), ("source", "gdc"), ("status", "archived"), ("category", "metadata")]
);

INSERT INTO `isb-cgc.GDC_metadata.rel18_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 ('CGCI', 'CGCI-BLGSP', '0024c94c-88ff-49d9-8dc4-bf77f832d85e', 'BLGSP-71-06-00137', '8b047221-0632-4d2c-916a-6f1762c12d8b', 'BLGSP-71-06-00137-01A', 1, 'Primary Tumor', 'a6e7a25a-5610-4905-a2ae-1913260730b1', 'BLGSP-71-06-00137-01A-01', '177524e4-e8e3-41ad-bc19-3bf8001216ff', 'BLGSP-71-06-00137-01A-01-S1-HE'), ('CGCI', 'CGCI-BLGSP', '0024c94c-88ff-49d9-8dc4-bf77f832d85e', 'BLGSP-71-06-00137', '8b047221-0632-4d2c-916a-6f1762c12d8b', 'BLGSP-71-06-00137-01A', 1, 'Primary Tumor', 'a6e7a25a-5610-4905-a2ae-1913260730b1', 'BLGSP-71-06-00137-01A-01', '67a9a346-a9f7-4867-8cc1-7d2f63dfa9e8', 'BLGSP-71-06-00137-01A-01-S2-HE'), ('CGCI', 'CGCI-BLGSP', '0196393b-aa14-432c-bfcc-1f858c14cd4f', 'BLGSP-71-06-00277', 'abd90914-4456-466a-be11-171a4cb5a94e', 'BLGSP-71-06-00277-01A', 1, 'Primary Tumor', '04d08e49-d610-431c-bfa5-b819f2b15127', 'BLGSP-71-06-00277-01A-01', '5b8954d8-dfc7-4eca-a0d1-9567dc5213a4', 'BLGSP-71-06-00277-01A-01-S1-HE'), ('CGCI', 'CGCI-BLGSP', '0196393b-aa14-432c-bfcc-1f858c14cd4f', 'BLGSP-71-06-00277', 'abd90914-4456-466a-be11-171a4cb5a94e', 'BLGSP-71-06-00277-01A', 1, 'Primary Tumor', '04d08e49-d610-431c-bfa5-b819f2b15127', 'BLGSP-71-06-00277-01A-01', 'f625a193-5dc2-4bc7-a18d-effad8d77a8b', 'BLGSP-71-06-00277-01A-01-S2-HE'), ('CGCI', 'CGCI-BLGSP', '06c07e2d-a04d-4099-a29f-948e40558dd1', 'BLGSP-71-06-00165', 'c2b84c93-7bf8-43e2-8a42-3715f2c49c19', 'BLGSP-71-06-00165-01A', 1, 'Primary Tumor', '99d88dee-af13-450f-9e50-00eafefd78c1', 'BLGSP-71-06-00165-01A-01', '124ca711-6773-473e-a19c-ae2a86126d1b', 'BLGSP-71-06-00165-01A-01-S2-HE');