Christina Theodoris commited on
Commit
65b4915
1 Parent(s): e820326

Add error message for "gene" embedding extraction under development.

Browse files
Files changed (1) hide show
  1. geneformer/emb_extractor.py +8 -1
geneformer/emb_extractor.py CHANGED
@@ -303,7 +303,14 @@ class EmbExtractor:
303
 
304
 
305
  def validate_options(self):
306
-
 
 
 
 
 
 
 
307
  # confirm arguments are within valid options and compatible with each other
308
  for attr_name,valid_options in self.valid_option_dict.items():
309
  attr_value = self.__dict__[attr_name]
 
303
 
304
 
305
  def validate_options(self):
306
+ # first disallow options under development
307
+ if self.emb_mode == "gene":
308
+ logger.error(
309
+ "Extraction and plotting of gene-level embeddings currently under development. " \
310
+ "Current valid option for 'emb_mode': 'cell'"
311
+ )
312
+ raise
313
+
314
  # confirm arguments are within valid options and compatible with each other
315
  for attr_name,valid_options in self.valid_option_dict.items():
316
  attr_value = self.__dict__[attr_name]