home login register your profile contact        
Affymetrix
Products Support Analysis Scientific Community Corporate Careers Shop Affymetrix Japan
Software Developer Network
File SDK Overview
File SDK Downloads
File SDK Object Hierarchy
IGDACEXPFile
IGDACDATFile
IGDACCELFile
IGDACCHPFile
IGDACCDFFile
IGDACProbe
IGDACProbeSet
IGDACProbePair
IGDACControlProbeSet
IGDACCustomSeqComposite
IGDACCustomSeqProbeSet
IGDACCustomSeqProbeGroup
IGDACCustomSeqProbeList
IGDACGenotypeProbeSet
IGDACGenotypeProbeGroup
IGDACGenotypeProbeList
IGdacFileChooserDlg
IGDACFilesMode
File SDK Definitions
File SDK Messages
File SDK Release Notes

IGDACDATFile


OVERVIEW
The IGDACDATFile interface provides read-only access to image (DAT) files. Information includes pixel intensities, grid coordinates and scan parameters.

COM ATTRIBUTES

AttributeType/Supported
Threading modelBoth
InterfaceDual
AggregationNo
ISupportErrorInfoYes
Connection PointsNo
Free Threading MarshalerNo

PROPERTIES

Name
ID

1

Description

The name of the DAT file without directory path.

TypeBSTR
Length64 characters including file extension.
AccessRead-Write
Remarks

It accepts any valid short file name with no path specified (e.g. Hu6800.DAT). If path is specified when setting the Name property, a COM error will be thrown. However, the DataPath property must be set to identify the exact location of the image file.

Returns error if setting invalid file name characters: \/:;*?"<>|'`,{}[]Throw COM error if file name is not with ".DAT" extension.
Returns error if file name is not with “.DAT” extension

DataPath
ID

2

Description

The directory where the CHP files are stored.

TypeBSTR
AccessRead-Write
Remarks

Must be set prior to using the interface methods.
Returns error if setting Invalid path characters: /;*?<>|'`,{}[]

The format of the data path, when reading data stored in a LIMS/GCOS server system, must be \\SERVERNAME\gclims\data where SERVERNAME is the name of the LIMS or GCOS server.

LibPath
ID

3

Description

The directory where the the library files (CDF) are stored.

TypeBSTR
AccessRead-Write
Remarks

Must be set prior to using the interface methods.
Returns error if setting invalid file name characters: \/:;*?"<>|'`,{}[]

The format of the library path, when reading data stored in a LIMS/GCOS server system, must be \\SERVERNAME\gclims\library where SERVERNAME is the name of the LIMS or GCOS server.

FullPathName
ID

4

DescriptionThe full path file name for the image file.
TypeBSTR
AccessRead-only
RemarksThe property value is set after specifying the Name and DataPath properties.

ChipType
ID

5

DescriptionThe probe array type associated with the image file.
Type BSTR
AccessRead-only
RemarksRead() must be called prior to use. Returns an empty string if the image file header has not been read.

Date
ID

6

DescriptionThe file creation timestamp.
Type BSTR
FormatMMM DD YYYY HH:MM:SS AM/PM
AccessRead-only
RemarksRead() must be called prior to use. Returns an empty string if the image file header has not been read.

NumPixelsPerRow
ID

7

DescriptionThe number of pixels per row in the image file.
Type long
AccessRead-only
RemarksRead() must be called prior to use. Returns 0 if the image file header has not been read.

NumRows
ID

8

DescriptionThe number of rows of pixels in the file.
Type long
AccessRead-only
RemarksRead() must be called prior to use. Returns 0 if the image file header has not been read.

MinData
ID

9

DescriptionThe minimum pixel value in the image.
Typelong
AccessRead-only
RemarksRead() must be called prior to use. Returns 0 if the image file header has not been read.

MaxData
ID

10

DescriptionThe maximum pixel value in the image.
Typelong
AccessRead-only
RemarksRead() must be called prior to use. Returns 0 if the image file header has not been read.

PixelSize
ID

11

DescriptionThe size of the pixel, in microns, used to create the file.
Typelong
AccessRead-only
RemarksRead() must be called prior to use. Returns 0 if the image file header has not been read.

CellMargin
ID

12

DescriptionThe number of pixels for the border of each feature when calculating the CEL intensities.
Typelong
AccessRead-only
RemarksRead() must be called prior to use. Returns 0 if the image file header has not been read.

ScanSpeed
ID

13

DescriptionThe scan speed.
Typelong
AccessRead-only
RemarksRead() must be called prior to use. Returns 0 if the image file header has not been read.

ScanDate
ID

14

DescriptionThe scan date.
TypeBSTR
FormatMMM DD YYYY HH:MM:SS AM/PM
AccessRead-only
RemarksRead() must be called prior to use. Returns 0 if the image file header has not been read.

