pylimma.ave_dups

pylimma.ave_dups(x, ndups=2, spacing=1, weights=None)[source]

Average over duplicate spots.

Computes the (weighted) mean across replicate spots for each gene.

Parameters:
  • x (ndarray) – Expression matrix, shape (n_spots, n_arrays).

  • ndups (int, default 2) – Number of duplicates.

  • spacing (int, default 1) – Spacing between duplicates.

  • weights (ndarray, optional) – Weights matrix with same shape as x.

Returns:

Averaged matrix, shape (n_genes, n_arrays).

Return type:

ndarray