Description Usage Arguments Value Examples
create a GRanges from the MC3 mutation data
1 2 3 4 5 6 |
bq |
bigrquery BigQueryConnection instance |
basicfilt |
a dplyr::filter instance or NULL to convert entire MAF |
maxnrec |
numeric(1) used with dplyr::as.data.frame en route to GRanges |
a GRanges instance
1 2 3 4 5 6 7 8 9 10 11 | if (interactive()) {
con = try(pancan_BQ()) # need CGC_BILLING set
if (!inherits(con, "try-error")) {
aut = as.character(1:22) # some records in BQ have missing Chromosome
chk = mc3toGR(con, basicfilt=function(data) dplyr::filter(data,
project_short_name=="TCGA-BRCA",
SYMBOL=="TP53", Chromosome %in% aut))
print(chk[,1:5]) # lots of mcol fields
table(chk$Variant_Classification)
}
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.