plots a gene track for a specified region

bb_plotGenes(
  chrom,
  params = NULL,
  assembly = "hg19",
  chromstart = NULL,
  chromend = NULL,
  fontcolors = c("#2929ff", "#ff3434"),
  strandcolors = c("#8a8aff", "#ff7e7e"),
  geneOrder = NULL,
  geneHighlights = NULL,
  geneBackground = "grey",
  stroke = 0.1,
  fontsize = 8,
  strandLabels = TRUE,
  x = NULL,
  y = NULL,
  width = NULL,
  height = unit(0.6, "inches"),
  just = c("left", "top"),
  default.units = "inches",
  draw = TRUE
)

Arguments

chrom

chromsome of region to be plotted

params

an optional "bb_params" object space containing relevant function parameters

assembly

desired genome assembly

chromstart

start position

chromend

end position

fontcolors

a vector indicating the font colors for the plus strand and minus strand gene labels

strandcolors

a vector indicating the strand colors for the plus strand and minus strand

geneOrder

an ordered vector of gene names to prioritize labeling

geneHighlights

a two-column dataframe with gene names to highlight and their corresponding highlight color

geneBackground

if geneHighlights is given, background color for genes that are not highlighted

stroke

numerical value indicating the stroke width for gene body outlines

fontsize

the size of gene label text (in points)

strandLabels

A logical value indicating whether to include +/- strand labels

x

A numeric or unit object specifying x-location

y

A numeric or unit object specifying y-location

width

A numeric or unit object specifying width

height

A numeric or unit object specifying height

just

string or numeric vector specifying the justification of the viewport relative to its (x, y) location: "left", "right", "centre", "center", "bottom", "top"

default.units

A string indicating the default units to use if x, y, width, or height are only given as numerics

draw

A logical value indicating whether graphics output should be produced

Value

Function will plot a gene track and return a bb_genes object