Name

Microarray::DatasetImageMaker - Creates an image from a microarray dataset

Abstract

Microarray::DatasetImageMaker is a class that accepts a Microarray::Dataset object and produces the images based on the meta data contained in the dataset object. It is meant to separate the image production code into something a little more manageable.

Usage

  $imageMaker = Microarray::DatasetImageMaker(dataset=>$dataSetObj);

where $dataset is an CdtDataset object class or another concrete Dataset class.

Future Plans

This class should definitely be augmented to make images based on the various tree files

Instance Constructor

new

my $imageMaker = Microarray::DatasetImageMaker->new();

Instance Methods

imageType

returns the suffix for the image type being used for a newly constructed dataset

makeImage

This method actually results in an image being made.

Usage:

    $imageMaker->makeImage('dataset' => $self,
                           'type'    => 'matrix');
    $imageMaker->makeImage('dataset' => $self,
                           'type'    => 'header'); 

Protected Methods

_dataset

returns the dataset object used to initialize the imageMaker, if any

_contrast

returns contrast used initialize the imageMaker, either belonging to the dataset or other optional argument

_name

returns file base name of the dataset used initialize the imageMaker, either belonging to the dataset or other optional argument

_imagePath

returns image outpath of the dataset used initialize the imageMaker, either belonging to the dataset or other optional argument

_dataPath

returns data outpath of the dataset used initialize the imageMaker, either belonging to the dataset or other optional argument

_height

returns height of the dataset used initialize the imageMaker, either belonging to the dataset or other optional argument

_width

returns width used initialize the imageMaker, either belonging to the dataset or other optional argument

_colorscheme

returns colorscheme used initialize the imageMaker, either belonging to the dataset or other optional argument

Authors

John C. Matese jcmatese@genome.stanford.edu