Commit 27c74ee7 authored by Blaise Li's avatar Blaise Li
Browse files

Check for non finite values in test_size_factor.

parent 3a505aeb
......@@ -1637,6 +1637,8 @@ rule test_size_factor:
size_factors = summaries.loc[normalizer]
by_norm = counts_data / size_factors
data = np.log10(by_norm[counts_data.prod(axis=1) > 0])
if not np.isfinite(data):
warn("Data contains invalid values:", str(data))
try:
xlabel = "log10(normalized counts)"
save_plot(pp, plot_counts_distribution, data, xlabel,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment