|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpeakml.io.xrawfile.IXRawfile
public class IXRawfile
This class provides a 1-to-1 mapping to the XRawfile DLL of Thermo, for reading the RAW file format. Almost every function that is exposed in this DLL is implemented in this class and has been made Java specific. This means that the awkward interface of the OLE connection is avoided and a clean interface can be used.
The usage of the class is as follows (please read the function documentation for the details):
IXRawfile rawfile = new IXRawfile();
rawfile.init();
int errorcode = rawfile.open("filename.RAW");
if (errorcode != IXRawfile.SUCCESS)
System.out.println("[ERROR]: cannot open the file");
rawfile.setCurrentController(IXRawfile.CONTROLLER_MS, 0);
| Nested Class Summary | |
|---|---|
static class |
IXRawfile.Controller
Central class for collecting all information about a controller. |
static class |
IXRawfile.Label
Central class for collecting the label data for a mass peak. |
static class |
IXRawfile.Noise
Central class for collecting the data of a noise-packet. |
static class |
IXRawfile.PrecursorInfo
Central class for collecting all information about a precursor scan. |
static class |
IXRawfile.ScanHeaderInfo
Central class for collecting all information about a scan. |
| Field Summary | |
|---|---|
static int |
CONTROLLER_AD_CARD
This code indicates that the controller was a analog-to-digital converter. |
static int |
CONTROLLER_ANALOG
This code final indicates that the controller was an analog device. |
static int |
CONTROLLER_MS
This code indicates that the controller was a mass spectrometer. |
static int |
CONTROLLER_NO_DEVICE
This code indicates that there was no controller available. |
static int |
CONTROLLER_PDA
This code indicates that the controller was a photo-diode-array device (whole range UV detector). |
static int |
CONTROLLER_UV
This code indicates that the controller was a UV detector. |
static java.lang.String |
PROGRAMID_MSFILEREADER
The string that identifies the OLE-application in the windows registry. |
static java.lang.String |
PROGRAMID_XCALIBUR
The string that identifies the OLE-application in the windows registry. |
static int |
RTCODE_CURRENT_CONTROLLER_INVALID
This code will be returned if no current controller has been specified. |
static int |
RTCODE_FAILED
This code indicates that a general error has occurred. |
static int |
RTCODE_FILTER_FORMAT_INCORRECT
This code will be returned if an incorrectly formatted scan filter is passed in a function call. |
static int |
RTCODE_MASS_RANGE_FORMAT_INCORRECT
This code will be returned if an incorrectly formatted mass range is passed in a function call. |
static int |
RTCODE_NO_DATA_PRESENT
This code does not typically indicate an error. |
static int |
RTCODE_OPERATION_NOT_SUPPORTED_ON_CURRENT_CONTROLLER
This code will be returned if the requested action is inappropriate for the currently defined controller. |
static int |
RTCODE_PARAMETER_INVALID
This code will be returned if an invalid parameter is passed in a function call to the OCX. |
static int |
RTCODE_RAW_FILE_INVALID
This code will be returned if no valid raw file is currently open. |
static int |
RTCODE_SUCCESS
This code indicates that the function call to the OCX was processed without error. |
| Constructor Summary | |
|---|---|
IXRawfile()
|
|
| Method Summary | |
|---|---|
void |
close()
Closes a raw file and frees the associated memory. |
int |
dispose()
Disposes of the OLE connection. |
int |
getControllerType(int index)
Returns the type of the device controller registered at the specified index position in the raw file. |
java.lang.String |
getCreationDate()
Returns the file creation date in DATE format. |
java.lang.String |
getCreatorID()
Returns the creator ID. |
IXRawfile.Controller |
getCurrentController()
Gets the current controller type and number for the raw file. |
double |
getEndTime()
Gets the start time of the last scan or reading for the current controller. |
java.lang.String |
getErrorLogItem(int itemnumber)
Returns the specified error log item information and the retention time at which the error occurred. |
java.lang.String |
getErrorMessage()
Returns the last error message that was recorded by the Thermo OLE DLL. |
java.lang.String |
getFileName()
Returns the fully qualified path name of an open raw file. |
java.lang.String |
getFilterForScanNum(int scannumber)
Returns the closest matching run time that corresponds to nScanNumber for the current controller. |
java.lang.String |
getFilterForScanRT(double retentiontime)
Returns the closest matching run time that corresponds to nScanNumber for the current controller. |
java.lang.String[] |
getFilters()
Returns the list of unique scan filters for the raw file. |
int |
getFirstSpectrumNumber()
Gets the first scan or reading number for the current controller. |
double |
getHighMass()
Gets the highest mass or wavelength recorded for the current controller. |
int |
getInletID()
Gets the inlet ID number for the current controller. |
java.lang.String |
getInstChannelLabel(int channelnumber)
Returns the channel label, if available, at the specified index for the current controller. |
java.lang.String |
getInstFlags()
Returns the experiment flags, if available, for the current controller. |
java.lang.String |
getInstHardwareVersion()
Returns the current controller hardware or firmware revision information, if available. |
java.lang.String |
GetInstMethod(int methoditem)
Returns the channel label, if available, at the specified index for the current controller. |
java.lang.String |
getInstModel()
Returns the instrument model, if available, for the current controller. |
java.lang.String |
getInstName()
Returns the instrument name, if available, for the current controller. |
int |
getInstNumChannelLabels()
Returns the number of channel labels specified for the current controller. |
int |
getInstrumentID()
Gets the instrument ID number for the current controller. |
java.lang.String |
getInstSerialNumber()
Returns the serial number, if available, for the current controller. |
java.lang.String |
getInstSoftwareVersion()
Returns the current controller software revision information, if available. |
java.util.Vector<IXRawfile.Label> |
getLabelData(int scannumber)
This method enables you to read the FT-PROFILE labels of a scan represented by the scanNumber. |
int |
getLastSpectrumNumber()
Gets the last scan or reading number for the current controller. |
double |
getLowMass()
Gets the lowest mass or wavelength recorded for the current controller. |
double[] |
getMassListFromScanNum(int scannumber,
boolean centroid)
Returns the mass list array. |
double |
getMassResolution()
Gets the mass resolution value recorded for the current controller. |
int |
getMaxIntensity()
Gets the highest base peak of all the scans for the current controller. |
java.util.Vector<IXRawfile.Noise> |
getNoiseData(int scannumber)
|
int |
getNumberOfControllers()
Returns the number of registered device controllers in the raw file. |
int |
getNumberOfControllersOfType(int type)
Returns the number of registered device controllers of a particular type in the raw file. |
int |
getNumErrorLog()
Gets the number of error log entries recorded for the current controller. |
int |
getNumInstMethods()
Returns the number of instrument methods contained in the raw file. |
int |
getNumSpectra()
Gets the number of spectra acquired by the current controller. |
int |
getNumStatusLog()
Gets the number of status log entries recorded for the current controller. |
int |
getNumTrailerExtra()
Gets the trailer extra entries recorded for the current controller. |
int |
getNumTuneData()
Gets the number of tune data entries recorded for the current controller. |
IXRawfile.PrecursorInfo[] |
getPrecursorInfoFromScanNum(int scannumber)
This function is used to retrieve information about the parent scans of a data dependent MSn scan. |
IXRawfile.ScanHeaderInfo |
getScanHeaderInfoForScanNum(int scannumber)
For a given scan number, this function returns information from the scan header for the current controller. |
double |
getStartTime()
Gets the start time of the first scan or reading for the current controller. |
java.util.HashMap<java.lang.String,java.lang.String> |
getStatusLogForScanNum(int scannumber)
Returns the recorded status log entry labels and values for the current controller. |
java.lang.String[] |
getStatusLogLabelsForScanNum(int scannumber)
Returns the recorded status log entry labels for the current controller. |
java.lang.String |
getStatusLogValueForScanNum(int scannumber,
java.lang.String label)
Returns the recorded status log parameter value for the specified status log parameter label for the current controller. |
java.util.HashMap<java.lang.String,java.lang.String> |
getTrailerExtraForScanNum(int scannumber)
Returns the recorded trailer extra entry labels and values for the current controller. |
java.util.HashMap<java.lang.String,java.lang.String> |
getTuneData(int segmentnumber)
Returns the recorded tune parameter labels and values for the current controller. |
int |
getVersionNumber()
Returns the file format version number. |
int |
init()
Initializes the OLE connection. |
boolean |
isCentroidScanForScanNum(int scannumber)
Returns TRUE if the scan specified by nScanNumber is a centroid scan, FALSE if the scan is a profile scan. |
boolean |
isProfileScanForScanNum(int scannumber)
Returns TRUE if the scan specified by nScanNumber is a profile scan, FALSE if the scan is a centroid scan. |
void |
open(java.lang.String filename)
Opens a raw file for reading only. |
double |
rtFromScanNum(int scannumber)
Returns the closest matching run time or retention time that corresponds to nScanNumber for the current controller. |
int |
scanNumFromRT(double retentiontime)
Returns the closest matching scan number that corresponds to dRT for the current controller. |
void |
setCurrentController(int controllertype,
int controllernumber)
Sets the current controller in the raw file. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PROGRAMID_XCALIBUR
public static final java.lang.String PROGRAMID_MSFILEREADER
public static final int RTCODE_SUCCESS
public static final int RTCODE_FAILED
public static final int RTCODE_RAW_FILE_INVALID
public static final int RTCODE_CURRENT_CONTROLLER_INVALID
public static final int RTCODE_OPERATION_NOT_SUPPORTED_ON_CURRENT_CONTROLLER
public static final int RTCODE_PARAMETER_INVALID
public static final int RTCODE_FILTER_FORMAT_INCORRECT
public static final int RTCODE_MASS_RANGE_FORMAT_INCORRECT
public static final int RTCODE_NO_DATA_PRESENT
public static final int CONTROLLER_NO_DEVICE
public static final int CONTROLLER_MS
public static final int CONTROLLER_ANALOG
public static final int CONTROLLER_AD_CARD
public static final int CONTROLLER_PDA
public static final int CONTROLLER_UV
| Constructor Detail |
|---|
public IXRawfile()
| Method Detail |
|---|
public int init()
public int dispose()
public java.lang.String getErrorMessage()
throws IXRawfileException
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public void open(java.lang.String filename)
throws IXRawfileException
filename - The fully qualified path name of the raw file to open.
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public void close()
throws IXRawfileException
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public java.lang.String getFileName()
throws IXRawfileException
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public java.lang.String getCreatorID()
throws IXRawfileException
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public int getVersionNumber()
throws IXRawfileException
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public java.lang.String getCreationDate()
throws IXRawfileException
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public int getNumberOfControllers()
throws IXRawfileException
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public int getNumberOfControllersOfType(int type)
throws IXRawfileException
type - The controller type for which the number of registered controllers of that type are requested.
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public int getControllerType(int index)
throws IXRawfileException
controllernumber - The index value of the controller for which the type is to be returned.
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public void setCurrentController(int controllertype,
int controllernumber)
throws IXRawfileException
controllertype - The type of controller for which information will be subsequently requested.controllernumber - The number of the controller of the specified type (1-based).
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public IXRawfile.Controller getCurrentController()
throws IXRawfileException
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public int getNumSpectra()
throws IXRawfileException
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public int getNumStatusLog()
throws IXRawfileException
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public int getNumErrorLog()
throws IXRawfileException
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public int getNumTuneData()
throws IXRawfileException
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public int getNumTrailerExtra()
throws IXRawfileException
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public double getMassResolution()
throws IXRawfileException
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public double getLowMass()
throws IXRawfileException
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public double getHighMass()
throws IXRawfileException
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public double getStartTime()
throws IXRawfileException
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public double getEndTime()
throws IXRawfileException
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public int getMaxIntensity()
throws IXRawfileException
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public int getFirstSpectrumNumber()
throws IXRawfileException
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public int getLastSpectrumNumber()
throws IXRawfileException
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public int getInstrumentID()
throws IXRawfileException
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public int getInletID()
throws IXRawfileException
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public java.lang.String getInstName()
throws IXRawfileException
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public java.lang.String getInstModel()
throws IXRawfileException
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public java.lang.String getInstSerialNumber()
throws IXRawfileException
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public java.lang.String getInstSoftwareVersion()
throws IXRawfileException
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public java.lang.String getInstHardwareVersion()
throws IXRawfileException
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public java.lang.String getInstFlags()
throws IXRawfileException
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public int getInstNumChannelLabels()
throws IXRawfileException
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public java.lang.String getInstChannelLabel(int channelnumber)
throws IXRawfileException
channelnumber - The index value of the channel number field to return.
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public java.lang.String[] getFilters()
throws IXRawfileException
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public int scanNumFromRT(double retentiontime)
throws IXRawfileException
retentiontime - The run time or retention time, in minutes, for which the closest scan number is to be returned.
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public double rtFromScanNum(int scannumber)
throws IXRawfileException
scannumber - The scan number for which the closest run time or retention time is to be returned.
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public java.lang.String getFilterForScanNum(int scannumber)
throws IXRawfileException
scannumber - The scan number for which the corresponding scan filter is to be returned (1-based).
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public java.lang.String getFilterForScanRT(double retentiontime)
throws IXRawfileException
retentiontime - The scan number for which the corresponding scan filter is to be returned.
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public double[] getMassListFromScanNum(int scannumber,
boolean centroid)
throws IXRawfileException
scannumber - The mass list array.centroid - Set to true to have a profile scan centroided.
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public IXRawfile.PrecursorInfo[] getPrecursorInfoFromScanNum(int scannumber)
throws IXRawfileException
IXRawfile.PrecursorInfo instances.
UNTESTED!
scannumber - The scannumber to retrieve the precursor info.
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public java.util.Vector<IXRawfile.Noise> getNoiseData(int scannumber)
throws IXRawfileException
scannumber -
IXRawfileException
public boolean isProfileScanForScanNum(int scannumber)
throws IXRawfileException
scannumber - The scan number for which the profile data type information is to be returned.
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public boolean isCentroidScanForScanNum(int scannumber)
throws IXRawfileException
scannumber - The scan number for which the profile data type information is to be returned.
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public IXRawfile.ScanHeaderInfo getScanHeaderInfoForScanNum(int scannumber)
throws IXRawfileException
scannumber - The scan number for which the scan header information is to be returned.
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public java.util.HashMap<java.lang.String,java.lang.String> getStatusLogForScanNum(int scannumber)
throws IXRawfileException
scannumber - The scan number for which status log information is to be returned.
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public java.lang.String[] getStatusLogLabelsForScanNum(int scannumber)
throws IXRawfileException
scannumber - The scan number for which status log information is to be returned.
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public java.lang.String getStatusLogValueForScanNum(int scannumber,
java.lang.String label)
throws IXRawfileException
scannumber - The scan number for which status log information is to be returned.label - A string containing the label for which the status log parameter value is to be returned.
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public java.util.HashMap<java.lang.String,java.lang.String> getTrailerExtraForScanNum(int scannumber)
throws IXRawfileException
scannumber - The scan number for which trailer extra information is to be returned.
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public java.lang.String getErrorLogItem(int itemnumber)
throws IXRawfileException
itemnumber - The error log item number for which information is to be returned.
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public java.util.HashMap<java.lang.String,java.lang.String> getTuneData(int segmentnumber)
throws IXRawfileException
segmentnumber - The acquisition segment for which tune information is to be returned.
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public int getNumInstMethods()
throws IXRawfileException
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public java.lang.String GetInstMethod(int methoditem)
throws IXRawfileException
methoditem - A long variable containing the index value of the instrument method to be returned.
IXRawfileException - 1 if successful; otherwise, see Error Codes.
public java.util.Vector<IXRawfile.Label> getLabelData(int scannumber)
throws IXRawfileException
scannumber - The scan number for which the corresponding label data are to be returned.
IXRawfileException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||