
Bio::Affymetrix::CDF- parse Affymetrix CDF files

use Bio::Affymetrix::CDF;
# Parse the CDF file
my $cdf=new CDF();
$cdf->parse_from_file("foo.cdf");
# Find some fun facts about this chip type
print $cdf->rows().",".$cdf->cols()."\n";
print $cdf->version()."\n";
# Print out all of the probeset names on this chip type
foreach my $i (@{$chp->probesets}) { print $i->name()."\n"; }

The Affymetrix microarray system produces files in a variety of formats. If this means nothing to you, these modules are probably not for you :). This module parses CDF files. Use this module if you want to find out about the design of an Affymetrix CHP, or you need the object for another one of the modules in this package.
All of the Bio::Affymetrix modules parse a file entirely into memory. You therefore need enough memory to hold these objects. For some applications, parsing as a stream may be more appropriate- hopefully the source to these modules will give enough clues to make this an easy task. This module in particular takes a lot of memory if probe information is also stored (about 150Mb). Memory usage is not too onorous (about 15Mb) if probe level information is omitted.
You fill the object filled with data using the parse_from_filehandle, parse_from_string or parse_from_file routines. You can get/set various statistics using methods on the object.
The key method is probesets. This returns an array of Bio::Affymetrix::CDF::Probeset objects. These contain data about the probesets.

Modules were written with the official Affymetrix documentation, which can be located at http://www.affymetrix.com/support/developer/AffxFileFormats.ZIP
This module can parse the CDF files produced by the Affymetrix software MAS 5 only. This is different from the Bio::Affymetrix::CHP module. These files have QC information in them, which is thrown away.

Writing CDF files as well as reading them. Parsing GCOS v1.2 CDF files. Maybe parse QC information?

Copyright (C) 2004 by Nick James, David J Craigon, NASC, The University of Nottingham
This module is free software. You can copy or redistribute it under the same terms as Perl itself.
Affymetrix is a registered trademark of Affymetrix Inc., Santa Clara, California, USA.

Nick James (nick at arabidopsis.info)
David J Craigon (david at arabidopsis.info)
Nottingham Arabidopsis Stock Centre (http://arabidopsis.info), University of Nottingham.

Arg [0] : none Example : my $cdf=new Bio::Affymetrix::CDF(); Description: constructor for CDF object Returntype : new Bio::Affmetrix::CDF object Exceptions : none Caller : general
Arg [1] : string Example : $cdf->parse_from_string($cdf_file_in_a_string); Description: Parse a CDF file from a buffer in memory Returntype : none Exceptions : none Caller : general
Arg [1] : string Example : $cdf->parse_from_file($cdf_filename); Description: Parse a CDF file from a file Returntype : none Exceptions : dies if can't open file Caller : general
Arg [1] : reference to filehandle Example : $cdf->parse_from_filehandle(\*STDIN); Description: Parse a CDF file from a filehandle Returntype : none Exceptions : none Caller : general