-- DBMS: bigquery
CREATE TABLE `isb-cgc-bq.PDC_metadata.gene_info_current`
(
  gene_id STRING OPTIONS(description="Unique gene identifier assigned by PDC"),
  NCBI_gene_id STRING OPTIONS(description="NCBI gene identifier"),
  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"),
  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"),
  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_symbol STRING OPTIONS(description="Gene symbol, sourced by PDC from NCBI"),
  gene_description STRING OPTIONS(description="Description of the gene, 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")
)
OPTIONS(
  friendly_name="GENE MAPPING FOR PDC",
  description="Data was extracted from getPaginatedGenes API endpoint in PDC data release V3.4, downloaded August 2023.",
  labels=[("access", "open"), ("source", "pdc"), ("category", "reference_database"), ("data_type_1", "proteome_annotation"), ("data_type_0", "genome_annotation"), ("status", "current"), ("version", "v3_4")]
);

INSERT INTO `isb-cgc-bq.PDC_metadata.gene_info_current` (gene_id, NCBI_gene_id, organism, chromosome, locus, proteins, assays, authority, authority_gene_id, gene_symbol, gene_description, uniprotkb_id, uniprotkb_ids) VALUES ('de4a26bd-1b57-11e9-b7f8-0a80fada099c', '23318', 'Homo sapiens', NULL, '1p32.3', 'A0A0C4DFM7;E9PJN7;E9PKX1;E9PKY2;E9PQS7;E9PRG2;H0YDJ1;H0YEE8;NP_001009881.1;NP_056084.1;Q5TAX3;Q5TAX3-2;X6R5G7;XP_005270733.1;XP_005270735.1;XP_005270736.1;XP_005270737.1;XP_005270738.1;XP_005270739.1;XP_005270740.1;XP_006710561.1;XP_006710562.1;XP_006710563.1;XP_011539399.1;XP_011539400.1;XP_011539401.1;XP_011539402.1;XP_011539403.1;XP_016856292.1;XP_016856293.1;XP_016856294.1;XP_016856295.1;XP_016856296.1;XP_016856297.1;XP_016856298.1;XP_016856299.1;XP_016856300.1;XP_016856301.1;XP_016856302.1;XP_016856303.1;XP_016856304.1;XP_016856305.1;XP_016856306.1;XP_016856307.1', NULL, 'HGNC', '28981', 'TUT4', '1', 'Q5TAX3', 'A0A0C4DFM7;E9PJN7;E9PKX1;E9PKY2;E9PQS7;E9PRG2;H0YDJ1;H0YEE8;Q5TAX3;X6R5G7'), ('f6bc5992-1b56-11e9-b7f8-0a80fada099c', '70599', 'Mus musculus', NULL, '2|2 C3', 'A2AQD5;A2AQD6;NP_542125.3;Q922B9;Q922B9-2;Q922B9-3;XP_006500228.1', NULL, NULL, NULL, 'Itprid2', '2', 'Q922B9', 'A2AQD5;A2AQD6;Q922B9'), ('879da873-1b57-11e9-b7f8-0a80fada099c', '4253', 'Homo sapiens', NULL, '14q21.1', 'G3V3C4;G3V4M1;G3V599;G3V5K6;NP_001234917.1;NP_001234918.1;NP_001234919.1;NP_001316143.1;NP_001341066.1;NP_001341067.1;NP_001341068.1;NP_001341069.1;NP_001341070.1;NP_001341071.1;NP_001341072.1;NP_001341073.1;NP_001341074.1;NP_001341075.1;NP_001341076.1;NP_001341077.1;NP_001341078.1;NP_001341079.1;NP_001341080.1;NP_001341081.1;NP_001341082.1;NP_001341083.1;NP_001341084.1;NP_001341085.1;NP_001341086.1;NP_005921.2;NP_473365.3;NP_976229.1;NP_976230.1;NP_976231.1;O15320;O15320-10;O15320-2;O15320-3;O15320-4;O15320-5;O15320-6;O15320-7;O15320-8;O15320-9;Q96PC5;Q96PC5-2;XP_011535080.1;XP_011535087.1;XP_016876803.1;XP_016876804.1;XP_016876805.1;XP_016876806.1;XP_016876807.1;XP_016876808.1;XP_016876812.1;XP_016876813.1;XP_016876816.1;XP_016876819.1;XP_024305360.1;XP_024305361.1;XP_024305362.1;XP_024305363.1;XP_024305364.1;XP_024305365.1;XP_024305366.1', NULL, 'HGNC', '18432', 'MIA2', '14', 'Q96PC5', 'G3V3C4;G3V4M1;G3V599;G3V5K6;O15320;Q96PC5'), ('83fdb757-1b57-11e9-b7f8-0a80fada099c', '3990', 'Homo sapiens', NULL, '15q21.3', 'E7EUJ1;E7EUK6;NP_000227.2;P11150;XP_005254429.1;XP_005254431.2;XP_006720565.1;XP_016877665.1;XP_024305684.1;XP_024305685.1', NULL, 'HGNC', '6619', 'LIPC', '15', 'P11150', 'E7EUJ1;E7EUK6;P11150'), ('e0951c7f-1b57-11e9-b7f8-0a80fada099c', '79670', 'Homo sapiens', NULL, '9q21.33', 'A0A0C4DFW3;NP_001171988.1;NP_001172003.1;NP_001317647.1;NP_078893.2;Q5VYS8;Q5VYS8-2;Q5VYS8-3;Q5VYS8-4;Q5VYS8-5;Q5VYS8-6;Q5VYS9;Q5VYT0;X6R3Q3;XP_005252264.1;XP_005252265.1;XP_006717346.1;XP_011517313.1;XP_011517314.1;XP_011517315.1;XP_011517316.1;XP_011517317.1;XP_011517318.1;XP_016870619.1;XP_016870620.1;XP_024303439.1;XP_024303440.1', NULL, 'HGNC', '25817', 'TUT7', '9', 'Q5VYS8', 'A0A0C4DFW3;Q5VYS8;Q5VYS9;Q5VYT0;X6R3Q3');