Skip to content

Commit

Permalink
Minor mods to metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaypanyala committed Mar 7, 2017
1 parent 0f527b4 commit cd8f318
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mercat/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand All @@ -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]
Expand Down Expand Up @@ -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)
plot(fig, filename=inp_folder + "_barchart_"+xlab+".html", auto_open=False)

0 comments on commit cd8f318

Please sign in to comment.