acidbase.log_ratio_to_fold_change¶
- acidbase.log_ratio_to_fold_change(x: float | ndarray, base: int = 2) float | ndarray¶
Convert log ratio to fold change.
- Parameters:
- Returns:
Fold-change values.
- Return type:
Notes
Matches R’s
logRatioToFoldChangesemantics: after exponentiation, any result< 1is replaced by-1 / resultto give a negative fold change representing down-regulation.