INNER CODE UNIT · Python
vst_transform
scverse/PyDESeq2 · src/pydeseq2/dds.py:395
def vst_transform(self, counts: np.ndarray | None = None) -> np.ndarray:
"""Apply the variance stabilizing transformation.
Uses the results from the ``vst_fit`` method.
Parameters
----------
counts
Counts to transform.
If ``None``, use the counts from the current dataset. (default: ``None``).
Returns
-------
Variance stabilized counts.
Raises
------
RuntimeError