-- DBMS: bigquery
CREATE TABLE `isb-cgc-bq.pancancer_atlas.Filtered_jhu_usc_edu_PANCAN_HumanMethylation450_betaValue_whitelisted`
(
  ParticipantBarcode STRING OPTIONS(description="TCGA barcode identifier for the study participant, eg TCGA-02-0001"),
  SampleBarcode STRING OPTIONS(description="Barcode of the biospecimen sample, eg TCGA-13-1489-02A"),
  AliquotBarcode STRING OPTIONS(description="TCGA aliquot barcode, eg TCGA-12-1089-01A-01D-0517-28"),
  SampleTypeLetterCode STRING OPTIONS(description="Letter code of the sample type using the TCGA standards, eg TPN, EBV. Full list available at https://gdc.cancer.gov/resources-tcga-users/tcga-code-tables/sample-type-codes"),
  SampleType STRING OPTIONS(description="There are 10 sample types: Blood Derived Normal, Primary solid Tumor, Solid Tissue Normal, Recurrent Solid Tumor, Metastatic, Additional - New Primary, Primary Blood Derived Cancer - Peripheral Blood, Buccal Cell Normal, Additioanal Metastatic, Bone Marrrow Normal"),
  Study STRING OPTIONS(description="TCGA study abbreviation, eg LAML. Full list available at https://gdc.cancer.gov/resources-tcga-users/tcga-code-tables/tcga-study-abbreviations"),
  ID STRING OPTIONS(description="Unique probe identifier (eg cg04676771) from the Illumina Human Methylation array -- please refer to the annotation table (isb-cgc-bq.annotations.methylation_annotation_hg19_illumina_current) for more details about any particular probe"),
  Beta FLOAT64 OPTIONS(description="Normalized DNA methylation beta value (between 0 and 1, where 0 indicates completely un-methylated and 1 indicates fully methylated)")
)
OPTIONS(
  friendly_name="PanCancer Filtered DNA Methylation (450K Only)",
  description="Data extracted from the PanCancer Atlas initiative on the GDC in April 2018. Contains DNA Methylation data generated using Illumina Human Methylation 450k.  \n\nNote: The data was annotated with pertinent TGCA barcodes data, and filtered from the BigQuery table isb-cgc-bq:pancancer_atlas.Original_jhu_usc_edu_PANCAN_HumanMethylation450_betaValue_whitelisted using the PanCancer Atlas whitelist (table Whitelist_ParticipantBarcodes)  \n\nMore details: BigQuery table: isb-cgc-bq:pancancer_atlas.Original_jhu_usc_edu_PANCAN_HumanMethylation450_betaValue_whitelisted \nand https://gdc.cancer.gov/about-data/publications/pancanatlas",
  labels=[("category", "processed_-omics_data"), ("status", "current"), ("access", "open"), ("source_0", "gdc"), ("data_type", "dna_methylation"), ("program", "pancancer_atlas"), ("reference_genome", "hg19"), ("source_1", "literature")]
);

INSERT INTO `isb-cgc-bq.pancancer_atlas.Filtered_jhu_usc_edu_PANCAN_HumanMethylation450_betaValue_whitelisted` (ParticipantBarcode, SampleBarcode, AliquotBarcode, SampleTypeLetterCode, SampleType, Study, ID, Beta) VALUES ('TCGA-06-0221', 'TCGA-06-0221-02A', 'TCGA-06-0221-02A-11D-2004-05', 'TR', 'Recurrent Solid Tumor', 'GBM', 'cg23731184', 0.214408), ('TCGA-06-0152', 'TCGA-06-0152-02A', 'TCGA-06-0152-02A-01D-2004-05', 'TR', 'Recurrent Solid Tumor', 'GBM', 'cg06362729', 0.920151), ('TCGA-06-0152', 'TCGA-06-0152-02A', 'TCGA-06-0152-02A-01D-2004-05', 'TR', 'Recurrent Solid Tumor', 'GBM', 'cg10753101', 0.95802), ('TCGA-06-0210', 'TCGA-06-0210-02A', 'TCGA-06-0210-02A-01D-2004-05', 'TR', 'Recurrent Solid Tumor', 'GBM', 'cg25832529', 0.357678), ('TCGA-14-0736', 'TCGA-14-0736-02A', 'TCGA-14-0736-02A-01D-2004-05', 'TR', 'Recurrent Solid Tumor', 'GBM', 'cg09167779', 0.894181);