ScannerID
ID

15

DescriptionThe ID of the scanner if set on the MAS instrument workstation.
TypeBSTR
AccessRead-only
RemarksRead() must be called prior to use. Returns an empty string if the image file header has not been read.

UpperLeftX
ID

16

DescriptionThe upper-left x-position of the grid corner of the image file
Typelong
AccessRead-only
RemarksRead() must be called prior to use. Returns 0 if the image file header has not been read.

UpperLeftY
ID

17

DescriptionThe upper-left y-position of the grid corner of the image file
Typelong
AccessRead-only
RemarksRead() must be called prior to use. Returns 0 if the image file header has not been read.

UpperRightX
ID

18

DescriptionThe upper-right x-position of the grid corner of the image file
Typelong
AccessRead-only
RemarksRead() must be called prior to use. Returns 0 if the image file header has not been read.

UpperRightY
ID

19

DescriptionThe upper-right y-position of the grid corner of the image file
Typelong
AccessRead-only
RemarksRead() must be called prior to use. Returns 0 if the image file header has not been read.

LowerLeftX
ID

20

DescriptionThe lower-left x-position of the grid corner of the image file
Typelong
AccessRead-only
RemarksRead() must be called prior to use. Returns 0 if the image file header has not been read.

LowerLeftY
ID

21

DescriptionThe lower-left y-position of the grid corner of the image file
Typelong
AccessRead-only
RemarksRead() must be called prior to use. Returns 0 if the image file header has not been read.

LowerRightX
ID

22

DescriptionThe lower-right x-position of the grid corner of the image file
Typelong
AccessRead-only
RemarksRead() must be called prior to use. Returns 0 if the image file header has not been read.

LowerRightY
ID

23

DescriptionThe lower-right y-position of the grid corner of the image file
Typelong
AccessRead-only
RemarksRead() must be called prior to use. Returns 0 if the image file header has not been read.

ServerName
ID

24

DescriptionThe name of the LIMS server if the data resides on a LIMS system. This value should be blank if the data is not stored within a LIMS system.
TypeBSTR
AccessRead-Write
RemarksThis property must be set in LIMS Mode

NTUserName
ID

25

DescriptionThis value is not used by the SDK.
TypeBSTR
AccessRead-Write, Reserved
RemarksThis value is not used by the SDK.

METHODS

Exists
ID

26

DescriptionThis function returns a flag indicating if the DAT file exists within the specified data directory.
PrototypeHRESULT Exists(BOOL *pbExists)
ParametersBOOL *pbExists - Flag indicating existence (output)
ReturnHRESULT - S_OK if successful, E_FAIL otherwise
RemarksThe Name and DataPath properties are required.

Read
ID

27

DescriptionReads the contents of the DAT file into memory.
PrototypeHRESULT Read( )
ParametersN/A
ReturnHRESULT - S_OK if successful, E_FAIL otherwise
Remarks

The Name, DataPath and LibPath properties are required.

ReadHeader
ID

28

DescriptionReads the header of the DAT file into memory. Reading the header will populate all of the properties of this class (NumRows, NumPixelsPerRow, ChipType, etc.).
PrototypeHRESULT Read( )
ParametersN/A
ReturnHRESULT - S_OK if successful, E_FAIL otherwise
Remarks

The Name, DataPath and LibPath properties are required.

GetIntensity
ID

29

DescriptionThis function returns the intensity at a specific position of the image file.
PrototypeHRESULT GetIntensity(long x, long y, long *pVal)
Parameterslong x - The x-coordinate of the pixel. It is 0-based and must be in between 0 and NumPixelsPerRow (input)
long y - The y-coordinate of the pixel. It is 0-based and must be in between 0 and NumRows (input)unsigned short *pVal - A pointer to the data value at (x,y) (output/Return)
ReturnHRESULT - S_OK if successful, E_FAIL otherwise
RemarksRead() must be called prior to use. The intensity returned will be 65535 (USHRT_MAX) if the image file has not been read.

GetLineIntensities
ID

30

DescriptionThis function returns the array of intensities at a specific line of the image file.
PrototypeHRESULT GetLineIntensities(long nLine, SAFEARRAY** ppsaInten)
Parameterslong nLine - The line number. It is 0-based and must be in between 0 and NumRows (input)
SAFEARRAY(long)* ppsaInten - A safearray of intensity (output/Return)
ReturnHRESULT - S_OK if successful, E_POINTER if ppsaInten is NULL or E_FAIL otherwise
RemarksRead() must be called prior to use. The savearray will return empty if the image file has not been read.

888-DNA-CHIP (888-362-2447) +44 (0) 1628 552550 feedback e-mail support terms of use privacy policy