inmoose.deseq2.DESeqDataSet.DESeqDataSet.setDispFunction

DESeqDataSet.setDispFunction(value, estimateVar=True)

Setter for the DESeqDataSet.dispersionFunction property

This function also overwrites self.var["dispFit"] and the estimate of the variance of dispersion residuals (see argument estimateVar).

Parameters:
  • value (function) – a function

  • estimateVar (bool) – whether to estimate the variance of the dispersion residuals. Setting this to False is needed, e.g. in estimateDispersionsMAP(), when called on a subset of the full dataset in parallel execution.

Returns:

self object

Return type:

DESeqDataSet