-- DBMS: bigquery
CREATE TABLE `isb-cgc-bq.PDC_metadata.studies_current`
(
  study_name STRING OPTIONS(description="Name of the study (e.g. Pediatric Brain Cancer Pilot Study - Phosphoproteome)"),
  study_submitter_id STRING OPTIONS(description="Unique identifier deriving from the data submitter used for the study (e.g. S046-1-CompRef)"),
  submitter_id_name STRING OPTIONS(description="Name of the study as described by the data submitter"),
  pdc_study_id STRING OPTIONS(description="PDC study identifier (e.g. PDC000239)"),
  study_id STRING OPTIONS(description="An identifier (UUID) to uniquely identify the file in PDC (e.g. 58be6cbb-f1f7-11e9-9a07-0a80fada099c)"),
  study_friendly_name STRING OPTIONS(description="Component of study-level BigQuery table friendly names (e.g. CPTAC2-RETROSPECTIVE TCGA OVARIAN JHU PROTEOME); defined by ISB-CGC"),
  study_grouping_name STRING OPTIONS(description="Name used to associate PDC studies within a project that share cases; defined by ISB-CGC"),
  analytical_fraction STRING OPTIONS(description="Type of peptide or protein enrichment"),
  disease_type STRING OPTIONS(description="The text term used to describe the type of malignant disease, as categorized by the World Health Organization's (WHO) International Classification of Diseases for Oncology (ICD-O)"),
  primary_site STRING OPTIONS(description="The text term used to describe the general location of the malignant disease, as categorized by the World Health Organization's (WHO) International Classification of Diseases for Oncology (ICD-O)"),
  acquisition_type STRING OPTIONS(description="The modes of acquisition used in the LC-MS/MS experiments: data dependent acquisition (DDA), data independent acquisition (DIA)"),
  experiment_type STRING OPTIONS(description="General strategy used for differential analysis"),
  project_id STRING OPTIONS(description="PDC project UUID (e.g. edb4ca56-f1e8-11e9-9a07-0a80fada099c)"),
  project_submitter_id STRING OPTIONS(description="Unique identifier deriving from the data submitter that is associated with a specific project (e.g. CPTAC3-Discovery)"),
  project_name STRING OPTIONS(description="Project name (e.g. CPTAC-2)"),
  project_short_name STRING OPTIONS(description="Project name abbreviation (e.g. pediatric_brain_cancer)"),
  project_friendly_name STRING OPTIONS(description="Component of project-level BigQuery table friendly names (e.g. PEDIATRIC BRAIN CANCER)"),
  program_id STRING OPTIONS(description="PDC program UUID (e.g. c3408b38-f1e8-11e9-9a07-0a80fada099c)"),
  program_submitter_id STRING OPTIONS(description="Unique identifier deriving from the data submitter that is associated with a specific program (e.g. Clinical Proteomic Tumor Analysis Consortium)"),
  program_name STRING OPTIONS(description="Name of the data's source program"),
  program_short_name STRING OPTIONS(description="Program name abbreviation (e.g. CPTAC)"),
  program_manager STRING OPTIONS(description="Name of the program manager from the sponsoring agency"),
  program_labels STRING OPTIONS(description="BigQuery table 'program' label value(s), used for 'Program' filter in ISB-CGC BigQuery Table Search"),
  start_date DATE OPTIONS(description="Start date of the program"),
  end_date STRING OPTIONS(description="End date of the program")
)
OPTIONS(
  friendly_name="STUDIES FOR PDC",
  description="Study 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.studies_current` (study_name, study_submitter_id, submitter_id_name, pdc_study_id, study_id, study_friendly_name, study_grouping_name, analytical_fraction, disease_type, primary_site, acquisition_type, experiment_type, project_id, project_submitter_id, project_name, project_short_name, project_friendly_name, program_id, program_submitter_id, program_name, program_short_name, program_manager, program_labels, start_date, end_date) VALUES ('CPTAC GBM Discovery Study - Metabolome', 'CPTAC GBM Discovery Study - Metabolome', 'CPTAC GBM Discovery Study - Metabolome', 'PDC000552', '1bdf1be7-52c5-4991-aece-1642fdfc90e5', 'CPTAC GLIOBLASTOMA MULTIFORME (GBM) DISCOVERY STUDY METABOLOME', 'CPTAC GBM Discovery Study', 'Metabolome', 'Glioblastoma;Other', 'Brain', NULL, 'Label Free', '267d6671-0e78-11e9-a064-0a9c39d33490', 'CPTAC3 Discovery and Confirmatory', 'CPTAC3 Discovery and Confirmatory', 'CPTAC3_discovery_and_confirmatory', 'CPTAC3-DISCOVERY-AND-CONFIRMATORY', '10251935-5540-11e8-b664-00a098d917f8', 'Clinical Proteomic Tumor Analysis Consortium', 'Clinical Proteomic Tumor Analysis Consortium', 'CPTAC', 'null null', 'cptac3', '2018-06-29', NULL), ('CPTAC CCRCC Confirmatory Study - Validation - Metabolome', 'CPTAC CCRCC Confirmatory Study - Validation - Metabolome', 'CPTAC CCRCC Confirmatory Study - Validation - Metabolome', 'PDC000535', '46603cb0-4a12-4f58-b618-85ac7eae61aa', 'CPTAC CLEAR CELL RENAL CELL CARCINOMA (CCRCC) CONFIRMATORY STUDY VALIDATION METABOLOME', 'CPTAC CCRCC Confirmatory Study - Validation', 'Metabolome', 'Clear Cell Renal Cell Carcinoma', 'Kidney', NULL, 'Label Free', '267d6671-0e78-11e9-a064-0a9c39d33490', 'CPTAC3 Discovery and Confirmatory', 'CPTAC3 Discovery and Confirmatory', 'CPTAC3_discovery_and_confirmatory', 'CPTAC3-DISCOVERY-AND-CONFIRMATORY', '10251935-5540-11e8-b664-00a098d917f8', 'Clinical Proteomic Tumor Analysis Consortium', 'Clinical Proteomic Tumor Analysis Consortium', 'CPTAC', 'null null', 'cptac3', '2018-06-29', NULL), ('CPTAC CCRCC Confirmatory Study - Training - Metabolome', 'CPTAC CCRCC Confirmatory Study - Training - Metabolome', 'CPTAC CCRCC Confirmatory Study - Training - Metabolome', 'PDC000534', '7d40ea67-752b-4842-8252-0ef594c47617', 'CPTAC CLEAR CELL RENAL CELL CARCINOMA (CCRCC) CONFIRMATORY STUDY TRAINING METABOLOME', 'CPTAC CCRCC Confirmatory Study - Training', 'Metabolome', 'Clear Cell Renal Cell Carcinoma;Non-Clear Cell Renal Cell Carcinoma;Other', 'Kidney', NULL, 'Label Free', '267d6671-0e78-11e9-a064-0a9c39d33490', 'CPTAC3 Discovery and Confirmatory', 'CPTAC3 Discovery and Confirmatory', 'CPTAC3_discovery_and_confirmatory', 'CPTAC3-DISCOVERY-AND-CONFIRMATORY', '10251935-5540-11e8-b664-00a098d917f8', 'Clinical Proteomic Tumor Analysis Consortium', 'Clinical Proteomic Tumor Analysis Consortium', 'CPTAC', 'null null', 'cptac3', '2018-06-29', NULL), ('CPTAC non-ccRCC Study - Metabolome', 'CPTAC non-ccRCC Study - Metabolome', 'CPTAC non-ccRCC Study - Metabolome', 'PDC000544', 'b0588afc-3c83-4998-bb19-642f4ef9da83', 'CPTAC NON-CLEAR CELL RENAL CELL CARCINOMA (NON-CCRCC) STUDY METABOLOME', 'CPTAC non-ccRCC Study', 'Metabolome', 'Non-Clear Cell Renal Cell Carcinoma;Other', 'Kidney', NULL, 'Label Free', '267d6671-0e78-11e9-a064-0a9c39d33490', 'CPTAC3 Discovery and Confirmatory', 'CPTAC3 Discovery and Confirmatory', 'CPTAC3_discovery_and_confirmatory', 'CPTAC3-DISCOVERY-AND-CONFIRMATORY', '10251935-5540-11e8-b664-00a098d917f8', 'Clinical Proteomic Tumor Analysis Consortium', 'Clinical Proteomic Tumor Analysis Consortium', 'CPTAC', 'null null', 'cptac3', '2018-06-29', NULL), ('CPTAC GBM Confirmatory Study - Metabolome', 'CPTAC GBM Confirmatory Study - Metabolome', 'CPTAC GBM Confirmatory Study - Metabolome', 'PDC000546', 'b6169484-8f03-4b1c-9e75-e15a731e24f7', 'CPTAC GLIOBLASTOMA MULTIFORME (GBM) CONFIRMATORY STUDY METABOLOME', 'CPTAC GBM Confirmatory Study', 'Metabolome', 'Breast Invasive Carcinoma;Glioblastoma;Gliomas;Lung Adenocarcinoma;Meningiomas;Other', 'Brain;Breast;Bronchus and lung', NULL, 'Label Free', '267d6671-0e78-11e9-a064-0a9c39d33490', 'CPTAC3 Discovery and Confirmatory', 'CPTAC3 Discovery and Confirmatory', 'CPTAC3_discovery_and_confirmatory', 'CPTAC3-DISCOVERY-AND-CONFIRMATORY', '10251935-5540-11e8-b664-00a098d917f8', 'Clinical Proteomic Tumor Analysis Consortium', 'Clinical Proteomic Tumor Analysis Consortium', 'CPTAC', 'null null', 'cptac3', '2018-06-29', NULL);