From cd8f3189e778f44d3b1d6022a7c6377a82cd174e Mon Sep 17 00:00:00 2001 From: Ajay Panyala Date: Tue, 7 Mar 2017 10:50:06 -0800 Subject: [PATCH] Minor mods to metrics --- mercat/metrics.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mercat/metrics.py b/mercat/metrics.py index 8e6a454..ee6c1b7 100644 --- a/mercat/metrics.py +++ b/mercat/metrics.py @@ -299,7 +299,7 @@ def mercat_stackedbar_plots(inp_folder,top10_all_samples,xlab,kmerstring): marker_size = 10 topk10 = 10 - all_samples = top10_all_samples.keys() + all_samples = list(top10_all_samples.keys()) btraces = [] kmer_percent = dict() @@ -320,7 +320,7 @@ def mercat_stackedbar_plots(inp_folder,top10_all_samples,xlab,kmerstring): kmer_percent[bif].append(fr) ylist = dict() - all_kmer_percents = (kmer_percent.values()) + all_kmer_percents = (list(kmer_percent.values())) ylist[0] = list(itertools.repeat(0,len(all_samples))) for i in range(1,topk10+1): ylist[i] = [x[i-1] for x in all_kmer_percents] @@ -433,4 +433,4 @@ def mercat_stackedbar_plots(inp_folder,top10_all_samples,xlab,kmerstring): ) fig = go.Figure(data=data, layout=layout) - plot(fig, filename=inp_folder + "_barchart_"+xlab+".html", auto_open=False) \ No newline at end of file + plot(fig, filename=inp_folder + "_barchart_"+xlab+".html", auto_open=False)