-- DBMS: bigquery
CREATE TABLE `isb-cgc-bq.CPTAC.quant_proteome_CPTAC_PDA_discovery_study_pdc_current`
(
  case_id STRING OPTIONS(description="Unique identifier associated with a specific patient (e.g. 24cb0fcb-63d6-11e8-bcf1-0a2705229b82)"),
  sample_id STRING OPTIONS(description="Unique PDC identifier for this sample (e.g. e8d83eb9-693a-11ea-b1fd-0aad30af8a83)"),
  aliquot_id STRING OPTIONS(description="Unique PDC identifier for this aliquot (e.g. e8db124a-693a-11ea-b1fd-0aad30af8a83)"),
  aliquot_submitter_id STRING OPTIONS(description="Aliquot submitter id assigned by program (e.g. T14)"),
  aliquot_run_metadata_id STRING OPTIONS(description="Uniquely identifies the aliquot by how it was used in the experiment (based on the labelling reagent and/or biological replicate)"),
  study_name STRING OPTIONS(description="Name of the study (e.g. Pediatric Brain Cancer Pilot Study - Phosphoproteome)"),
  protein_abundance_log2ratio FLOAT64 OPTIONS(description="Average log-ratio of sample reporter-ion to common reference of peptide ions associated with the gene in acquisitions from a specific biological sample"),
  gene_id STRING OPTIONS(description="Unique gene identifier assigned by PDC"),
  gene_symbol STRING OPTIONS(description="Gene symbol, sourced by PDC from NCBI"),
  NCBI_gene_id STRING OPTIONS(description="NCBI gene identifier"),
  authority STRING OPTIONS(description="Designating authority for the gene id"),
  authority_gene_id STRING OPTIONS(description="Unique identifier assigned by authority (e.g. HGNC)"),
  gene_description STRING OPTIONS(description="Description of the gene, sourced by PDC from NCBI"),
  organism STRING OPTIONS(description="Gene organism, sourced by PDC from NCBI"),
  chromosome STRING OPTIONS(description="NCBI gene chromosome"),
  locus STRING OPTIONS(description="Gene cytoband, sourced by PDC from NCBI"),
  uniprotkb_id STRING OPTIONS(description="Oldest UniProt id found in 'proteins' column list, derived programmatically"),
  uniprotkb_ids STRING OPTIONS(description="Every UniProt id found in 'proteins' column list"),
  proteins STRING OPTIONS(description="Semi-colon separated list of protein accessions associated with the gene; includes identifiers from multiple sources (e.g. UniProt, NCBI RefSeq database)"),
  assays STRING OPTIONS(description="CPTAC Assay accessions for the peptides associated with the gene")
)
OPTIONS(
  friendly_name="CPTAC3-DISCOVERY PANCREATIC DUCTAL ADENOCARCINOMA (PDA) PROTEOME",
  description="Normalized log2ratio protein abundance estimates for the CPTAC PDA Discovery Study - Proteome study (PDC Study ID: PDC000270) was extracted using PDC API V2.16 in February 2023. These data are part of the CPTAC project. More information on the pipeline and the results generated by it can be found here: https://pdc.cancer.gov/data-dictionary/harmonization.html",
  labels=[("access", "open"), ("data_type", "protein_expression"), ("source", "pdc"), ("program", "cptac3"), ("category", "processed_-omics_data"), ("status", "current"), ("version", "v2_16")]
);

INSERT INTO `isb-cgc-bq.CPTAC.quant_proteome_CPTAC_PDA_discovery_study_pdc_current` (case_id, sample_id, aliquot_id, aliquot_submitter_id, aliquot_run_metadata_id, study_name, protein_abundance_log2ratio, gene_id, gene_symbol, NCBI_gene_id, authority, authority_gene_id, gene_description, organism, chromosome, locus, uniprotkb_id, uniprotkb_ids, proteins, assays) VALUES ('4a4e4119-73e6-468a-8e6b-05acf4c1b7f5', '05ce4fb2-dcb8-4046-9638-cb1c3be6ff75', 'b09f0386-30fa-4cd2-9564-2269d9680e0a', 'CPT0094030003', '391a53c2-9dc5-421c-9992-7a2e0bbeefd2', 'CPTAC PDA Discovery Study - Proteome', 6.2537, 'f727e28b-b814-11e8-907f-0a2705229b82', 'ATP6', '4508', 'HGNC', '7414', 'ATP synthase F0 subunit 6', 'Homo sapiens', 'MT', '-', 'P00846', 'P00846', 'P00846;YP_003024031.1', NULL), ('e3cf305c-f83f-474a-a095-542970bbf3c8', '4284e578-2b03-4f9f-86a6-b05fb12856a9', 'c3c6ec78-6ec0-4f27-aed8-62dcb3cb548b', 'CPT0162780004', 'ff1e366a-599b-4835-beb3-b7113fdf4f39', 'CPTAC PDA Discovery Study - Proteome', 0.6383, 'f727e28b-b814-11e8-907f-0a2705229b82', 'ATP6', '4508', 'HGNC', '7414', 'ATP synthase F0 subunit 6', 'Homo sapiens', 'MT', '-', 'P00846', 'P00846', 'P00846;YP_003024031.1', NULL), ('b11be1d7-8f96-4d28-b965-7ee2891291c6', '11794efb-6548-4a4e-b33a-f33bb30f05da', 'cf5fe7fa-2e5f-40db-a76a-b2e6c28ecfff', 'CPT0221470005', 'c73f5b3b-2955-4701-9b7f-2f92d0585bf6', 'CPTAC PDA Discovery Study - Proteome', 0.2272, 'f727e28b-b814-11e8-907f-0a2705229b82', 'ATP6', '4508', 'HGNC', '7414', 'ATP synthase F0 subunit 6', 'Homo sapiens', 'MT', '-', 'P00846', 'P00846', 'P00846;YP_003024031.1', NULL), ('58b42d9e-bba2-4a1f-9066-77586c0d6eb9', '05653bbc-db7b-44e1-9a21-712596295bb0', 'fefd7317-5797-4fc0-9ae0-3547cfd5d885', 'CPT0207980005', 'c88204e6-0e91-4cc3-a169-fbf35ece9bd0', 'CPTAC PDA Discovery Study - Proteome', -0.4519, 'f727e28b-b814-11e8-907f-0a2705229b82', 'ATP6', '4508', 'HGNC', '7414', 'ATP synthase F0 subunit 6', 'Homo sapiens', 'MT', '-', 'P00846', 'P00846', 'P00846;YP_003024031.1', NULL), ('33f484e3-9bf2-4985-8999-567e3022ac15', '13fb00e9-64ee-425d-8297-c8844561c886', '81169283-21e3-4dc7-9d1a-70889cdd6e03', 'CPT0246990003', 'ae2e7026-a9f3-42f0-b99b-a947b1b2b45b', 'CPTAC PDA Discovery Study - Proteome', -0.0403, 'f727e28b-b814-11e8-907f-0a2705229b82', 'ATP6', '4508', 'HGNC', '7414', 'ATP synthase F0 subunit 6', 'Homo sapiens', 'MT', '-', 'P00846', 'P00846', 'P00846;YP_003024031.1', NULL);