AllenInstitute / transcriptomic_clustering

improved clustering pipeline for transcriptomic data
Other
4 stars 1 forks source link

Ignore divide by zero warning in log10 when computing de scores #104

Closed sgratiy closed 3 years ago

sgratiy commented 3 years ago

Avoid warning inside the de_score function " RuntimeWarning: divide by zero encountered in log10" it results from computing log10(pval) when pval=0 returning an inf. This is not a problem because we are just thresholding the de_scores. The warning is annoying because it appears multiple times in the notebook.