-
-
Save crazyhottommy/c9336e4d43005cbdef4e4c0038a340ba to your computer and use it in GitHub Desktop.
Get MAF files aligned against hg19
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
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