-- DBMS: bigquery
CREATE TABLE `isb-cgc-bq.CPTAC.per_sample_file_metadata_CPTAC3_discovery_and_confirmatory_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="CPTAC3-DISCOVERY-AND-CONFIRMATORY PER SAMPLE FILE METADATA FOR PDC",
  description="Per-sample file data was extracted from file metadata information for CPTAC3_discovery_and_confirmatory 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", "cptac3"), ("category", "metadata"), ("status", "current"), ("version", "v4_3")]
);

INSERT INTO `isb-cgc-bq.CPTAC.per_sample_file_metadata_CPTAC3_discovery_and_confirmatory_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 ('fa384240-a0a6-48b3-b36e-9798b9081192', 'bef66096-682b-4cb6-8e55-3fc4876904e3', 'P93', '09ae374d-af2c-4346-8135-8aab0dec97c9', 'P93', NULL, 'CPTAC3_discovery_and_confirmatory', 'CPTAC3 Discovery and Confirmatory', 'CPTAC', 'Clinical Proteomic Tumor Analysis Consortium', 'Raw Mass Spectra', 'Label Free', 'Proprietary', 70583840, 'vendor-specific', 'Q Exactive Plus', 'P93_Neg.raw', 's3://pdcdatastore/raw-files/124/201/P93_Neg.raw', 'open'), ('bb36db04-a447-4398-9732-72303a545adb', 'bef66096-682b-4cb6-8e55-3fc4876904e3', 'P93', '09ae374d-af2c-4346-8135-8aab0dec97c9', 'P93', NULL, 'CPTAC3_discovery_and_confirmatory', 'CPTAC3 Discovery and Confirmatory', 'CPTAC', 'Clinical Proteomic Tumor Analysis Consortium', 'Raw Mass Spectra', 'Label Free', 'Proprietary', 106211575, 'vendor-specific', 'Q Exactive Plus', 'P93_Pos.raw', 's3://pdcdatastore/raw-files/124/201/P93_Pos.raw', 'open'), ('2de517f0-85b2-4df9-a0d8-26062ada0f80', 'bef66096-682b-4cb6-8e55-3fc4876904e3', 'P93', '09ae374d-af2c-4346-8135-8aab0dec97c9', 'P93', NULL, 'CPTAC3_discovery_and_confirmatory', 'CPTAC3 Discovery and Confirmatory', 'CPTAC', 'Clinical Proteomic Tumor Analysis Consortium', 'Raw Mass Spectra', 'Label Free', 'Proprietary', 71767017, 'vendor-specific', 'Q Exactive Plus', 'P93_2_Neg.raw', 's3://pdcdatastore/raw-files/124/201/P93_2_Neg.raw', 'open'), ('c4691726-7b83-4216-8529-b9a0c560e948', 'bef66096-682b-4cb6-8e55-3fc4876904e3', 'P93', '09ae374d-af2c-4346-8135-8aab0dec97c9', 'P93', NULL, 'CPTAC3_discovery_and_confirmatory', 'CPTAC3 Discovery and Confirmatory', 'CPTAC', 'Clinical Proteomic Tumor Analysis Consortium', 'Raw Mass Spectra', 'Label Free', 'Proprietary', 108010036, 'vendor-specific', 'Q Exactive Plus', 'P93_2_Pos.raw', 's3://pdcdatastore/raw-files/124/201/P93_2_Pos.raw', 'open'), ('2c0f0b9b-f4ca-464b-9fa7-937e3b92e2f2', 'bef66096-682b-4cb6-8e55-3fc4876904e3', 'P93', '09ae374d-af2c-4346-8135-8aab0dec97c9', 'P93', NULL, 'CPTAC3_discovery_and_confirmatory', 'CPTAC3 Discovery and Confirmatory', 'CPTAC', 'Clinical Proteomic Tumor Analysis Consortium', 'Raw Mass Spectra', 'Label Free', 'Proprietary', 70330381, 'vendor-specific', 'Q Exactive Plus', 'P93_Training_Neg.raw', 's3://pdcdatastore/raw-files/124/201/P93_Training_Neg.raw', 'open');