-- DBMS: bigquery
CREATE TABLE `isb-cgc-bq.CPTAC.per_sample_file_metadata_hg38_gdc_current`
(
  file_gdc_id STRING OPTIONS(description="Unique GDC identifier for this file (corresponds to the file_barcode)--this can be used to access more information from the GDC data portal like this: https://portal.gdc.cancer.gov/files/c21b332c-06c6-4403-9032-f91c8f407ba4"),
  case_gdc_id STRING OPTIONS(description="GDC unique identifier"),
  case_barcode STRING OPTIONS(description="Submitter identifier, e.g. HCC1954, TCGA-ZX-AA5X, etc."),
  sample_gdc_id STRING OPTIONS(description="Unique GDC identifier for this sample (corresponds to the sample_barcode), e.g. a1ec9279-c1a6-4e58-97ed-9ec1f36187c5--this can be used to access more information from the GDC data portal"),
  sample_barcode STRING OPTIONS(description="Original/submitter sample ID"),
  sample_type_name STRING OPTIONS(description="The longer name of the sample type, e.g. Primary Tumor, Recurrent Tumor, etc."),
  project_short_name STRING OPTIONS(description="Project name abbreviation; the program name appended with a project name abbreviation, eg. TCGA-OV, etc."),
  project_short_name_suffix STRING OPTIONS(description="The code representing a project within a program. For some programs, this can be a disease code."),
  program_name STRING OPTIONS(description="Program name, e.g. TCGA or TARGET"),
  data_type STRING OPTIONS(description="Experimental source of the data type, e.g. Tissue slide image, RNA-Seq"),
  data_category STRING OPTIONS(description="Category description of the underlying data, e.g. Clinical, Raw Sequencing Data, Simple Nucleotide Variation, Transcriptome Profiling, etc."),
  experimental_strategy STRING OPTIONS(description="Experimental strategy used to generate data (where applicable) e.g. WXS, RNA-Seq"),
  file_type STRING OPTIONS(description="File type--e.g. aligned_reads, simple_somatic_mutation, gene_expression, etc."),
  file_size INT64 OPTIONS(description="The size of the file measured in bytes"),
  data_format STRING OPTIONS(description="File format of the underlying data, e.g. BCR XML, BAM"),
  platform STRING OPTIONS(description="Platform used to generate this data, e.g. Illumina, Affymetrix SNP 6.10"),
  file_name_key STRING OPTIONS(description="GDC path to original bam or vcf file"),
  index_file_id STRING OPTIONS(description="BAM or VCF index file GDC file UUID"),
  index_file_name_key STRING OPTIONS(description="GDC path to original vcf or bam index file"),
  index_file_size INT64 OPTIONS(description="Where available, size of the index file in bytes"),
  `access` STRING OPTIONS(description="Data accessibility policy (open or controlled)"),
  acl STRING OPTIONS(description="Access Control List--if access is controlled, this field contains the dbGaP accession, e.g. phs000179")
)
OPTIONS(
  friendly_name="CPTAC hg38 PER SAMPLE FILE METADATA",
  description="Data was extracted from file metadata information for CPTAC provided by CDA in April 2024 from the GDC release 40.\nMore details: https://docs.gdc.cancer.gov/Data/Release_Notes/Data_Release_Notes/#data-release-400",
  labels=[("access", "open"), ("program_0", "cptac2"), ("program_1", "cptac3"), ("data_type", "file_metadata"), ("source_0", "cda"), ("reference_genome_0", "hg38"), ("source_1", "gdc"), ("category", "metadata"), ("status", "current"), ("version", "r40")]
);

