INNER CODE UNIT · Python

fit_dispersion_trend

scverse/PyDESeq2 · src/pydeseq2/dds.py:763

    def fit_dispersion_trend(self, vst: bool = False) -> None:
        """Fit the dispersion trend curve.

        Parameters
        ----------
        vst
            Whether the dispersion trend curve is being fitted as part of the VST pipeline. (default: ``False``).
        """
        disp_param_name = "vst_genewise_dispersions" if vst else "genewise_dispersions"
        fit_type = self.vst_fit_type if vst else self.fit_type

        # Check that genewise dispersions are available. If not, compute them.
        if disp_param_name not in self.var:
            self.fit_genewise_dispersions(vst)

        if not self.quiet:
            print("Fitting dispersion trend curve...", file=sys.stderr)
        start = time.time()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…