Teichlab / cellphonedb

MIT License
337 stars 105 forks source link

Unexpected error after [Clustering Statistical Analysis] #384

Open damigua1 opened 1 year ago

damigua1 commented 1 year ago

hi,I got the following error when using cellphonedb, I would like to ask for a solution, thank you very much!

(base) ringo@ubuntu:~$ cellphonedb method statistical_analysis cellphonedb_meta.txt cellphonedb_count.txt --counts-data=gene_name --subsampling --subsampling-log True

[ ][CORE][07/10/22-17:06:09][INFO] Initializing SqlAlchemy CellPhoneDB Core
[ ][CORE][07/10/22-17:06:09][INFO] Using custom database at /home/ringo/.cpdb/releases/v4.0.0/cellphone.db
[ ][APP][07/10/22-17:06:09][INFO] Launching Method cpdb_statistical_analysis_local_method_launcher
[ ][APP][07/10/22-17:06:09][INFO] Launching Method _set_paths
[ ][APP][07/10/22-17:06:09][INFO] Launching Method _load_meta_counts
[ ][APP][07/10/22-17:06:22][INFO] Launching Method _check_counts_data
[ ][CORE][07/10/22-17:06:22][INFO] Launching Method cpdb_statistical_analysis_launcher
[ ][CORE][07/10/22-17:06:22][INFO] Launching Method _counts_validations
[ ][CORE][07/10/22-17:06:22][INFO] Subsampling 4788 to 1596
[ ][CORE][07/10/22-17:06:28][INFO] Done subsampling 4788 to 1596
[ ][CORE][07/10/22-17:06:28][INFO] Launching Method get_interactions_genes_complex
[ ][CORE][07/10/22-17:06:28][INFO] [Cluster Statistical Analysis] Threshold:0.1 Iterations:1000 Debug-seed:-1 Threads:4 Precision:3
[ ][APP][07/10/22-17:06:28][ERROR] Unexpected error
Traceback (most recent call last):
  File "/home/ringo/.local/lib/python3.8/site-packages/cellphonedb/src/api_endpoints/terminal_api/method_terminal_api_endpoints/method_terminal_commands.py", line 131, in statistical_analysis
    LocalMethodLauncher(cpdb_app.create_app(verbose, database)). \
  File "/home/ringo/.local/lib/python3.8/site-packages/cellphonedb/src/local_launchers/local_method_launcher.py", line 62, in cpdb_statistical_analysis_local_method_launcher
    self.cellphonedb_app.method.cpdb_statistical_analysis_launcher(
  File "/home/ringo/.local/lib/python3.8/site-packages/cellphonedb/src/core/methods/method_launcher.py", line 95, in cpdb_statistical_analysis_launcher
    cpdb_statistical_analysis_method.call(meta,
  File "/home/ringo/.local/lib/python3.8/site-packages/cellphonedb/src/core/methods/cpdb_statistical_analysis_method.py", line 27, in call
    cpdb_statistical_analysis_complex_method.call(meta.copy(),
  File "/home/ringo/.local/lib/python3.8/site-packages/cellphonedb/src/core/methods/cpdb_statistical_analysis_complex_method.py", line 57, in call
    raise NoInteractionsFound()
cellphonedb.src.core.exceptions.NoInteractionsFound.NoInteractionsFound: No CellPhoneDB interacions found in this input.