inmoose.deseq2.Hmisc.wtd_quantile

inmoose.deseq2.Hmisc.wtd_quantile(x, weights=None, probs=[0, 0.25, 0.5, 0.75, 1], normwt=False, na_rm=True)

compute weighted quantiles

This function is copied from R package Hmisc, to avoid extra package dependencies, with the alteration of leaving out parameter type (not used in DESeq) and commenting out the isdate test.

Note that this copy was already done in the original DESeq2 R code.