pipeline.domain.datatable.DataTableIndexer

class DataTableIndexer(context)[source]

Bases: object

Map between serial indices and per-MS row indices.

DataTableIndexer is responsible for mapping between classical (serial) row indices (unique row IDs throughout all origin MSes) and per-MS row indices.

Methods

per_ms_index_list

perms2serial

Return serial index.

serial2perms

Return basename of origin MS and per-MS row id of a given serial index.

Attributes

origin_mses

__init__(context)[source]

Initialize DataTable Indexer class.

Parameters:

context -- Pipeline context

perms2serial(vis: str, i: int) int[source]

Return serial index.

Parameters:
  • vis -- Name of an MS

  • i -- per-MS DataTable row index

Returns:

A specified index in serial mode

serial2perms(i: int) tuple[str, int][source]

Return basename of origin MS and per-MS row id of a given serial index.

Parameters:

i -- serial index

Returns:

The basename of origin MS and the row index of the datatable for that MS corresponding to a given serial index.