Tokenization fixed
Browse files
tokenization_nicheformer.py
CHANGED
|
@@ -277,6 +277,9 @@ class NicheformerTokenizer(PreTrainedTokenizer):
|
|
| 277 |
"""
|
| 278 |
if isinstance(data, ad.AnnData):
|
| 279 |
adata = data.copy()
|
|
|
|
|
|
|
|
|
|
| 280 |
|
| 281 |
# Align with reference model if available
|
| 282 |
if hasattr(self, '_load_reference_model'):
|
|
|
|
| 277 |
"""
|
| 278 |
if isinstance(data, ad.AnnData):
|
| 279 |
adata = data.copy()
|
| 280 |
+
print(f"modality dtype: {adata.obs['modality'].dtype}")
|
| 281 |
+
print(f"specie dtype: {adata.obs['specie'].dtype}")
|
| 282 |
+
print(f"assay dtype: {adata.obs['assay'].dtype}")
|
| 283 |
|
| 284 |
# Align with reference model if available
|
| 285 |
if hasattr(self, '_load_reference_model'):
|