@@ -466,6 +466,10 @@ def run_tree_annotate(tree, input_annotated_tree=False,
466466 sys .exit (1 )
467467 #############################
468468 start = time .time ()
469+ logger .info ("treeprofiler using pastml to conduct the acr analysis, please cite\n "
470+ "Ishikawa SA, Zhukova A, Iwasaki W, Gascuel O. (2019). "
471+ "A Fast Likelihood Method to Reconstruct and Visualize Ancestral Scenarios. "
472+ "Molecular Biology and Evolution, msz131." )
469473 acr_discrete_columns_dict = {k : v for k , v in columns .items () if k in acr_discrete_columns }
470474 acr_results , annotated_tree = run_acr_discrete (annotated_tree , acr_discrete_columns_dict , \
471475 prediction_method = prediction_method , model = model , threads = threads , outdir = outdir )
@@ -476,6 +480,7 @@ def run_tree_annotate(tree, input_annotated_tree=False,
476480 # get observed delta
477481 # only MPPA,MAP method has marginal probabilities to calculate delta
478482 if delta_stats :
483+
479484 if prediction_method in ['MPPA' , 'MAP' ]:
480485 logger .info (f"Performing Delta Statistic analysis with Character { acr_discrete_columns } ...\n " )
481486 prop2delta = run_delta (acr_results , annotated_tree , ent_type = ent_type ,
@@ -488,6 +493,12 @@ def run_tree_annotate(tree, input_annotated_tree=False,
488493
489494 # start calculating p_value
490495 logger .info (f"Calculating p_value for delta statistic..." )
496+ logger .info ("treeprofiler calculating delta statistic, please cite:\n "
497+ "[1] Borges, R. et al. (2019). Measuring phylogenetic signal between categorical traits and phylogenies. "
498+ "Bioinformatics, 35, 1862-1869.\n "
499+ "[2] Ribeiro, D. et al. (2023). Testing phylogenetic signal with categorical traits and tree uncertainty, "
500+ "Bioinformatics, Volume 39, Issue 7, July 2023" )
501+
491502 # get a copy of the tree
492503 dump_tree = annotated_tree .copy ()
493504 utils .clear_extra_features ([dump_tree ], ["name" , "dist" , "support" ])
0 commit comments