Error Version 6

This class provides an interface to reading the error metric file:

  • InterOp/ErrorMetrics.bin
  • InterOp/ErrorMetricsOut.bin

The file format for error metrics is as follows:

Header

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

    byte 0: version number (6)
    byte 1: record size (12+4*num_adapter)

Extended Header

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

    byte 2-3: num_adapter (uint16)
    byte 4-5: adapter_base_cnt (uint16)
    byte 6-(6+num_adapter*adapter_base_cnt) (uint8)

n-Records

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

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

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

    4 bytes: error rate (float32)
    4*num_adapter bytes: vector of fraction of reads adapter-trimmed at the cycle (float32)