-- DBMS: bigquery
CREATE TABLE `isb-cgc.GDC_metadata.rel23_fileData_active`
(
  dbName STRING OPTIONS(description="Referring to the default/main database at the GDC. In this table, this field is always current."),
  file_gdc_id STRING OPTIONS(description="Unique GDC identifier for this file (corresponds to the file_barcode)  --  this can be used to access more information from the GDC data portal like this: https://portal.gdc.cancer.gov/files/c21b332c-06c6-4403-9032-f91c8f407ba4"),
  `access` STRING OPTIONS(description="Data accessibility policy (open or controlled)"),
  acl STRING OPTIONS(description="Access Control List -- if access is controlled, this field contains the dbGaP accession, eg phs000179"),
  analysis_input_file_gdc_ids STRING OPTIONS(description="GDC file UUIDs for input file(s)"),
  analysis_workflow_link STRING OPTIONS(description="Link to GDC workflow on github"),
  analysis_workflow_type STRING OPTIONS(description="Workflow name eg  STAR 2-Pass  "),
  archive_gdc_id STRING OPTIONS(description="GDC archive UUID"),
  archive_revision INT64 OPTIONS(description="Archive revision number"),
  archive_state STRING OPTIONS(description="Archive state"),
  archive_submitter_id STRING OPTIONS(description="Original archive submitter name, eg  nationwidechildrens.org_BRCA.bio.Level_1.56"),
  associated_entities__case_gdc_id STRING OPTIONS(description="GDC case uuid for associated case(s)"),
  associated_entities__entity_gdc_id STRING OPTIONS(description="GDC entity uuid for associated entity(ies)"),
  associated_entities__entity_submitter_id STRING OPTIONS(description="Submitter id for associated entity(ies)"),
  associated_entities__entity_type STRING OPTIONS(description="Associated entity type, eg   aliquot   or   case  "),
  case_gdc_id STRING OPTIONS(description="GDC unique identifier"),
  project_dbgap_accession_number STRING OPTIONS(description="Program dbGaP accession number, eg phs000188"),
  project_disease_type STRING OPTIONS(description="The type of disease studied by the project; eg. Sarcoma,  Breast Invasive Carcinoma,Acute Lymphoblastic Leukemia, etc"),
  project_name STRING OPTIONS(description="Project Name; frequently the same as or similar to the project disease type eg   Acute Lymphoblastic Leukemia - Phase II   or   Breast Invasive Carcinoma   etc"),
  program_dbgap_accession_number STRING OPTIONS(description="Program dbGaP accession number, eg phs000178"),
  program_name STRING OPTIONS(description="Program name, eg TCGA or TARGET"),
  project_short_name STRING OPTIONS(description="Project name abbreviation; the program name appended with a project name abbreviation; eg. TCGA-OV, etc."),
  created_datetime STRING OPTIONS(description="Timestamp of creation, eg 2016-10-27T21:58:12.297090-05:10"),
  data_category STRING OPTIONS(description="Category description of the underlying data, eg Clinical, Raw Sequencing Data, Simple Nucleotide Variation, Transcriptome Profiling  , etc"),
  data_format STRING OPTIONS(description="File format of the underlying data, eg BCR XML, BAM"),
  data_type STRING OPTIONS(description="Experimental source of the data type, eg Tissue slide image, RNA-Seq"),
  downstream_analyses__output_file_gdc_ids STRING OPTIONS(description="Semicolon-separated list of GDC file UUIDs"),
  downstream_analyses__workflow_link STRING OPTIONS(description="Name of GDC workflow, eg VarScan2 Annotation (if applicable, NULL where no information is available)"),
  downstream_analyses__workflow_type STRING OPTIONS(description="Name of GDC workflow, eg VarScan2 Annotation (if applicable, NULL where no information is available)"),
  experimental_strategy STRING OPTIONS(description="Experimental strategy used to generate data (where applicable) e.g. WXS, RNA-Seq"),
  file_name STRING OPTIONS(description="Name of file at the GDC"),
  file_size INT64 OPTIONS(description="The size of the file measured in bytes"),
  file_id STRING OPTIONS(description="GDC file identifier. This is a duplicate of file_gdc_id field found in some tables. "),
  index_file_gdc_id STRING OPTIONS(description="Where available, GDC file uuid for index file "),
  index_file_name STRING OPTIONS(description="Where available, GDC file name for index file "),
  index_file_size INT64 OPTIONS(description="Where available, size of the index file in bytes "),
  md5sum STRING OPTIONS(description="Md5sum for GDC data file"),
  platform STRING OPTIONS(description="Platform used to generate this data, eg  Illumina  , or  Affymetrix SNP 6.10"),
  file_state STRING OPTIONS(description="File state -- either live or submitted"),
  file_submitter_id STRING OPTIONS(description="Original submitter file id (eg CGHub analysis_id)"),
  file_type STRING OPTIONS(description="File Type  -- eg aligned_reads, simple_somatic_mutation, gene_expression, etc"),
  updated_datetime STRING OPTIONS(description="Timestamp of latest update, eg 2017-03-04T16:37:26.081298-06:00")
)
OPTIONS(
  friendly_name="FILE DATA ACTIVE REL23",
  description="Data was generated from file metadata information from the GDC active archive release 23, downloaded April 2020. \nMore details: https://docs.gdc.cancer.gov/Data/Release_Notes/Data_Release_Notes/#data-release-230\nThis table has been deprecated, please see isb-cgc-bq.GDC_case_file_metadata.fileData_active_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.rel23_fileData_active` (dbName, file_gdc_id, access, acl, analysis_input_file_gdc_ids, analysis_workflow_link, analysis_workflow_type, archive_gdc_id, archive_revision, archive_state, archive_submitter_id, associated_entities__case_gdc_id, associated_entities__entity_gdc_id, associated_entities__entity_submitter_id, associated_entities__entity_type, case_gdc_id, project_dbgap_accession_number, project_disease_type, project_name, program_dbgap_accession_number, program_name, project_short_name, created_datetime, data_category, data_format, data_type, downstream_analyses__output_file_gdc_ids, downstream_analyses__workflow_link, downstream_analyses__workflow_type, experimental_strategy, file_name, file_size, file_id, index_file_gdc_id, index_file_name, index_file_size, md5sum, platform, file_state, file_submitter_id, file_type, updated_datetime) VALUES ('active', '53235887-f7e6-4ea1-b755-93c9bb632cb8', 'open', 'open', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '53670f27-e632-4e0e-be58-f5c6a66d967f', '921084c6-d583-44f1-b431-45702557b2e6', 'TCGA-SN-A84X-01A-01-TSA', 'slide', '53670f27-e632-4e0e-be58-f5c6a66d967f', NULL, 'Testicular Germ Cell Tumors', 'Testicular Germ Cell Tumors', 'phs000178', 'TCGA', 'TCGA-TGCT', '2018-02-23T13:11:25.200711-06:00', 'Biospecimen', 'SVS', 'Slide Image', NULL, NULL, NULL, 'Tissue Slide', 'TCGA-SN-A84X-01A-01-TSA.921084C6-D583-44F1-B431-45702557B2E6.svs', 121470295, '53235887-f7e6-4ea1-b755-93c9bb632cb8', NULL, NULL, NULL, 'daaf8f2fcee69b9e0123378edef83262', NULL, 'released', 'TCGA-SN-A84X-01A-01-TSA_slide_image', 'slide_image', '2018-08-23T18:16:07.403609-05:00'), ('active', '90b18f5a-76a9-403b-8b2a-c181bf85f013', 'open', 'open', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2a85e0e7-7829-4637-b2c9-3beb3aeb571e', '7601120a-3053-4b7f-8589-463bd4f9d045', 'TCGA-4K-AA1H-01A-01-TS1', 'slide', '2a85e0e7-7829-4637-b2c9-3beb3aeb571e', NULL, 'Testicular Germ Cell Tumors', 'Testicular Germ Cell Tumors', 'phs000178', 'TCGA', 'TCGA-TGCT', '2018-02-23T13:11:25.200711-06:00', 'Biospecimen', 'SVS', 'Slide Image', NULL, NULL, NULL, 'Tissue Slide', 'TCGA-4K-AA1H-01A-01-TS1.7601120A-3053-4B7F-8589-463BD4F9D045.svs', 263623137, '90b18f5a-76a9-403b-8b2a-c181bf85f013', NULL, NULL, NULL, '6955175e4f9139163d2f4db6203d045b', NULL, 'released', 'TCGA-4K-AA1H-01A-01-TS1_slide_image', 'slide_image', '2018-08-23T18:16:07.403609-05:00'), ('active', 'cc252fd8-af28-4363-b896-aeab3b399a78', 'open', 'open', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'aac5502e-147d-4ff9-9876-d9bffacf3dd0', '4fd25c3a-ca65-409f-93db-9cc21ce0188b', 'TCGA-2G-AAG7-01A-01-TS1', 'slide', 'aac5502e-147d-4ff9-9876-d9bffacf3dd0', NULL, 'Testicular Germ Cell Tumors', 'Testicular Germ Cell Tumors', 'phs000178', 'TCGA', 'TCGA-TGCT', '2018-02-23T13:11:25.200711-06:00', 'Biospecimen', 'SVS', 'Slide Image', NULL, NULL, NULL, 'Tissue Slide', 'TCGA-2G-AAG7-01A-01-TS1.4FD25C3A-CA65-409F-93DB-9CC21CE0188B.svs', 268297053, 'cc252fd8-af28-4363-b896-aeab3b399a78', NULL, NULL, NULL, '23ca487357058c379b01689ce029e33b', NULL, 'released', 'TCGA-2G-AAG7-01A-01-TS1_slide_image', 'slide_image', '2018-08-23T18:16:07.403609-05:00'), ('active', '223041dc-dab2-4e96-bcd8-7b9657a129d9', 'open', 'open', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '4e4e6280-713c-41bf-bf3a-e93c2fa44d59', '2831bc76-608f-4bcc-a248-5b5a70742e31', 'TCGA-YU-A90W-01A-01-TSA', 'slide', '4e4e6280-713c-41bf-bf3a-e93c2fa44d59', NULL, 'Testicular Germ Cell Tumors', 'Testicular Germ Cell Tumors', 'phs000178', 'TCGA', 'TCGA-TGCT', '2018-02-23T13:11:25.200711-06:00', 'Biospecimen', 'SVS', 'Slide Image', NULL, NULL, NULL, 'Tissue Slide', 'TCGA-YU-A90W-01A-01-TSA.2831BC76-608F-4BCC-A248-5B5A70742E31.svs', 351420375, '223041dc-dab2-4e96-bcd8-7b9657a129d9', NULL, NULL, NULL, '8462d6b51b82d53d4104d03abf6bfab0', NULL, 'released', 'TCGA-YU-A90W-01A-01-TSA_slide_image', 'slide_image', '2018-08-23T18:16:07.403609-05:00'), ('active', '2a1b5777-3fe5-41ed-9169-e86454e1c376', 'open', 'open', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'a123784a-0b6b-4f9a-847f-c5a17cb922bb', 'c865272e-81d0-438c-87a4-d5f6b041970b', 'TCGA-2G-AAFM-01A-01-TS1', 'slide', 'a123784a-0b6b-4f9a-847f-c5a17cb922bb', NULL, 'Testicular Germ Cell Tumors', 'Testicular Germ Cell Tumors', 'phs000178', 'TCGA', 'TCGA-TGCT', '2018-02-23T13:11:25.200711-06:00', 'Biospecimen', 'SVS', 'Slide Image', NULL, NULL, NULL, 'Tissue Slide', 'TCGA-2G-AAFM-01A-01-TS1.C865272E-81D0-438C-87A4-D5F6B041970B.svs', 204555465, '2a1b5777-3fe5-41ed-9169-e86454e1c376', NULL, NULL, NULL, '3eb692ae8d712053ece35887ebaf2658', NULL, 'released', 'TCGA-2G-AAFM-01A-01-TS1_slide_image', 'slide_image', '2018-08-23T18:16:07.403609-05:00');