changeset 19:3dd4977f3277 draft

Uploaded
author glogobyte
date Wed, 20 Oct 2021 10:01:21 +0000
parents 01679b6e886a
children 2eebd59cc5ea
files mirbase_graphs.py
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/mirbase_graphs.py	Wed Oct 20 10:01:07 2021 +0000
+++ b/mirbase_graphs.py	Wed Oct 20 10:01:21 2021 +0000
@@ -81,20 +81,20 @@
               t_tem_counts += x[2]
 
     fig = plt.figure(figsize=(7,5))
-    labels = 'miRNA RefSeq','template', 'unassigned','non-template'
+    labels = 'miRNA RefSeq','templated', 'unassigned','non-templated'
     sizes = [c_mat_counts, c_tem_counts, c_unmap_counts,c_non_counts]
     colors = ['gold', 'yellowgreen', 'lightcoral', 'lightskyblue']
     ax1 = plt.subplot2grid((1,2),(0,0))
     patches, texts, autotexts=plt.pie(sizes, labels=labels, colors=colors, startangle=140,autopct='%1.1f%%',radius=0.8)
     [x.set_fontsize(10) for x in texts]
-    plt.title(group_name1.capitalize() + ' Group (reads)',fontsize=12)
-    labels = 'miRNA RefSeq','Template', 'Unassigned','non-template'
+    plt.title(group_name1.capitalize() + ' group (reads)',fontsize=12)
+    labels = 'miRNA RefSeq','templated', 'Unassigned','non-templated'
     sizes = [t_mat_counts, t_tem_counts, t_unmap_counts, t_non_counts]
     colors = ['gold', 'yellowgreen', 'lightcoral', 'lightskyblue']
     ax2 = plt.subplot2grid((1,2),(0,1))
     patches, texts, autotexts=plt.pie(sizes, labels=labels, colors=colors, startangle=140,autopct='%1.1f%%',radius=0.8)
     [x.set_fontsize(10) for x in texts]
-    plt.title(group_name2.capitalize() + ' Group (reads)', fontsize=12)
+    plt.title(group_name2.capitalize() + ' group (reads)', fontsize=12)
     plt.savefig('pie_non.png',dpi=300)
 
 ######################################################################################################################################################
@@ -158,7 +158,7 @@
 
 
     fig = plt.figure()
-    labels = 'miRNA RefSeq','template', 'unassigned'
+    labels = 'miRNA RefSeq','templated', 'unassigned'
     sizes = [c_mat_counts, c_tem_counts, c_unmap_counts]
     colors = ['gold', 'yellowgreen', 'lightskyblue']
     explode = (0.2, 0.05, 0.1)
@@ -166,7 +166,7 @@
     patches, texts, autotexts=plt.pie(sizes, labels=labels, colors=colors, startangle=140,autopct='%1.1f%%',radius=0.8)
     [x.set_fontsize(10) for x in texts]
     plt.title(group_name1.capitalize() + ' group (reads)', fontsize=12)
-    labels = 'miRNA RefSeq','Template', 'Unassigned'
+    labels = 'miRNA RefSeq','templated', 'unassigned'
     sizes = [t_mat_counts, t_tem_counts, t_unmap_counts]
     colors = ['gold', 'yellowgreen', 'lightskyblue']
     explode = (0.2, 0.05, 0.1)
@@ -454,11 +454,11 @@
 def logo_seq_red(merge, flag, group_name):
 
     if flag=="c":
-       titlos= group_name + " group (redundant)"
+       titlos= group_name.capitalize() + " group (redundant)"
        file_logo="c_logo.png"
        file_bar="c_bar.png"
     if flag=="t":
-       titlos= group_name + " group (redundant)"
+       titlos= group_name.capitalize() + " group (redundant)"
        file_logo="t_logo.png"
        file_bar="t_bar.png"