Skip to content

Instantly share code, notes, and snippets.

@tiagochst
Created February 22, 2017 03:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tiagochst/03f5a11aa45d67940d65c8dd9bc90a70 to your computer and use it in GitHub Desktop.
Save tiagochst/03f5a11aa45d67940d65c8dd9bc90a70 to your computer and use it in GitHub Desktop.
Get MAF files aligned against hg19
query.maf.hg19 <- GDCquery(project = "TCGA-COAD",
data.category = "Simple nucleotide variation",
data.type = "Simple somatic mutation",
access = "open",
legacy = TRUE)
# Check maf availables
knitr::kable(getResults(query.maf.hg19)[,c("created_datetime","file_name")])
query.maf.hg19 <- GDCquery(project = "TCGA-COAD",
data.category = "Simple nucleotide variation",
data.type = "Simple somatic mutation",
access = "open",
file.type = "gsc_COAD_pairs.aggregated.capture.tcga.uuid.automated.somatic.maf",
legacy = TRUE)
GDCdownload(query.maf.hg19)
coad.mutect.maf <- GDCprepare(query.maf.hg19)
library(dplyr)
coad.mutect.maf %>% summarise(n_distinct(Tumor_Sample_Barcode))
coad.mutect.maf %>% filter(Hugo_Symbol == "KRAS") %>% summarise(n_distinct(Tumor_Sample_Barcode))
@tiagochst
Copy link
Author

captura de tela 2017-02-22 as 00 06 53

@crazyhottommy
Copy link

indeed, the old hg19 has more KRAS mutations.
Thanks for looking into this.

Tommy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment