g3Lollipop | R Documentation |
Render g3lollipop diagram for the given mutation data
g3Lollipop(
mutation.dat,
gene.symbol,
uniprot.id = NA,
gene.symbol.col = "Hugo_Symbol",
aa.pos.col = "AA_Position",
protein.change.col = c("Protein_Change", "HGVSp_Short"),
factor.col = "Mutation_Class",
plot.options = g3Lollipop.options(),
save.png.btn = TRUE,
save.svg.btn = TRUE,
btn.style = NA,
output.filename = "output"
)
mutation.dat |
Input genomic mutation data frame |
gene.symbol |
HGNC primary gene symbol |
uniprot.id |
UniProt ID, in case that the specified gene symbol links to multiple UniProt entries (isoforms). For example, AKAP7 gene has two isoforms in UniProt, O43687 and Q9P0M2. |
gene.symbol.col |
Column name of Hugo gene symbols (e.g., TP53). Default Hugo_Symbol. |
aa.pos.col |
Column name of the parsed amino-acid change position. Default AA_Position. |
protein.change.col |
Column name of protein change information (e.g., p.K960R, G658S, L14Sfs*15). Default is a list of Protein_Change, HGVSp_Short. |
factor.col |
column of classes in the plot legend. IF |
plot.options |
g3lollipop diagram options in list format. Check
|
save.png.btn |
If add save-as-png button to the diagram. Default
|
save.svg.btn |
If add save-as-svg button to the diagram. Default
|
btn.style |
button style, including browser default button style, and
two built-in styles, blue or gray. Default |
output.filename |
Specify output file name. |
lollipop diagram for the given mutation data. The chart is interactive within either Shiny applications or Rmd documents under the bindings.
# system mutation data
maf.file <- system.file("extdata", "TCGA.BRCA.varscan.somatic.maf.gz", package = "g3viz")
# read in MAF file
mutation.dat <- readMAF(maf.file)
# use built-in chart theme
chart.options <- g3Lollipop.theme(theme.name = "default",
title.text = "PIK3CA gene (default theme)")
# generate chart
g3Lollipop(mutation.dat,
gene.symbol = "PIK3CA",
plot.options = chart.options,
btn.style = "blue",
output.filename = "default_theme")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.