Index Version 2

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

  • InterOp/IndexMetrics.bin
  • InterOp/IndexMetricsOut.bin

The file format for index metrics is as follows:

Header

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

    byte 0: version number (2)

n-Records

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

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

illumina::interop::io::generic_layout<index_metric, 1> (Class that parses this information)

    2 bytes: index name length (indexNameLength) (uint16)
    indexNameLength bytes: index name
    8 bytes: index cluster count (uint64)
    2 bytes: sample name length (sampleNameLength) (uint16)
    sampleNameLength bytes: sample name
    2 bytes: project name length (projectNameLength) (uint16)
    projectNameLength bytes: project name