This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WITH | |
| -- first we just extract all of the rows corresponding to mature miR's | |
| d1 AS ( | |
| SELECT | |
| sample_barcode, | |
| aliquot_barcode, | |
| chromosome, | |
| start_pos, | |
| end_pos, | |
| strand, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WITH | |
| t1 AS ( | |
| SELECT | |
| dbName, | |
| file_id AS file_gdc_id, | |
| access, | |
| cases__project__program__name AS program_name, | |
| cases__project__project_id AS project_short_name, | |
| experimental_strategy, | |
| data_category, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WITH | |
| t1 AS ( | |
| SELECT | |
| dbName, | |
| file_id AS file_gdc_id, | |
| access, | |
| cases__project__program__name AS program_name, | |
| cases__project__project_id AS project_short_name, | |
| experimental_strategy, | |
| data_category, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WITH | |
| cases AS ( | |
| SELECT | |
| case_barcode | |
| FROM | |
| `isb-cgc.TCGA_bioclin_v0.Clinical` | |
| WHERE | |
| project_short_name="TCGA-LUSC" | |
| OR project_short_name="TCGA-LUAD" ), | |
| radImg AS ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WITH | |
| -- first we get the 77 samples that passed the QC tests | |
| qcSet AS ( | |
| SELECT | |
| TCGA_case_ID AS case_barcode | |
| FROM | |
| `isb-cgc.hg19_data_previews.TCGA_Breast_SuppTable01` | |
| WHERE | |
| QC_Status="pass" ), | |
| -- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WITH | |
| -- first we get the 77 samples that passed the QC tests | |
| qcSet AS ( | |
| SELECT | |
| TCGA_case_ID AS case_barcode | |
| FROM | |
| `isb-cgc.hg19_data_previews.TCGA_Breast_SuppTable01` | |
| WHERE | |
| QC_Status="pass" ), | |
| -- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WITH | |
| hg38t1 AS ( | |
| SELECT | |
| sample_barcode, | |
| mirna_id AS mirna_name, | |
| LOG(reads_per_million_miRNA_mapped+1,2) AS logRPM | |
| FROM | |
| `isb-cgc.TCGA_hg38_data_v0.miRNAseq_Expression` | |
| WHERE | |
| reads_per_million_miRNA_mapped > 4 ), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WITH | |
| t1 AS ( | |
| SELECT | |
| DISTINCT file_gdc_id | |
| FROM | |
| `isb-cgc.GDC_metadata.rel8_GDCfileID_to_GCSurl` ), | |
| j1 AS ( | |
| SELECT | |
| a.dbName, | |
| a.file_id, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT | |
| dateString, | |
| dayOfYear, | |
| week, | |
| year, | |
| projectID, | |
| productCat, | |
| resourceType, | |
| SUM(cost) AS totCost, | |
| currency, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WITH | |
| -- | |
| -- this initial table collects the case barcodes for all TCGA LAML and | |
| -- TARGET AML cases from the two "Clinical" tables | |
| -- Result: this sub-query returns a table with 1193 rows | |
| t1 AS ( | |
| SELECT | |
| program_name, | |
| case_barcode | |
| FROM |