gov.nih.nci.caarray.services.util.netcdf
Class NETCDFCreator

java.lang.Object
  extended by gov.nih.nci.caarray.services.util.netcdf.NETCDFCreator

public final class NETCDFCreator
extends java.lang.Object

Creates netcdf files for the application. Initialized by the design elements quantitation types and bioassays to be used. Generally only create one netcdf file per bioassay

Author:
gustafsons

Constructor Summary
NETCDFCreator(DesignElement[] designElementDimension, QuantitationType[] quantitationTypeDimension, BioAssay[] bioAssayDimension)
          Constructs the class with the neccessary items as arrays
NETCDFCreator(java.util.List designElementDimension, java.util.List quantitationTypeDimension, java.util.List bioAssayDimension)
          Constructs the class with the neccessary items as lists
 
Method Summary
 void setCube(java.lang.Object[][][] theCube, java.lang.String order)
          The cube has our expression data, the order tells us the dimensions
 void writeNETcdfFile(java.lang.String directory)
          Writes the bioassays in the cube out to a netcdf file(s)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NETCDFCreator

public NETCDFCreator(DesignElement[] designElementDimension,
                     QuantitationType[] quantitationTypeDimension,
                     BioAssay[] bioAssayDimension)
              throws NETCDFException
Constructs the class with the neccessary items as arrays

Parameters:
designElementDimension -
quantitationTypeDimension -
bioAssayDimension -
Throws:
NETCDFException

NETCDFCreator

public NETCDFCreator(java.util.List designElementDimension,
                     java.util.List quantitationTypeDimension,
                     java.util.List bioAssayDimension)
              throws NETCDFException
Constructs the class with the neccessary items as lists

Parameters:
designElementDimension -
quantitationTypeDimension -
bioAssayDimension -
Throws:
NETCDFException
Method Detail

setCube

public void setCube(java.lang.Object[][][] theCube,
                    java.lang.String order)
             throws NETCDFException
The cube has our expression data, the order tells us the dimensions

Parameters:
theCube -
order -
Throws:
NETCDFException

writeNETcdfFile

public void writeNETcdfFile(java.lang.String directory)
                     throws NETCDFException
Writes the bioassays in the cube out to a netcdf file(s)

Parameters:
directory - the directory to write out the file
Throws:
NETCDFException