-- DBMS: bigquery
CREATE TABLE `isb-cgc-bq.PDC_metadata.file_metadata_current`
(
  file_id STRING OPTIONS(description="An identifier (UUID) to uniquely identify the file in PDC (e.g. 795dd383-5efd-484b-9c2f-f061ae617fc7)"),
  file_name STRING OPTIONS(description="Name of file in PDC"),
  pdc_study_ids STRING OPTIONS(description="PDC study identifier (e.g. PDC000239); in cases where file exists in multiple studies, study ids are semicolon delimited (e.g. PDC000126;PDC000127)"),
  study_run_metadata_id STRING OPTIONS(description="An identifier (UUID) to uniquely identify the group the files generated in a single experimental run in PDC (e.g. f2c5c6bf-f40d-11e8-a44b-0a9c39d33490)"),
  study_run_metadata_submitter_id STRING OPTIONS(description="An identifier provided by the submitter to identify the group the files generated in a single experimental run (e.g. SRM25730263-1)"),
  file_format STRING OPTIONS(description="File format of the underlying data (eg BCR XML, BAM)"),
  file_type STRING OPTIONS(description="File type (e.g. aligned_reads, simple_somatic_mutation, gene_expression)"),
  data_category STRING OPTIONS(description="Category description of the underlying data (e.g. Clinical, Raw Sequencing Data, Simple Nucleotide Variation, Transcriptome Profiling)"),
  file_size INT64 OPTIONS(description="The size of the file measured in bytes"),
  fraction_number STRING OPTIONS(description="Number of fractions in the experimental run"),
  experiment_type STRING OPTIONS(description="General strategy used for differential analysis"),
  plex_or_dataset_name STRING OPTIONS(description="Plex or dataset name (e.g. 04CPTAC_P93P94Compref_Proteome_BI_20180916)"),
  analyte STRING OPTIONS(description="Type of peptide or protein enrichment"),
  instrument STRING OPTIONS(description="Make and model of the mass spectrometry instrument"),
  md5sum STRING OPTIONS(description="Md5sum for PDC data file"),
  `access` STRING OPTIONS(description="Data accessibility policy (open or controlled)")
)
OPTIONS(
  friendly_name="FILE METADATA FOR PDC",
  description="Data was extracted from file metadata information provided by CDA in August 2024 from the PDC release V4.3.",
  labels=[("access", "open"), ("data_type", "file_metadata"), ("source_0", "cda"), ("source_1", "pdc"), ("category", "metadata"), ("status", "current"), ("version", "v4_3")]
);

INSERT INTO `isb-cgc-bq.PDC_metadata.file_metadata_current` (file_id, file_name, pdc_study_ids, study_run_metadata_id, study_run_metadata_submitter_id, file_format, file_type, data_category, file_size, fraction_number, experiment_type, plex_or_dataset_name, analyte, instrument, md5sum, access) VALUES ('9bfb76fe-5461-4c71-a32f-3d5d7972a553', '01CPTAC_OVprospective_W_JHUZ_20161209_QE_f01.psm', 'PDC000110', '80849d5b-1e09-4327-92b0-b72f65d9dd0e', '01CPTAC_OVprospective_Proteome_JHU_20161209', 'TSV', 'Text', 'Peptide Spectral Matches', 2949540, '1', 'TMT10', '01CPTAC_OVprospective_Proteome_JHU_20161209', 'Proteome', 'Q Exactive', '5c221b5878e54ca15e2234cbedad8a1c', 'open'), ('18818ad6-69cf-4d71-8717-b356f3feab9b', '01CPTAC_OVprospective_W_JHUZ_20161209_QE_f02.psm', 'PDC000110', '80849d5b-1e09-4327-92b0-b72f65d9dd0e', '01CPTAC_OVprospective_Proteome_JHU_20161209', 'TSV', 'Text', 'Peptide Spectral Matches', 2811986, '2', 'TMT10', '01CPTAC_OVprospective_Proteome_JHU_20161209', 'Proteome', 'Q Exactive', 'bfcded7220b978e7795f8eeaabb24109', 'open'), ('6bb41a92-4e4b-47b3-bffb-5c28e674fcc5', '01CPTAC_OVprospective_W_JHUZ_20161209_QE_f03.psm', 'PDC000110', '80849d5b-1e09-4327-92b0-b72f65d9dd0e', '01CPTAC_OVprospective_Proteome_JHU_20161209', 'TSV', 'Text', 'Peptide Spectral Matches', 2807199, '3', 'TMT10', '01CPTAC_OVprospective_Proteome_JHU_20161209', 'Proteome', 'Q Exactive', 'c1d5fe943cb69adb17be4ca089a2e070', 'open'), ('674eb17f-430e-4339-ae76-2649209b16fa', '01CPTAC_OVprospective_W_JHUZ_20161209_QE_f04.psm', 'PDC000110', '80849d5b-1e09-4327-92b0-b72f65d9dd0e', '01CPTAC_OVprospective_Proteome_JHU_20161209', 'TSV', 'Text', 'Peptide Spectral Matches', 2715642, '4', 'TMT10', '01CPTAC_OVprospective_Proteome_JHU_20161209', 'Proteome', 'Q Exactive', 'cb026c8aaff80aacd7e0997f96dcc106', 'open'), ('b68820a1-2985-4539-a141-254f29656c54', '01CPTAC_OVprospective_W_JHUZ_20161209_QE_f05.psm', 'PDC000110', '80849d5b-1e09-4327-92b0-b72f65d9dd0e', '01CPTAC_OVprospective_Proteome_JHU_20161209', 'TSV', 'Text', 'Peptide Spectral Matches', 2825650, '5', 'TMT10', '01CPTAC_OVprospective_Proteome_JHU_20161209', 'Proteome', 'Q Exactive', 'c9d1ab6131cb13bd54e86a08c5ab156a', 'open');