Skip to content

Commit 455bf40

Browse files
added clusterCategories
1 parent bdd9bcf commit 455bf40

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

cytetype/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from .main import CyteType
22

33
__all__ = ["CyteType"]
4-
__version__ = "0.11.0"
4+
__version__ = "0.12.0"

cytetype/api.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ def _transform_results(results_data: Dict[str, Any]) -> Dict[str, Any]:
162162
"ontologyTermID": annotation_data.get(
163163
"cellOntologyTerm", "Unknown"
164164
),
165-
# Include additional fields from new format
166165
"granularAnnotation": annotation_data.get(
167166
"granularAnnotation", ""
168167
),
@@ -183,13 +182,11 @@ def _transform_results(results_data: Dict[str, Any]) -> Dict[str, Any]:
183182
}
184183
annotations_list.append(transformed_annotation)
185184

186-
# Build result in expected format
187185
return {
188186
"annotations": annotations_list,
189187
"summary": results_data.get("summary", {}),
190-
"semanticOrder": results_data.get("semanticOrder", []),
188+
"clusterCategories": results_data.get("clusterCategories", []),
191189
"studyContext": results_data.get("studyContext", ""),
192-
# Include raw annotations for advanced usage
193190
"raw_annotations": annotations_dict,
194191
}
195192

0 commit comments

Comments
 (0)