INNER CODE UNIT · Python
cond
scverse/PyDESeq2 · src/pydeseq2/dds.py:518
def cond(self, **kwargs):
"""
Get a contrast vector representing a specific condition.
Parameters
----------
**kwargs
Column/value pairs.
Returns
-------
A contrast vector that aligns to the columns of the design matrix.
"""
try:
return self.formulaic_contrasts.cond(**kwargs)
except AttributeError:
raise AttributeError(
"The cond() method requires a formula-based design. "