From 56771e1bebec0cd29b27d1112121dc80ed817653 Mon Sep 17 00:00:00 2001 From: dengzq1234 Date: Tue, 4 Feb 2025 09:57:58 +0100 Subject: [PATCH 1/2] correct in case layout name too long --- treeprofiler/tree_plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/treeprofiler/tree_plot.py b/treeprofiler/tree_plot.py index 2482335..0465d12 100644 --- a/treeprofiler/tree_plot.py +++ b/treeprofiler/tree_plot.py @@ -665,7 +665,7 @@ def run(args): matrix, value2color, all_profiling_values = multiple2matrix(tree, profiling_prop, prop2type=prop2type, color_config=color_config, eteformat_flag=eteformat_flag) - matrix_layout = profile_layouts.LayoutPropsMatrixBinary(name=f"Profiling_{all_profiling_values}", + matrix_layout = profile_layouts.LayoutPropsMatrixBinary(name=f"Profiling_{profiling_prop}", matrix=matrix, matrix_props=all_profiling_values, value_range=[0,1], value_color=value2color, column=level, poswidth=args.column_width) level += 1 From fc769fcb02f6efff6f65fe9a726cd8abbc32cc74 Mon Sep 17 00:00:00 2001 From: dengzq1234 Date: Thu, 6 Feb 2025 10:54:06 +0100 Subject: [PATCH 2/2] make it easy for emapper profiling --- treeprofiler/tree_plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/treeprofiler/tree_plot.py b/treeprofiler/tree_plot.py index e16079d..d1dc1bb 100644 --- a/treeprofiler/tree_plot.py +++ b/treeprofiler/tree_plot.py @@ -807,7 +807,7 @@ def run(args): ] for multiple_text_prop in multiple_text_props: - matrix, value2color, all_profiling_values = multiple2matrix(tree, multiple_text_prop) + matrix, value2color, all_profiling_values = multiple2matrix(tree, multiple_text_prop, prop2type=prop2type, eteformat_flag=eteformat_flag) multiple_text_prop_layout = profile_layouts.LayoutPropsMatrixBinary(name=f"Profiling_{multiple_text_prop}", matrix=matrix, matrix_props=all_profiling_values, value_range=[0,1], active=False,