-- DBMS: bigquery
CREATE TABLE `isb-cgc-bq.CPTAC.quant_proteome_CPTAC_CCRCC_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 CLEAR CELL RENAL CELL CARCINOMA (CCRCC) PROTEOME",
  description="Normalized log2ratio protein abundance estimates for the CPTAC CCRCC Discovery Study - Proteome study (PDC Study ID: PDC000127) was extracted using PDC API V2.10 in August 2022. 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_10")]
);

INSERT INTO `isb-cgc-bq.CPTAC.quant_proteome_CPTAC_CCRCC_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 ('caf0e98e-1fb8-11e9-b7f8-0a80fada099c', 'a1a3a269-204c-11e9-b7f8-0a80fada099c', '7e98f5d2-2053-11e9-b7f8-0a80fada099c', 'CPT0007320003', 'ba739d9f-207c-11e9-b7f8-0a80fada099c', 'CPTAC CCRCC Discovery Study - Proteome', -0.216, 'f7b24772-b814-11e8-907f-0a2705229b82', 'COX1', '4512', 'HGNC', '7419', 'cytochrome c oxidase subunit I', 'Homo sapiens', 'MT', '-', 'P00395', 'P00395', 'P00395;YP_003024028.1', NULL), ('bf7ade95-1fb8-11e9-b7f8-0a80fada099c', '89b29b3b-204c-11e9-b7f8-0a80fada099c', '6a6c6e30-2053-11e9-b7f8-0a80fada099c', 'CPT0002370001', '00b60c96-207d-11e9-b7f8-0a80fada099c', 'CPTAC CCRCC Discovery Study - Proteome', 0.3005, 'f7b24772-b814-11e8-907f-0a2705229b82', 'COX1', '4512', 'HGNC', '7419', 'cytochrome c oxidase subunit I', 'Homo sapiens', 'MT', '-', 'P00395', 'P00395', 'P00395;YP_003024028.1', NULL), ('0c06c8bd-1fb9-11e9-b7f8-0a80fada099c', 'e9f56258-204c-11e9-b7f8-0a80fada099c', 'ee7c02f9-2053-11e9-b7f8-0a80fada099c', 'CPT0079380003', '1297c67f-207b-11e9-b7f8-0a80fada099c', 'CPTAC CCRCC Discovery Study - Proteome', -1.9029, 'f7b24772-b814-11e8-907f-0a2705229b82', 'COX1', '4512', 'HGNC', '7419', 'cytochrome c oxidase subunit I', 'Homo sapiens', 'MT', '-', 'P00395', 'P00395', 'P00395;YP_003024028.1', NULL), ('84411cf7-1fb9-11e9-b7f8-0a80fada099c', '705881d9-204d-11e9-b7f8-0a80fada099c', '905f7baa-2053-11e9-b7f8-0a80fada099c', 'CPT0012550003', 'a25cd5c3-207b-11e9-b7f8-0a80fada099c', 'CPTAC CCRCC Discovery Study - Proteome', -1.105, 'f7b24772-b814-11e8-907f-0a2705229b82', 'COX1', '4512', 'HGNC', '7419', 'cytochrome c oxidase subunit I', 'Homo sapiens', 'MT', '-', 'P00395', 'P00395', 'P00395;YP_003024028.1', NULL), ('bddeedd9-1fb8-11e9-b7f8-0a80fada099c', '86641cf5-204c-11e9-b7f8-0a80fada099c', '67fd9d0c-2053-11e9-b7f8-0a80fada099c', 'CPT0002270011', '306e5186-207d-11e9-b7f8-0a80fada099c', 'CPTAC CCRCC Discovery Study - Proteome', 1.102, 'f7b24772-b814-11e8-907f-0a2705229b82', 'COX1', '4512', 'HGNC', '7419', 'cytochrome c oxidase subunit I', 'Homo sapiens', 'MT', '-', 'P00395', 'P00395', 'P00395;YP_003024028.1', NULL);