scButterfly.train_model_perturb.Model.test

Model.test(test_id_r, test_id_a, model_path=None, load_model=True, output_path=None, test_pca=True, test_DEGs=True, test_R2=True, test_dotplot=True, output_data=False, return_predict=False)

Test for model.

Parameters:
  • train_id_r (list) – list of RNA data cell ids for training.

  • train_id_a (list) – list of ATAC data cell ids for training.

  • model_path (str) – path for load trained model, default None.

  • load_model (bool) – load the pretrained model or not, deafult True.

  • output_path (str) – file path for model output, default None.

  • test_pca (bool) – test PCA or not, deafult True.

  • test_DEGs (bool) – test overlap counts of DEGs or not, deafult True.

  • test_R2 (bool) – test R2 regression index or not, deafult True.

  • test_dotplot (bool) – test dotplot or not, deafult True.

  • output_data (bool) – output the predicted test data to file or not, deafult False.

  • return_predict (bool) – return predict or not, if True, output (A2R_predict, R2A_predict) as returns, deafult False.