Created
April 30, 2024 16:48
-
-
Save lfy79001/18e52888fb7d8d5bf31b093d8767d848 to your computer and use it in GitHub Desktop.
This file contains 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 | |
case_list.case_barcode AS case_barcode, | |
case_list.Variant_Type AS Variant_Type, | |
clinical.demo__gender, | |
clinical.demo__vital_status, | |
clinical.demo__days_to_death | |
FROM | |
/* this will get the unique list of cases having the TP53 gene mutation in BRCA cases*/ | |
( SELECT | |
mutation.case_barcode, | |
mutation.Variant_Type | |
FROM | |
isb-cgc-bq.TCGA_versioned.somatic_mutation_hg19_DCC_2017_02 AS mutation | |
WHERE | |
mutation.Hugo_Symbol = 'CDKN2A' | |
AND project_short_name = 'TCGA-BLCA' | |
GROUP BY | |
mutation.case_barcode, | |
mutation.Variant_Type | |
ORDER BY | |
mutation.case_barcode | |
) AS case_list /* end case_list */ | |
JOIN | |
isb-cgc-bq.TCGA.clinical_gdc_current AS clinical | |
ON | |
case_list.case_barcode = clinical.submitter_id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment