pylimma.detection_p_values

pylimma.detection_p_values(x, status, negctrl='negative')[source]

Detection p-values from negative controls.

Port of R limma’s detectionPValues.default (matrix path). Returns a matrix the same shape as x containing per-probe detection p-values computed from the empirical distribution of the negative controls within each column.

Parameters:
  • x (array_like) – Probe intensity matrix, shape (n_probes, n_arrays).

  • status (array_like) – Per-probe status labels. Probes whose status equals negctrl are treated as negative controls.

  • negctrl (str, default "negative") – Label identifying negative controls in status.

Returns:

Detection p-values with the same shape as x.

Return type:

ndarray