Collapsed Q-Metrics Version 6

This class provides an interface to reading the collapsed q-metric file:

  • InterOp/QMetrics2030.bin
  • InterOp/QMetrics2030Out.bin

The file format for collapsed q-metrics is as follows:

Header

illumina::interop::io::read_metrics (Function that parses this information)

    byte 0: version number (6)
    byte 1: record size (22)

Extended Header

illumina::interop::io::generic_layout<q_collapsed_metric, 6> (Class that parses this information)

    byte 2:                         flag indicating whether is has bins (bool)

If byte 2 is true, then the following information is also in the header:

 byte 3:                         number of bins, binCount (uint8)
 byte 4+binCount*0-4+binCount*1: array of low ends for each bin (uint8)
 byte 4+binCount*1-4+binCount*2: array of high ends for each bin (uint8)
 byte 4+binCount*2-4+binCount*3: array of values for each bin (uint8)

n-Records

illumina::interop::io::layout::base_cycle_metric (Class that parses this information)

    2 bytes: lane number (uint16)
    2 bytes: tile number (uint16)
    2 bytes: cycle number (uint16)

illumina::interop::io::generic_layout<q_collapsed_metric, 6> (Class that parses this information)

    4 bytes: Q20 count (uint32)
    4 bytes: Q30 count (uint32)
    4 bytes: Total count (uint32)
    4 bytes: Median score (uint32)