-- DBMS: bigquery
CREATE TABLE `isb-cgc-bq.CPTAC.per_sample_file_metadata_CPTAC_2_pdc_current`
(
  file_id STRING OPTIONS(description="An identifier (UUID) to uniquely identify the file in PDC (e.g. 795dd383-5efd-484b-9c2f-f061ae617fc7)"),
  case_id STRING OPTIONS(description="Unique identifier associated with a specific patient (e.g. 24cb0fcb-63d6-11e8-bcf1-0a2705229b82)"),
  case_submitter_id STRING OPTIONS(description="Unique identifier deriving from the data submitter that is associated with a specific patient (e.g. 05BR016)"),
  sample_id STRING OPTIONS(description="Unique PDC identifier for this sample (e.g. e8d83eb9-693a-11ea-b1fd-0aad30af8a83)"),
  sample_submitter_id STRING OPTIONS(description="Unique identifier deriving from the data submitter that is associated with a specific sample (e.g. Tumor Pat1)"),
  sample_type STRING OPTIONS(description="Text term to describe the source of a biospecimen used for a laboratory test"),
  project_short_name STRING OPTIONS(description="Project name abbreviation (e.g. pediatric_brain_cancer)"),
  project_submitter_id STRING OPTIONS(description="Unique identifier deriving from the data submitter that is associated with a specific project (e.g. CPTAC3-Discovery)"),
  program_short_name STRING OPTIONS(description="Program name abbreviation (e.g. CPTAC)"),
  program_name STRING OPTIONS(description="Name of the data's source program"),
  data_category STRING OPTIONS(description="Category description of the underlying data (e.g. Clinical, Raw Sequencing Data, Simple Nucleotide Variation, Transcriptome Profiling)"),
  experiment_type STRING OPTIONS(description="General strategy used for differential analysis"),
  file_type STRING OPTIONS(description="File type (e.g. aligned_reads, simple_somatic_mutation, gene_expression)"),
  file_size INT64 OPTIONS(description="The size of the file measured in bytes"),
  file_format STRING OPTIONS(description="File format of the underlying data (eg BCR XML, BAM)"),
  instrument STRING OPTIONS(description="Make and model of the mass spectrometry instrument"),
  file_name STRING OPTIONS(description="Name of file in PDC"),
  file_location STRING OPTIONS(description="Physical location of the file on the server"),
  `access` STRING OPTIONS(description="Data accessibility policy (open or controlled)")
)
OPTIONS(
  friendly_name="CPTAC2 PER SAMPLE FILE METADATA FOR PDC",
  description="Per-sample file data was extracted from file metadata information for CPTAC_2 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"), ("program", "cptac2"), ("category", "metadata"), ("status", "current"), ("version", "v4_3")]
);

INSERT INTO `isb-cgc-bq.CPTAC.per_sample_file_metadata_CPTAC_2_pdc_current` (file_id, case_id, case_submitter_id, sample_id, sample_submitter_id, sample_type, project_short_name, project_submitter_id, program_short_name, program_name, data_category, experiment_type, file_type, file_size, file_format, instrument, file_name, file_location, access) VALUES ('81cc9799-4899-4423-a29a-ac35bfb6ebde', 'b9178503-63d6-11e8-bcf1-0a2705229b82', '11CO077', '0051bce7-641d-11e8-bcf1-0a2705229b82', '5557e478-3e6f-475b-8acc-1b4159', 'Primary Tumor', 'CPTAC_2', 'CPTAC-2', 'CPTAC', 'Clinical Proteomic Tumor Analysis Consortium', 'Raw Mass Spectra', 'TMT10', 'Proprietary', 1723203334, 'vendor-specific', 'Exactive Plus', '06CPTAC_COprospective_W_PNNL_20170123_B2S2_f01.raw', 's3://pdcdatastore/raw-files/10/11/06CPTAC_COprospective_W_PNNL_20170123_B2S2_f01.raw', 'open'), ('fa0904b7-4d2c-465c-91bb-4a9eac8171d8', 'b9178503-63d6-11e8-bcf1-0a2705229b82', '11CO077', '0051bce7-641d-11e8-bcf1-0a2705229b82', '5557e478-3e6f-475b-8acc-1b4159', 'Primary Tumor', 'CPTAC_2', 'CPTAC-2', 'CPTAC', 'Clinical Proteomic Tumor Analysis Consortium', 'Raw Mass Spectra', 'TMT10', 'Proprietary', 1677249610, 'vendor-specific', 'Exactive Plus', '06CPTAC_COprospective_W_PNNL_20170123_B2S2_f02.raw', 's3://pdcdatastore/raw-files/10/11/06CPTAC_COprospective_W_PNNL_20170123_B2S2_f02.raw', 'open'), ('62410145-50d8-4ed9-a662-dc8ec8231598', 'b9178503-63d6-11e8-bcf1-0a2705229b82', '11CO077', '0051bce7-641d-11e8-bcf1-0a2705229b82', '5557e478-3e6f-475b-8acc-1b4159', 'Primary Tumor', 'CPTAC_2', 'CPTAC-2', 'CPTAC', 'Clinical Proteomic Tumor Analysis Consortium', 'Raw Mass Spectra', 'TMT10', 'Proprietary', 1710553471, 'vendor-specific', 'Exactive Plus', '06CPTAC_COprospective_W_PNNL_20170123_B2S2_f03.raw', 's3://pdcdatastore/raw-files/10/11/06CPTAC_COprospective_W_PNNL_20170123_B2S2_f03.raw', 'open'), ('3a264adc-ba0f-481b-8cf4-6acb52ba0c23', 'b9178503-63d6-11e8-bcf1-0a2705229b82', '11CO077', '0051bce7-641d-11e8-bcf1-0a2705229b82', '5557e478-3e6f-475b-8acc-1b4159', 'Primary Tumor', 'CPTAC_2', 'CPTAC-2', 'CPTAC', 'Clinical Proteomic Tumor Analysis Consortium', 'Raw Mass Spectra', 'TMT10', 'Proprietary', 1754518943, 'vendor-specific', 'Exactive Plus', '06CPTAC_COprospective_W_PNNL_20170123_B2S2_f04.raw', 's3://pdcdatastore/raw-files/10/11/06CPTAC_COprospective_W_PNNL_20170123_B2S2_f04.raw', 'open'), ('d5b007a0-0350-416d-a7c4-8ad005d9e2ad', 'b9178503-63d6-11e8-bcf1-0a2705229b82', '11CO077', '0051bce7-641d-11e8-bcf1-0a2705229b82', '5557e478-3e6f-475b-8acc-1b4159', 'Primary Tumor', 'CPTAC_2', 'CPTAC-2', 'CPTAC', 'Clinical Proteomic Tumor Analysis Consortium', 'Raw Mass Spectra', 'TMT10', 'Proprietary', 1725735208, 'vendor-specific', 'Exactive Plus', '06CPTAC_COprospective_W_PNNL_20170123_B2S2_f05.raw', 's3://pdcdatastore/raw-files/10/11/06CPTAC_COprospective_W_PNNL_20170123_B2S2_f05.raw', 'open');