public class CdfValidator extends Object
Constructor and Description |
---|
CdfValidator()
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
int |
checkIfReportersExists(affymetrix.fusion.cdf.FusionCDFData cdf,
ReporterBatcher batcher,
boolean create,
ReporterType type,
ProgressReporter progress)
Verify if probesets in a CDF file exists as reporters and
optionally create those that doesn't exists.
|
void |
copyMetadata(affymetrix.fusion.cdf.FusionCDFData cdf,
ArrayDesign design)
Copy metadata from the CDF file to the array design.
|
affymetrix.fusion.cdf.FusionCDFData |
loadCdfFile(File cdfFile)
Load a CDF file using the Affymetric Fusion SDK.
|
void |
resetMetadata(ArrayDesign design)
Reset metadata on the given array design.
|
public affymetrix.fusion.cdf.FusionCDFData loadCdfFile(File cdfFile) throws ItemNotFoundException, InvalidDataException
cdfFile
- The file to loadItemNotFoundException
- If the actual file is not on the serverInvalidDataException
- If the file is not a CDF filepublic void copyMetadata(affymetrix.fusion.cdf.FusionCDFData cdf, ArrayDesign design)
cdf
- The CDF filedesign
- The array designpublic void resetMetadata(ArrayDesign design)
design
- The array designpublic int checkIfReportersExists(affymetrix.fusion.cdf.FusionCDFData cdf, ReporterBatcher batcher, boolean create, ReporterType type, ProgressReporter progress) throws ItemNotFoundException, BaseException
cdf
- The CDF filebatcher
- A reporter batcher used to check and insert reporterscreate
- TRUE to create non-existing reporters, FALSE to throw
an ItemNotFoundExceptiontype
- The reporter type to assign to new reporters (if create is true)progress
- An optional progress reporterItemNotFoundException
- If create is FALSE and a reporter isn't foundBaseException
- If there is another error