You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Beginning in SciPy 1.9, np.matrix inputs (not recommended for new code) are converted to np.ndarray before the calculation is performed. In this case, the output will be a scalar or np.ndarray of appropriate shape rather than a 2D np.matrix. Similarly, while masked elements of masked arrays are ignored, the output will be a scalar or np.ndarray rather than a masked array with mask=False.
This is fixed by replacing line 55 in ClusterUtils.py:
Hi @leoforster, Many thanks for your interest in Genes2Genes and for bringing our attention to this version related format change in the scipy.stats.mode() output. Thank you for suggesting a fix as well. Will soon update the source to handle it.
Hi, thanks for this interesting new approach for studying single-cell trajectories. I was following the tutorial notebook at https://github.com/Teichlab/Genes2Genes/blob/main/notebooks/Tutorial.ipynb and ran into errors during the Clustering alignments step:
df = ClusterUtils.run_clustering(aligner, metric='levenshtein', experiment_mode=True)
errors with:
This error in scipy.stats.mode might be related to the changes introduced with scipy v1.9 (https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mode.html):
This is fixed by replacing line 55 in ClusterUtils.py:
silhouette_score_mode = scipy.stats.mode(silhouette_score_samples)[0][0]
with
silhouette_score_mode = scipy.stats.mode(silhouette_score_samples)[0]
or checking generally with something like:
The text was updated successfully, but these errors were encountered: