Open jeandut opened 4 months ago
This information is already available from formulaic directly. When design is your design matrix, there is
design
design.model_spec.variable_terms
and
design.model_spec.term_variables
to map from variables to formulae terms and vice versa.
_Originally posted by @grst in https://github.com/owkin/PyDESeq2/pull/181#discussion_r1549442869_
The complex logic used to handle interaction terms could indeed be simplified (as long as this logic is still needed).
This information is already available from formulaic directly. When
design
is your design matrix, there isand
to map from variables to formulae terms and vice versa.
_Originally posted by @grst in https://github.com/owkin/PyDESeq2/pull/181#discussion_r1549442869_
The complex logic used to handle interaction terms could indeed be simplified (as long as this logic is still needed).