From 6c2c8dd50f13cc09e4dc54723bbf682393692b81 Mon Sep 17 00:00:00 2001 From: pwendering Date: Fri, 24 Feb 2023 17:10:43 +0100 Subject: [PATCH] Add sample sizes to EC classes --- Program/plot_delta_va.m | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Program/plot_delta_va.m b/Program/plot_delta_va.m index 9b6b5ed..008b0d7 100644 --- a/Program/plot_delta_va.m +++ b/Program/plot_delta_va.m @@ -210,6 +210,8 @@ for i=1:numel(u_ec_class) X = kcat_tab.Var4(strcmp(ec_class,u_ec_class{i})); + u_ec_class{i} = [u_ec_class{i} ' (n=' num2str(numel(X)) ')']; + % get interquartile range p = prctile(X,[25 75]); @@ -282,10 +284,11 @@ % ) fprintf(... - 'Median (+/- sd) %s: %g (+/- %g) /s\n',... + 'Median (+/- sd) %s: %g (+/- %g) (n=%d)/s\n',... u_ec_class{i},... median(X,'omitnan'),... - std(X,'omitnan')... + std(X,'omitnan'),... + numel(X)... ) end hold off @@ -295,7 +298,7 @@ xtickangle(90) ylim(y_limits) ylabel(... - 'log_{10} k_{cat}',... + 'log_{10} k_{cat} [s^{-1}]',... 'FontSize',14 ... ) set(gca,...