WAD.linear_programming

WAD.linear_programming.compute_proportions(total_sum_per_celltype: dict) dict

Normalize total signal sums into cell-type proportions.

Parameters:

total_sum_per_celltype (dict) – Dictionary mapping each cell type to its total signal sum.

Returns:

Dictionary of normalized proportions for each cell type.

Return type:

dict

WAD.linear_programming.solve_deconvolution(A_matrix_path: str, y_matrix_path: str) ndarray

Perform linear programming deconvolution using given A matrix, y matrix

Parameters:
  • A_matrix_path (str) – Path to the TSV file containing the single-cell ATAC reference matrix.

  • y_matrix_path (str) – Path to the TSV file containing the bulk tissue ATAC matrix.

Returns:

Estimated non-negative contribution vector x for each cell type.

Return type:

np.ndarray