Description Usage Arguments Details Value Author(s)
plot_region
reads p-value data e.g. from association analysis and prepares a regional plot of a given chromosomal region of interest.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | plot_region(
region,
region_ext = 50000,
title = NULL,
data = list(),
lines_pvalue_threshold = NULL,
variant2highlight = "centered",
EFFECT2highlight = c(green = "splice", red = "miss", red = "frame", red =
"start|stop"),
recombination.rate = NULL,
biomaRt,
hgnc.symbols.only = TRUE,
LNCipedia = NULL,
gene.color.coding = c(lightgreen = "pseudogene", brown = "snRNA", forestgreen =
"ncRNA|antisense", orange = "miRNA", darkblue = "protein_coding"),
numberOfRowsForGenePlotting = "auto",
plot.protein.domains = NULL,
cex.plot = 1.1,
cex.legend = 1,
gene.scale.factor = 2
)
|
region |
Character with region of interest of form |
region_ext |
numeric with region size extension in bp to plot. Half of the extension is added
to both sides of the given |
title |
character with title to be used in plot. |
data |
named list of dataframes containing p-vales to be plotted. Required columns of each
data frame are |
lines_pvalue_threshold |
named character with p-values to be plotted as threshold lines.
Line color is given by vector names (e.g. |
variant2highlight |
character vector with variants to be highlighted as filled symbols. For this, an additionally
column |
EFFECT2highlight |
named character vector with regular expressions (name = color, value = regexp)
in order of priority low to high. Regular expressions is case insensitive.
If an |
recombination.rate |
character with path to file or to folder containing recombination rates to be plotted.
Alternatively, a dataframe object can be supplied. Omitted if |
biomaRt |
biomaRt object to be used for gene annotation. If |
hgnc.symbols.only |
logical. If |
LNCipedia |
character with path to LNCipedia bed file to plot lncRNA genes. Omitted if |
gene.color.coding |
named character vector with regular expressions for gene biotype color coding
(name = color, value = regexp) in order of priority low to high, i.e. if multiple biotypes available per gene,
the last biotype in the vector is used. Regular expressions are case insensitive.
|
numberOfRowsForGenePlotting |
numeric number of rows used for plotting genes. If |
plot.protein.domains |
named character vector with file path to protein domain annotation data for a selected gene (Omitted if
|
cex.plot |
numeric character extension plot axes. |
cex.legend |
numeric character extension plot legends. |
gene.scale.factor |
numeric extension factor used for gene and exon plotting. |
Up to 5 dataframes can be committed in data
and are plotted in one diagram.
If functional information for variants is available, respective variants which fulfill the
regular expression in EFFECT2highlight
are highlighted by color. Additionally, variants
given in variant2highlight
are highlighted by filled symbols, text annotation and vertical lines
(e.g. for the leading SNP of interest).
If given, recombination rates for that region are added to the plot using a separate y-axis.
Gene information for the specified region is downloaded from biomaRt and/or LNCipedia and is plotted
beneath the diagram. Genes can be selected to include corresponding protein domain data for plotting.
Modified graphical parameters are resetted at the end of the function.
Nevertheless, this function can not be used par(mfrow())
for multiple plots.
no value returned. Figure is plotted in the current graphics device.
Frank Ruehle
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.