We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6dbf64 commit 5d92faaCopy full SHA for 5d92faa
diffxpy/testing/utils.py
@@ -63,6 +63,7 @@ def parse_size_factors(size_factors, data):
63
if isinstance(size_factors, pd.core.series.Series):
64
size_factors = size_factors.values
65
assert size_factors.shape[0] == data.shape[0], "data matrix and size factors must contain same number of cells"
66
+ assert np.all(size_factors > 0), "size_factors <= 0 found, please remove these cells"
67
return size_factors
68
69
0 commit comments