pydeseq2.dispersions.robust_method_of_moments_disp#

robust_method_of_moments_disp(normed_counts, design_matrix)#

Perform dispersion estimation using a method of trimmed moments.

Used for outlier detection based on Cook’s distance.

Parameters:
normed_counts ndarray

Array of deseq2-normalized read counts. Rows: samples, columns: genes.

design_matrix DataFrame

A DataFrame with experiment design information (to split cohorts). Indexed by sample barcodes. Unexpanded, with intercept.

Return type:

ndarray

Returns:

Trimmed method of moment dispersion estimates. Used for outlier detection based on Cook’s distance.