-- DBMS: bigquery
CREATE TABLE `isb-cgc.GDC_metadata.rel22_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 STRING OPTIONS(description="Two-digit sample_type code which forms part of the sample barcode eg. 01,11,06, etc. (OR NA)"),
  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 REL22",
  description="Data was generated from file metadata information from the GDC release 22, downloaded Jan 22, 2020. Image slides are mapped to case information.\nMore details: https://docs.gdc.cancer.gov/Data/Release_Notes/Data_Release_Notes/#data-release-220\nThis table has been deprecated, please see isb-cgc-bq.GDC_case_file_metadata.slide2caseIDmap_current for the most current table.",
  labels=[("access", "open"), ("data_type", "file_metadata"), ("source", "gdc"), ("status", "deprecated"), ("category", "metadata")]
);

INSERT INTO `isb-cgc.GDC_metadata.rel22_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', 'b06f7bf0-45bb-4aca-8f22-72d8a4f73f99', 'BLGSP-71-19-00106', '83c55904-ee5a-4b0a-8c12-ef7f41cdb71e', 'BLGSP-71-19-00106-02A', '02', 'Recurrent Tumor', 'f1d2a583-ddd0-4787-931e-f5601783d7a8', 'BLGSP-71-19-00106-02A-01', '0ab4fece-9809-4ef1-9e88-39f58cfe036f', 'BLGSP-71-19-00106-02A-01-S1-HE'), ('CGCI', 'CGCI-BLGSP', 'b06f7bf0-45bb-4aca-8f22-72d8a4f73f99', 'BLGSP-71-19-00106', '83c55904-ee5a-4b0a-8c12-ef7f41cdb71e', 'BLGSP-71-19-00106-02A', '02', 'Recurrent Tumor', 'f1d2a583-ddd0-4787-931e-f5601783d7a8', 'BLGSP-71-19-00106-02A-01', 'f379d4f4-226a-4d14-b112-787bca0158a3', 'BLGSP-71-19-00106-02A-01-S2-HE'), ('HCMI', 'HCMI-CMDC', 'babbc3cb-14b7-4894-b91d-c160f4cb48e0', 'HCM-BROD-0047-C71', 'd10aaf2a-7eb2-40f2-b3e4-bb9a38ed0d63', 'HCM-BROD-0047-C71-02A', '02', 'Recurrent Tumor', 'aefe78bf-2f50-40d3-b07b-95e4388b8224', 'HCM-BROD-0047-C71-02A-01', '67a19d94-709d-4397-84ef-4200390113f1', 'HCM-BROD-0047-C71-02A-01-S2-HE'), ('HCMI', 'HCMI-CMDC', 'babbc3cb-14b7-4894-b91d-c160f4cb48e0', 'HCM-BROD-0047-C71', 'd10aaf2a-7eb2-40f2-b3e4-bb9a38ed0d63', 'HCM-BROD-0047-C71-02A', '02', 'Recurrent Tumor', 'aefe78bf-2f50-40d3-b07b-95e4388b8224', 'HCM-BROD-0047-C71-02A-01', 'b189e665-ebee-4a3d-875b-0bc0bc0bd88f', 'HCM-BROD-0047-C71-02A-01-S1-HE'), ('TCGA', 'TCGA-COAD', 'cee553c8-460d-436b-b55d-8f41624816cc', 'TCGA-G4-6317', '45c8544c-ec60-447e-91ee-62e41e72a82f', 'TCGA-G4-6317-02A', '02', 'Recurrent Tumor', '2b820f48-7713-4877-b5ea-a5060943810a', 'TCGA-G4-6317-02A-11', '870c2e2e-7f4f-4d06-bac3-5e48c4d9d09d', 'TCGA-G4-6317-02A-01-BS1');