INSERT INTO `isb-cgc-bq.CPTAC.per_sample_file_metadata_hg38_gdc_current` (file_gdc_id, case_gdc_id, case_barcode, sample_gdc_id, sample_barcode, sample_type_name, project_short_name, project_short_name_suffix, program_name, data_type, data_category, experimental_strategy, file_type, file_size, data_format, platform, file_name_key, index_file_id, index_file_name_key, index_file_size, access, acl) VALUES ('bb4126d8-1c68-4309-820e-8b8c2520688c', '67e289f3-5395-4f2c-b1d2-344bd988b92a', 'C3L-00359', 'a4cf3b69-af22-4f69-8746-5337591a61f7', 'C3L-00359-01', 'Primary Tumor', 'CPTAC-3', '3', 'CPTAC', 'Single Cell Analysis', 'Transcriptome Profiling', 'scRNA-Seq', 'secondary_expression_analysis', 5605008, 'TSV', NULL, '[''https://api.gdc.cancer.gov/data/bb4126d8-1c68-4309-820e-8b8c2520688c'', ''s3://gdc-cptac-phs001287-2-open/bb4126d8-1c68-4309-820e-8b8c2520688c/seurat.analysis.tsv'', ''gs://gdc-cptac-phs001287-open/bb4126d8-1c68-4309-820e-8b8c2520688c/seurat.analysis.tsv'']', NULL, NULL, NULL, 'open', 'open'), ('0c2441e0-6622-4ffd-bc44-bfbf0cbf33c9', '67e289f3-5395-4f2c-b1d2-344bd988b92a', 'C3L-00359', 'a4cf3b69-af22-4f69-8746-5337591a61f7', 'C3L-00359-01', 'Primary Tumor', 'CPTAC-3', '3', 'CPTAC', 'Differential Gene Expression', 'Transcriptome Profiling', 'scRNA-Seq', 'secondary_expression_analysis', 926309, 'TSV', NULL, '[''https://api.gdc.cancer.gov/data/0c2441e0-6622-4ffd-bc44-bfbf0cbf33c9'', ''s3://gdc-cptac-phs001287-2-open/0c2441e0-6622-4ffd-bc44-bfbf0cbf33c9/seurat.deg.tsv'', ''gs://gdc-cptac-phs001287-open/0c2441e0-6622-4ffd-bc44-bfbf0cbf33c9/seurat.deg.tsv'']', NULL, NULL, NULL, 'open', 'open'), ('18022782-fedc-4f43-9900-e636649b1f09', '67e289f3-5395-4f2c-b1d2-344bd988b92a', 'C3L-00359', 'a4cf3b69-af22-4f69-8746-5337591a61f7', 'C3L-00359-01', 'Primary Tumor', 'CPTAC-3', '3', 'CPTAC', 'Single Cell Analysis', 'Transcriptome Profiling', 'scRNA-Seq', 'secondary_expression_analysis', 178446075, 'HDF5', NULL, '[''https://api.gdc.cancer.gov/data/18022782-fedc-4f43-9900-e636649b1f09'', ''s3://gdc-cptac-phs001287-2-open/18022782-fedc-4f43-9900-e636649b1f09/bdb8f13a-e621-46fa-8537-57e5347eb480.seurat.1000x1000.loom'', ''gs://gdc-cptac-phs001287-open/18022782-fedc-4f43-9900-e636649b1f09/bdb8f13a-e621-46fa-8537-57e5347eb480.seurat.1000x1000.loom'']', NULL, NULL, NULL, 'open', 'open'), ('0fa50788-e27c-4f9c-a1a8-be2e8686c000', '12246e82-cb5f-4b7e-a6bd-a120e000db49', 'C3L-00606', '197adde4-d1e8-48fd-b7af-4a72c4f33145', 'C3L-00606-01', 'Primary Tumor', 'CPTAC-3', '3', 'CPTAC', 'Single Cell Analysis', 'Transcriptome Profiling', 'scRNA-Seq', 'secondary_expression_analysis', 84856745, 'HDF5', NULL, '[''https://api.gdc.cancer.gov/data/0fa50788-e27c-4f9c-a1a8-be2e8686c000'', ''s3://gdc-cptac-phs001287-2-open/0fa50788-e27c-4f9c-a1a8-be2e8686c000/ea35f03e-2102-458a-849c-2ab2013545ca.seurat.1000x1000.loom'', ''gs://gdc-cptac-phs001287-open/0fa50788-e27c-4f9c-a1a8-be2e8686c000/ea35f03e-2102-458a-849c-2ab2013545ca.seurat.1000x1000.loom'']', NULL, NULL, NULL, 'open', 'open'), ('76ecc49d-60b7-4f43-a005-7a31be92bbfe', '12246e82-cb5f-4b7e-a6bd-a120e000db49', 'C3L-00606', '197adde4-d1e8-48fd-b7af-4a72c4f33145', 'C3L-00606-01', 'Primary Tumor', 'CPTAC-3', '3', 'CPTAC', 'Differential Gene Expression', 'Transcriptome Profiling', 'scRNA-Seq', 'secondary_expression_analysis', 609617, 'TSV', NULL, '[''https://api.gdc.cancer.gov/data/76ecc49d-60b7-4f43-a005-7a31be92bbfe'', ''s3://gdc-cptac-phs001287-2-open/76ecc49d-60b7-4f43-a005-7a31be92bbfe/seurat.deg.tsv'', ''gs://gdc-cptac-phs001287-open/76ecc49d-60b7-4f43-a005-7a31be92bbfe/seurat.deg.tsv'']', NULL, NULL, NULL, 'open', 'open');