Description Usage Arguments Details Value Author(s)
View source: R/HLP_genelabels_plot.R
Determine gene layers for plotting of genes in regional plot without overlap
1 2 3 4 5 6 7 8 9 10 11 | determineNonOverlapGenelayers(
gr,
ystart = 0,
ysize = 1,
minDistance = 0.1,
gene_name_column = NULL,
prot_domain_column = NULL,
scale.factor = 1,
units = "user",
sortGeneStart = FALSE
)
|
gr |
GRanges object containing gene coordinates. |
ystart |
numeric start y-coordinate for first layer. |
ysize |
numeric added to each new layer. |
minDistance |
numeric minimum distance for two genes to be considered as non-overlapping.
If |
gene_name_column |
character giving column name of gene names in |
prot_domain_column |
character giving column name in |
scale.factor |
numeric scale factor as used in |
units |
character indicating units for |
sortGeneStart |
logical. If TRUE, gene levels are sorted according to minimum start coordinate. Useful to keep free space for legend in a plot. |
This is a help function for regional plots. For a given set of genes, the functions determines separate layers necessary to plot the genes without overlapping.
GRanges object with column ypos
added to meta data.
Frank Ruehle
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.