Skip to content

Commit

Permalink
fix: change default axis in trimmedVariance from sample-wise to gene-…
Browse files Browse the repository at this point in the history
…wise
  • Loading branch information
BorisMuzellec committed Jan 12, 2023
1 parent 11b1b43 commit 580f216
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pydeseq2/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ def trimfn(x):
return varEst.max(axis=1)


def trimmed_variance(x, trim=0.125, axis=1):
def trimmed_variance(x, trim=0.125, axis=0):
"""Return trimmed variance.
Compute the variance after trimming data of its smallest and largest quantiles.
Expand All @@ -683,10 +683,10 @@ def trimmed_variance(x, trim=0.125, axis=1):
Data whose trimmed variance to compute.
trim : float
Fraction of data to trim at each end. (default: 0.1).
Fraction of data to trim at each end. (default: 0.125).
axis : int
Dimension along which to compute variance.
Dimension along which to compute variance. (default: 0).
Returns
-------
Expand Down

0 comments on commit 580f216

Please sign in to comment.