Plot module

Plot contents

class Plot.BoxPlot(probe_list, samples, filename='boxplot', imgtype='png')[source]

Box plot class creates a BoxPlot figure from probes and groups.

Parameters:
  • probe_list – A list of probes.
  • samples – A list of groups.
  • filename – output filename.
  • imgtype – output image format.
Returns:

writes an image onto disk.

class Plot.BoxPlotGroups(probe_list, group1, group2, filename='boxplot', imgtype='png')[source]

Box plot class creates a BoxPlot figure from Grouped groups.

Parameters:
  • probe_list – A list of probes.
  • groups – A list of groups.
  • filename – output filename.
  • imgtype – output image format.
Returns:

writes an image onto disk.

class Plot.Heatmap(samples, probes, file_name, properties=<Plot.Properties instance>)[source]

This class creates a heatmap object

Parameters:
  • probes – A list of probes.
  • samples – A list of groups.
  • file_name – output filename.
  • properties – An instance of Properties class [optional].
Returns:

writes a PNG image onto disk.

static block(ctx, x, y, size, intensity, nan=False)[source]

Create a single block. Used by Heatmap class.

Parameters:
  • ctx – cairo context
  • x – x-coordinate
  • y – y-coordinate
  • size – block size
  • intensity – color intensity
  • nan – null value
Returns:

Draws a block

class Plot.Properties(size=20, xoff=20, yoff=100)[source]

Defines the style of Heatmap plots

size defines the block size. xoff defines x offset. yoff defines y offset.