Skip to content

Commit afcf1f8

Browse files
committed
dotplot input detection and leidenalg>=0.9.0
1 parent 6b251d1 commit afcf1f8

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

celltypist/plot.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ def _get_fraction_prob_df(predictions: AnnotationResult,
1414
For internal use. Get the fraction and avg. probability data frames (predictions * truths) from AnnotationResult.
1515
"""
1616
#prediction
17+
if not isinstance(predictions, AnnotationResult):
18+
raise TypeError(
19+
f"🛑 Please provide a correct input - an `AnnotationResult` derived from `celltypist.annotate`")
1720
if use_as_prediction not in predictions.predicted_labels:
1821
if use_as_prediction == 'majority_voting':
1922
raise KeyError(

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ openpyxl>=3.0.4
55
click>=7.1.2
66
requests>=2.23.0
77
scanpy>=1.7.0
8-
leidenalg>=0.8.3
8+
leidenalg>=0.9.0
99
annoy>=1.17.0
1010
myst_parser==0.15.2
1111
sphinx>=3.5.2

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ openpyxl>=3.0.4
55
click>=7.1.2
66
requests>=2.23.0
77
scanpy>=1.7.0
8-
leidenalg>=0.8.3
8+
leidenalg>=0.9.0
99
annoy>=1.17.0

0 commit comments

Comments
 (0)