Skip to main content

RAW File Info

RawFileInfo, RawFileInfoPreamble, InstID, MethodFile

9. RawFileInfo​

Primary index structure containing the date, controller configuration, and pointers to the data and run header regions. Immediately follows ASInfo.

OrderTypeFieldDescription
1RawFileInfoPreamblepreambleDate, addresses, controller info
2PascalStringWin32label_heading[1]Label heading for user_label[1] (typically "Study")
3PascalStringWin32label_heading[2]Label heading for user_label[2] (typically "Client")
4PascalStringWin32label_heading[3]Label heading for user_label[3] (typically "Laboratory")
5PascalStringWin32label_heading[4]Label heading for user_label[4] (typically "Company")
6PascalStringWin32label_heading[5]Label heading for user_label[5] (typically "Phone")
7PascalStringWin32unknown_textComputer name / machine identifier

9.1 Observed Values​

The 6th string (unknown_text) consistently holds the computer hostname of the acquisition system (e.g. "OEII", "FUSION-PC", "PCW-VBCF-28", "ADMIN-PC", "THERMO-PC", "6RW3W52").


10. RawFileInfoPreamble​

The binary-data portion of RawFileInfo containing the acquisition date and the critical data address and run header address pointers that navigate to the bulk of the file's content.

10.1 Common Fields (All Versions)​

OffsetSizeTypeFieldDescription
0x004UInt32method_file_present1 if embedded method file exists
0x042UInt16yearAcquisition year
0x062UInt16monthMonth (1-12)
0x082UInt16day_of_weekDay of week (0=Sunday)
0x0A2UInt16dayDay of month (1-31)
0x0C2UInt16hourHour (0-23)
0x0E2UInt16minuteMinute (0-59)
0x102UInt16secondSecond (0-59)
0x122UInt16millisecondMillisecond (0-999)

Common size: 20 bytes

10.2 Version 66 Extended Fields​

Relative OffsetSizeTypeFieldDescription
+0x004UInt32unknown_long[2]
+0x044UInt32data_addr_32Defunct 32-bit data address (always 0 in v66)
+0x084UInt32controller_n[1]Number of instrument controllers
+0x0C4UInt32controller_n[2]Duplicate of controller_n[1]
+0x104UInt32unknown_long[5]
+0x144UInt32unknown_long[6]
+0x184UInt32run_header_addr_32Defunct 32-bit run header address (always 0 in v66)
+0x1C760RawBytesunknown_area[1]Reserved/padding
+0x3148UInt64data_addrFile offset to scan data stream
+0x31C4UInt32unknown_long[7]
+0x3204UInt32unknown_long[8]
+0x3248UInt64run_header_addrFile offset to RunHeader
+0x32C4UInt32unknown_long[9]
+0x3304UInt32unknown_long[10]
+0x3348UInt64run_header_addr[2]Second RunHeader address (0 if only one controller)
+0x33C1008RawBytesunknown_area[2]Reserved/padding

Total preamble size (v66): 20 + 4 + 4 + 8 + 8 + 4 + 760 + 8 + 8 + 8 + 8 + 8 + 1008 = 1856 bytes

10.3 Version 57-63 (32-bit addresses)​

In versions prior to 64, addresses are 32-bit and the preamble is smaller (804 bytes total including the 20-byte common part):

OffsetSizeTypeField
+0x004UInt32unknown_long[2]
+0x044UInt32data_addr
+0x084UInt32controller_n[1]
+0x0C4UInt32controller_n[2]
+0x104UInt32unknown_long[5]
+0x144UInt32unknown_long[6]
+0x184UInt32run_header_addr
+0x1C4UInt32unknown_long[7]
+0x204UInt32unknown_long[8]
+0x244UInt32run_header_addr[2]
+0x28744RawBytesunknown_area

10.4 Controller Count​

The controller_n[1] and controller_n[2] fields are equal and indicate how many instrument data controllers stored data in this file. Observed values:

ValueMeaning
1Single controller (most common: one MS detector)
2Two controllers (e.g. MS + UV detector, or MS + PDA)
7Seven controllers (complex multi-detector setups)

When controller_n > 1, run_header_addr[2] points to the second RunHeader (for the second controller's data). Each controller has its own complete scan data stream and run header.


11. InstID​

Instrument identification. One or more InstID structures follow RawFileInfo, one per controller.

OrderTypeFieldDescription
1UInt32unknown_long[1]
2UInt32unknown_long[2]
3UInt32unknown_long[3]If > 0, model[3] field is present
4PascalStringWin32model[1]Instrument model name (e.g. "LTQ Orbitrap Elite")
5PascalStringWin32model[2]Secondary model string
6*PascalStringWin32model[3]Conditional: only present if unknown_long[3] > 0
7PascalStringWin32serial_numberInstrument serial number
8PascalStringWin32software_versionAcquisition software version
9PascalStringWin32tag[1]Additional tag
10PascalStringWin32tag[2]Additional tag
11PascalStringWin32tag[3]Additional tag
12PascalStringWin32tag[4]Additional tag

12. MethodFile​

An embedded OLE2/Compound Document Format (CDF) container holding the instrument method files used during acquisition. The OLE2 container may contain sub-streams for each instrument module (e.g. MS method, LC method, autosampler method).

The method file begins after the InstID structure(s) and extends to the data_addr offset. Its layout is the public Compound File Binary format (MS-CFB): a 512-byte header, a file allocation table, a directory of named streams, and the streams' bytes in fixed-size sectors.

A stream is read by following its sector chain in the allocation table, for the length its directory entry records. Two properties of the format make any other way of reading it unreliable:

  • A stream's sectors need not be adjacent or in order. A directory sector, or a sector of another stream, can lie between two of them.
  • The last sector is used only as far as the recorded length. The rest is slack, and can hold bytes of an earlier, longer version of the stream.

The reader takes the container at the first compound-file signature (D0 CF 11 E0 A1 B1 1A E1) in the region before data_addr. It reads version 3 files (512-byte sectors) and version 4 files (4096-byte sectors), including streams shorter than 4096 bytes, which the format keeps in the mini stream. A file whose allocation table needs more than the 109 sectors the header can list (over 7 MB) is not read.

Where a method has InstrumentSetupMethod XML, it is a UTF-16LE stream named Data. The XML is used only when exactly one Data stream holds such a document (see section 22.3 of the ScanEvent page).

instrument_method_text() does not read the container. It returns the longest block of UTF-16LE text in the region. That is one whole stream only when the stream's sectors are adjacent and no text is left in the slack of its last sector.

Evidence: the public GlycoPOST acquisition GPST000122.0/NGlycans_Serum_Fetuin_File1.raw (Q Exactive Plus) has one container in the region, version 3 with 512-byte sectors. Its directory lists the streams AuditData and LCQ Header, and one storage that holds Text and Data. Data is 15,866 bytes of UTF-16LE in 31 adjacent sectors, with a zero-filled slack, and is the InstrumentSetupMethod document. In that file the text scan and the stream read return the same document. A stream with sectors out of order, and one with text in its slack, are covered by synthetic method files in the unit tests.