|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.core.Affymetrix
public class Affymetrix
Utility class for Affymetrix-specific functionality. Use this class to link CDF files with array designs and CEL and CHP files with raw bioassays.
Field Summary | |
---|---|
static String |
CDF_LINK_NAME
Deprecated. See DataFileType.AFFYMETRIX_CDF |
static String |
CEL_LINK_NAME
Deprecated. See DataFileType.AFFYMETRIX_CEL |
static String |
CHP_LINK_NAME
Deprecated. See DataFileType |
Constructor Summary | |
---|---|
Affymetrix()
|
Method Summary | |
---|---|
static int |
checkIfReportersExists(affymetrix.fusion.cdf.FusionCDFData cdf,
ReporterBatcher batcher,
boolean create,
ReporterType type,
ProgressReporter progress)
Verify that probesets in a CDF file exists as reporters and optionally create those that doesn't exists. |
static File |
getCdfFile(ArrayDesign design)
Deprecated. Use FileStoreUtil.getDataFile(DbControl, FileStoreEnabled, String)
with a data file type of DataFileType.AFFYMETRIX_CDF
instead |
static File |
getCelFile(RawBioAssay rawBioAssay)
Deprecated. |
static affymetrix.fusion.cdf.FusionCDFData |
loadCdfFile(File cdfFile)
Deprecated. Use AffymetrixFileHandler.loadCdfFile(File) instead |
static affymetrix.fusion.cel.FusionCELData |
loadCelFile(File celFile)
Deprecated. Use AffymetrixFileHandler.loadCdfFile(File) instead |
static void |
setCdfFile(ArrayDesign design,
File file)
Deprecated. Use FileStoreUtil.setDataFile(DbControl, FileStoreEnabled, String, File)
instead with DataFileType.AFFYMETRIX_CDF as the file
type |
static void |
setCelFile(RawBioAssay rawBioAssay,
File file)
Deprecated. Use FileStoreUtil.setDataFile(DbControl, FileStoreEnabled, String, File)
instead with DataFileType.AFFYMETRIX_CEL as the file
type |
private static void |
validateCelAndCdf(affymetrix.fusion.cel.FusionCELData cel,
affymetrix.fusion.cdf.FusionCDFData cdf,
String cdfChipType)
|
static void |
validateCelAndCdf(RawBioAssay rawBioAssay,
ArrayDesign design,
boolean required)
Check if the CEL file on the raw bioassay matches the CDF file on the array design. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CDF_LINK_NAME
DataFileType.AFFYMETRIX_CDF
AnyToAny
link between an array design
and a file that contains the CDF information.
public static final String CEL_LINK_NAME
DataFileType.AFFYMETRIX_CEL
AnyToAny
link between a raw bioassay
and a file that contains the CEL information.
public static final String CHP_LINK_NAME
DataFileType
AnyToAny
link between a raw bioassay
and a file that contains the CHP information.
Constructor Detail |
---|
public Affymetrix()
Method Detail |
---|
public static void setCdfFile(ArrayDesign design, File file) throws PermissionDeniedException, InvalidDataException, BaseException
FileStoreUtil.setDataFile(DbControl, FileStoreEnabled, String, File)
instead with DataFileType.AFFYMETRIX_CDF
as the file
type
RawBioAssay
:s.
Starting with BASE 2.4 this method validates that
the specified file is actaully a CDF file. See loadCdfFile(File)
.
design
- The array designfile
- The CDF file, or null to remove the file
PermissionDeniedException
- If the logged in user doesn't
have write permission for the design and use permission for the
file
InvalidDataException
- If the design is null or isn't an
Affymetrix chip or if the file is not a CDF file
BaseException
- If there is another errorpublic static File getCdfFile(ArrayDesign design) throws PermissionDeniedException, InvalidDataException, BaseException
FileStoreUtil.getDataFile(DbControl, FileStoreEnabled, String)
with a data file type of DataFileType.AFFYMETRIX_CDF
instead
Platform
and DataFileType
which solves the problem in a more generic way.
This method is equivalent to:
DataFileType cdfType = DataFileType.getByExternalId(dc, DataFileType.AFFYMETRIX_CDF); File cdfFile = design.getFileSet().getMember(cdfType.getFile());
design
- The design to get the CDF file from, it must
be an Affymetrix chip
PermissionDeniedException
- If the logged in user doesn't
have read permission for the file
InvalidDataException
- If the design is null or isn't an
Affymetrix chip
BaseException
- If there is another errorpublic static void setCelFile(RawBioAssay rawBioAssay, File file) throws PermissionDeniedException, InvalidDataException, BaseException
FileStoreUtil.setDataFile(DbControl, FileStoreEnabled, String, File)
instead with DataFileType.AFFYMETRIX_CEL
as the file
type
setCdfFile(ArrayDesign, File)
.
Starting with BASE 2.4 this method validates that the specified file is a CEL file and that it matches the CDF file attached to the array design. The check includes:
This method also sets the number of spots to the number of cells found in the CEL file.
rawBioAssay
- The raw bioassayfile
- The CEL file, or null to remove the file
PermissionDeniedException
- If the logged in user doesn't
have write permission for the raw bioassay and use permission for the
file
InvalidDataException
- If the raw bioassay is null or isn't an Affymetrix
raw data type
BaseException
- If there is another errorpublic static File getCelFile(RawBioAssay rawBioAssay) throws PermissionDeniedException, InvalidDataException, BaseException
rawBioAssay
- The raw bioassay to get the CEL file from, it must
be a raw bioassay of an Affymetrix raw data type
PermissionDeniedException
- If the logged in user doesn't
have read permission for the file
InvalidDataException
- If the raw bioassay is null or isn't an
Affymetrix raw data type
BaseException
- If there is another errorpublic static void validateCelAndCdf(RawBioAssay rawBioAssay, ArrayDesign design, boolean required)
rawBioAssay
- The raw bioassaydesign
- The array designrequired
- TRUE if the absense of either a CEL or a CDF file is an
error condition
InvalidDataException
- If the raw bioassay or array design are not
Affymetrix type, or if the CEL doesn't match the CDFprivate static void validateCelAndCdf(affymetrix.fusion.cel.FusionCELData cel, affymetrix.fusion.cdf.FusionCDFData cdf, String cdfChipType) throws InvalidDataException
InvalidDataException
public static affymetrix.fusion.cdf.FusionCDFData loadCdfFile(File cdfFile) throws ItemNotFoundException, InvalidDataException
AffymetrixFileHandler.loadCdfFile(File)
instead
cdfFile
- The file to load
ItemNotFoundException
- If the actaul file is not on the server
InvalidDataException
- If the file is not a CDF filepublic static affymetrix.fusion.cel.FusionCELData loadCelFile(File celFile) throws InvalidDataException
AffymetrixFileHandler.loadCdfFile(File)
instead
celFile
- The file to load
ItemNotFoundException
- If the actaul file is not on the server
InvalidDataException
- If the file is not a CEL filepublic static 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 reporter
ItemNotFoundException
- If create is FALSE and a reporter isn't found
BaseException
- If there is another error
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |