Registry Software:PERL Modules:PlateImage.pm

PlateImage.pm

Perl library module that manages plate images. These images include pelleted colony growth, antibiotic resistance test plates, and any other image of a 96- or 384-well plate. The images themselves are stored in the directory /web-site/www/plate_images/ as .png files. Information about each image is held in the bbdb database table plate_images. PlateImage.pm supports a plate_image object which represents one plate image. A .cgi page plate_image.cgi is provided to upload and manage a plate image.

plate_image object variables and methods:

  • id - unique number of the image
  • plate - the plate object associated with this image
  • plate_size - number of wells in the plate
  • type - the type of image (growth, antibiotic, other)
  • format - format of the image (upright, 45degrees, other)
  • type_parameter - antibiotic code A, T, C, K, AC, AK, etc.
  • user - user who entered the image
  • since - the datetime that the image was uploaded to the server, or the date entered by the user
  • barcode - barcode of the plate associated with this image
  • comment - comment
  • Plate_Image->new($id) - returns a PlateImage object ( or ' ' ) with the given id.
  • Plate_Image->new_from_plate_type($plate, 'antibiotic', 'A') - returns the PlateImage object ( or ' ') corresponding to that plate, image type, and antibiotic.
  • html_display - returns the HTML string to display this image in a div. If given ' ' instead of a plate image, it displays a no image method.


A variety of class methods are available for uploading these images, displaying them, and manipulating them.

  • Plate_Image->image_list($plate) - returns a Perl list of plate image files, sorted.
  • Plate_Image->html_upload_image($plate) - returns the HTML for a plate image upload page for the given plate


  • Image formatting code is available to reformat a plate image. For example, it is possible to

use a user interface to rotate a plate image, crop it, and resize it.


Javascript code is available to display the wells of a plate as divs with overflow hidden for each well. This code is called with the plate file name and plate_size.