Skip to content

Instantly share code, notes, and snippets.

@lfy79001
Created May 28, 2024 03:54
Show Gist options
  • Save lfy79001/bf2715267b32569254c4de7647869c2a to your computer and use it in GitHub Desktop.
Save lfy79001/bf2715267b32569254c4de7647869c2a to your computer and use it in GitHub Desktop.
SELECT
c.case_id,
c.exp__years_smoked,
r.fpkm_unstranded
FROM
`isb-cgc-bq.TCGA_versioned.clinical_gdc_r37` AS c
JOIN
`isb-cgc-bq.TCGA_versioned.RNAseq_hg38_gdc_r35` AS r
ON
c.case_id = r.case_gdc_id
WHERE
proj__project_id IN ('TCGA-LUSC',
'TCGA-LUAD',
'TCGA-HNSC')
AND exp__years_smoked IS NOT NULL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment