-- DBMS: bigquery
CREATE TABLE `isb-cgc.GDC_metadata.rel24_aliquot2caseIDmap`
(
  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."),
  sample_type_name STRING OPTIONS(description="The longer name of the sample type; eg. Primary Tumor, Recurrent Tumor, etc."),
  sample_is_ffpe STRING OPTIONS(description="Whether a smaple is FFPE, either  False,  None ,  True, or null"),
  sample_preservation_method STRING OPTIONS(description="Sample Preservation Method, usually null or  FFPE, also Snap Frozen or Frozen"),
  portion_gdc_id STRING OPTIONS(description="Portion GDC ID"),
  portion_barcode STRING OPTIONS(description="Original/submitter portion ID"),
  analyte_gdc_id STRING OPTIONS(description="Analyte GDC ID"),
  analyte_barcode STRING OPTIONS(description="Original/submitter analyte ID"),
  aliquot_gdc_id STRING OPTIONS(description="Unique GDC identifier for this aliquot (corresponds to the aliquot_barcode), eg 7fbfdb3e-1fd2-4206-8d2e-7f68e4a15844  --  this can be used to access more information from the GDC data portal"),
  aliquot_barcode STRING OPTIONS(description="Original TCGA aliquot barcode, eg TCGA-12-1089-01A-01D-0517-01")
)
OPTIONS(
  friendly_name="ALIQUOT IDS TO CASE IDS REL24",
  description="Data was generated from file metadata information from the GDC release 24, downloaded May 2020. Aliquot barcodes are mapped to case information.\nMore details: https://docs.gdc.cancer.gov/Data/Release_Notes/Data_Release_Notes/#data-release-240\nThis table has been deprecated, please see isb-cgc-bq.GDC_case_file_metadata.aliquot2caseIDmap_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.rel24_aliquot2caseIDmap` (program_name, project_id, case_gdc_id, case_barcode, sample_gdc_id, sample_barcode, sample_type, sample_type_name, sample_is_ffpe, sample_preservation_method, portion_gdc_id, portion_barcode, analyte_gdc_id, analyte_barcode, aliquot_gdc_id, aliquot_barcode) VALUES ('CCLE', 'CCLE-BRCA', '231d16b2-6eca-49cc-a9bc-d8fb186c5092', 'HCC1954BL', 'e164dc68-1036-482a-afba-26a065887dc5', 'CCLE-HCC1954BL', '13', 'EBV Immortalized Normal', NULL, NULL, 'd14fa76d-aae0-43ce-8e49-a2527d1daa28', 'NA', '10cbb0c6-8cdf-4b1d-9052-ec7760493b03', 'NA', '5ae2cd92-5c42-416b-b929-ef14ad790ba0', 'CCLE-HCC1954BL-DNA-08'), ('CCLE', 'CCLE-BRCA', '6539fc58-2a40-4fce-bf97-77e7c68de054', 'HCC1954 BL', '8adba193-c791-4965-968e-5a2fdb9ad0cf', 'CCLE-HCC1954 BL', '13', 'EBV Immortalized Normal', NULL, NULL, 'd292fc17-8675-4dff-9f79-09239ebc4a2d', 'NA', 'f65a7abe-d633-4ee0-9af4-e706df820c0b', 'NA', 'dca997df-caf5-4b29-ba64-b5a234c35a4d', 'CCLE-HCC1954 BL-DNA-08'), ('CCLE', 'CCLE-BRCA', 'b8bb856e-c4a8-46a6-a6f0-01ea7cd53270', 'HCC1143 BL', '7144d6f9-6b36-4754-b762-877863ce5fcf', 'CCLE-HCC1143 BL', '13', 'EBV Immortalized Normal', NULL, NULL, '8b8e4ff2-46e8-4641-ab41-780ef6311ae2', 'NA', '11eface0-d70e-413c-bcb1-cc9ec75160be', 'NA', '862cca10-210a-4361-ac94-7a4f2f17714d', 'CCLE-HCC1143 BL-DNA-08'), ('CCLE', 'CCLE-BRCA', 'f83f1878-bdc7-4bb6-a414-87bbf87e1a31', 'HCC1143BL', 'c832fa0e-d3fb-478a-baec-30a21dd6c934', 'CCLE-HCC1143BL', '13', 'EBV Immortalized Normal', NULL, NULL, '3cfb8c80-bec8-4e78-b794-7d0ba55262fd', 'NA', 'dad0a0d6-6216-44de-b21a-d0979f9a6f7e', 'NA', '772177bb-0685-4cc3-8e4e-85fba2997a98', 'CCLE-HCC1143BL-DNA-08'), ('FM', 'FM-AD', '0014362c-6687-4462-b8a2-8a0002823f7a', 'AD10697', 'f7a221b9-387b-4c8e-9f01-84368abdc798', 'AD10697_sample', NULL, 'Tumor', NULL, NULL, '11294383-7c7c-4acc-a481-746580c2786f', 'NA', '4876f606-dade-4623-9201-6d82b78194de', 'NA', 'd18cf35b-4938-408f-8fd3-cf4883d4d5cc', 'AD10697_aliquot');