net.sf.basedb.core.filehandler
Class CelFileHandler
java.lang.Object
net.sf.basedb.core.filehandler.AbstractDataFileHandler
net.sf.basedb.core.filehandler.AffymetrixFileHandler
net.sf.basedb.core.filehandler.CelFileHandler
- All Implemented Interfaces:
- DataFileHandler, DataFileMetadataReader, DataFileValidator
public class CelFileHandler
- extends AffymetrixFileHandler
- implements DataFileValidator, DataFileMetadataReader
File handler that can validate and extract metadata from
Affymetrix CEL files.
- Version:
- 2.5
- Author:
- Nicklas
- Last modified
- $Date:2007-10-12 12:03:18 +0200 (Fri, 12 Oct 2007) $
Field Summary |
private affymetrix.fusion.cel.FusionCELData |
celData
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
celData
private affymetrix.fusion.cel.FusionCELData celData
CelFileHandler
public CelFileHandler()
validate
public void validate(DbControl dc)
- Check that the raw bioassay is using the Affymetrix platform
(
Platform.AFFYMETRIX
) and that the file selected
as the CEL file really is a CEL file.
- Specified by:
validate
in interface DataFileValidator
- Parameters:
dc
- A DbControl object that can be used for database
access
extractMetadata
public void extractMetadata(DbControl dc)
- Description copied from interface:
DataFileMetadataReader
- Extract metadata from the file(s) and write the metadata
to the item passed to the
DataFileHandler.setItem(net.sf.basedb.core.FileStoreEnabled)
method.
- Specified by:
extractMetadata
in interface DataFileMetadataReader
- Parameters:
dc
- A DbControl object that can be used for database
access
resetMetadata
public void resetMetadata(DbControl dc)
- Reset the number of file spots to 0, and remove all headers.
- Specified by:
resetMetadata
in interface DataFileMetadataReader
- Parameters:
dc
- A DbControl object that can be used for database
access
setHeader
private void setHeader(RawBioAssay rba,
String name,
String value)
validateCelAndCdf
private static void validateCelAndCdf(affymetrix.fusion.cel.FusionCELData cel,
affymetrix.fusion.cdf.FusionCDFData cdf,
String cdfChipType)
throws InvalidDataException
- Throws:
InvalidDataException