From 0f527b47f86857317676dc215e42d206195fcec1 Mon Sep 17 00:00:00 2001 From: Ajay Panyala Date: Sat, 4 Mar 2017 17:35:50 -0800 Subject: [PATCH] Add text for each bar showing kmer and percentage frequency --- mercat/mercat.py | 4 ++-- mercat/metrics.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mercat/mercat.py b/mercat/mercat.py index 28cc35f..fdbe55e 100644 --- a/mercat/mercat.py +++ b/mercat/mercat.py @@ -485,7 +485,7 @@ def mercat_main(): os.chdir(plots_dir) for basename_ipfile in top10_all_samples: - df10,sum_kmer_count = top10_all_samples[basename_ipfile] + df10,_ = top10_all_samples[basename_ipfile] if mflag_protein: mercat_scatter_plots(basename_ipfile, 'PI', df10, kmerstring) mercat_scatter_plots(basename_ipfile, 'MW', df10, kmerstring) @@ -496,7 +496,7 @@ def mercat_main(): sbname = os.path.basename(m_inputfolder) if len(all_ipfiles) == 1: sbname = os.path.basename(all_ipfiles[0]) - mercat_stackedbar_plots(sbname,top10_all_samples, 'Count', kmerstring, sum_kmer_count) + mercat_stackedbar_plots(sbname,top10_all_samples, 'Count', kmerstring) diff --git a/mercat/metrics.py b/mercat/metrics.py index 5bad5b1..8e6a454 100644 --- a/mercat/metrics.py +++ b/mercat/metrics.py @@ -292,7 +292,7 @@ def mercat_scatter_plots(bif,xlab,res_df,kmerstring): -def mercat_stackedbar_plots(inp_folder,top10_all_samples,xlab,kmerstring,total_freq_count): +def mercat_stackedbar_plots(inp_folder,top10_all_samples,xlab,kmerstring): axis_title_font_size = 20 axis_tick_label_size = 18 legend_font_size = 14 @@ -306,7 +306,7 @@ def mercat_stackedbar_plots(inp_folder,top10_all_samples,xlab,kmerstring,total_f kmernames = dict() for bif in top10_all_samples: - res_df,_ = top10_all_samples[bif] + res_df,total_freq_count = top10_all_samples[bif] index_vals = res_df.index.values kmernames[bif]=index_vals #topk10 = min(len(index_vals), 10)