Skip to content

Commit

Permalink
Add text for each bar showing kmer and percentage frequency
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaypanyala committed Mar 5, 2017
1 parent 38fb44f commit 0f527b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mercat/mercat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)



Expand Down
4 changes: 2 additions & 2 deletions mercat/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 0f527b4

Please sign in to comment.