Skip to main content

Run Header

RunHeader, SampleInfo

13. RunHeader

The RunHeader is the secondary index structure containing pointers to all major data streams. It is located at the file offset specified by RawFileInfoPreamble.run_header_addr.

13.1 Common Fields

OrderTypeFieldDescription
1SampleInfosample_infoEmbedded sample information (see §14)

13.2 Version 66 Fields (after SampleInfo)

OrderTypeFieldDescription
2UTF16LE(520)file_name[1]Original file path (260 chars)
3UTF16LE(520)file_name[2]
4UTF16LE(520)file_name[3]
5UTF16LE(520)file_name[4]
6UTF16LE(520)file_name[5]
7UTF16LE(520)file_name[6]
8Float64unknown_double[1]
9Float64unknown_double[2]
10UTF16LE(520)file_name[7]
11UTF16LE(520)file_name[8]
12UTF16LE(520)file_name[9]
13UTF16LE(520)file_name[a]
14UTF16LE(520)file_name[b]
15UTF16LE(520)file_name[c]
16UTF16LE(520)file_name[d]
17UInt32scan_trailer_addr_32Defunct (v64+)
18UInt32scan_params_addr_32Defunct (v64+)
19UInt32ntrailerNumber of scan event trailer entries
20UInt32nparamsNumber of scan parameter entries (should equal ntrailer)
21UInt32nsegsNumber of scan segments
22UInt32unknown_long[1]
23UInt32unknown_long[2]
24UInt32own_addr_32Defunct (v64+)
25UInt32unknown_long[3]
26UInt32unknown_long[4]
27UInt64scan_index_addrFile offset to ScanIndexEntry array
28UInt64data_addrFile offset to scan data stream
29UInt64inst_log_addrFile offset to instrument log
30UInt64error_log_addrFile offset to error log
31UInt64unknown_addr[1]
32UInt64scan_trailer_addrFile offset to ScanEvent trailer stream
33UInt64scan_params_addrFile offset to ScanParameters stream
34UInt32unknown_long[5]
35UInt32unknown_long[6]
36UInt64own_addrSelf-address (file offset of this RunHeader)
37-60UInt32 × 24unknown_long[7-30]Reserved/unknown

13.3 Version 57-63 (32-bit addresses)

In pre-v64 versions, the scan index, data, log, and trailer addresses are obtained from the SampleInfo embedded structure rather than the RunHeader proper. The RunHeader file name fields and ntrailer/nparams are the same, but the 64-bit address block (fields 27-36) is absent.


14. SampleInfo

Embedded as the first field of RunHeader. Contains summary statistics about the acquisition and (in pre-v64 versions) the stream address pointers.

OffsetSizeTypeFieldDescription
0x004UInt32unknown_long[1]
0x044UInt32unknown_long[2]
0x084UInt32first_scan_numberFirst scan number (usually 1)
0x0C4UInt32last_scan_numberLast scan number
0x104UInt32inst_log_lengthNumber of instrument log entries
0x144UInt32error_log_lengthNumber of error log entries
0x184UInt32unknown_long[4]
0x1C4UInt32scan_index_addr†Defunct in v64+ - use RunHeader
0x204UInt32data_addr†Defunct in v64+ - use RunHeader
0x244UInt32inst_log_addr†Defunct in v64+ - use RunHeader
0x284UInt32error_log_addr†Defunct in v64+ - use RunHeader
0x2C4UInt32unknown_long[5]
0x308Float64max_ion_currentMaximum total ion current across all scans
0x388Float64low_mzLowest M/z across all scans
0x408Float64high_mzHighest M/z across all scans
0x488Float64start_timeRetention time of first scan (minutes)
0x508Float64end_timeRetention time of last scan (minutes)
0x5856RawBytesunknown_area
0x9088UTF16LE(88)tag[1]44-char tag
0xE840UTF16LE(40)tag[2]20-char tag
0x110320UTF16LE(320)tag[3]160-char tag

Total size: 592 bytes

†In versions 64 and 66, these 32-bit address fields are no longer valid (the file may exceed 4 GB). Use the 64-bit addresses from the RunHeader proper.