Skip to content

Instantly share code, notes, and snippets.

@crazyhottommy
Forked from tiagochst/maf_legacy.R
Created February 22, 2017 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crazyhottommy/c9336e4d43005cbdef4e4c0038a340ba to your computer and use it in GitHub Desktop.
Save crazyhottommy/c9336e4d43005cbdef4e4c0038a340ba 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))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment