@@ -1719,68 +1719,68 @@ def stats_per_researcher (request):
1719
1719
else :
1720
1720
total_lanes_summary [sequencer ] = ''
1721
1721
1722
-
1723
- comp_graphs , comp_seq_graphs = [] , []
1724
- for sequencer in projects_name_dict .keys () :
1725
- for lane_summary in total_lanes_summary [sequencer ] :
1726
- q_30_value , mean_q_value , yield_mb_value , cluster_pf_value = lane_summary .get_stats_info ().split (';' )
1727
- total_q_30_list .append (float (q_30_value ))
1728
- total_mean_q_list .append (float (mean_q_value ))
1729
- total_yield_mb_list .append (int (yield_mb_value .replace (',' ,'' )))
1730
- total_cluster_pf_list .append (int (cluster_pf_value .replace (',' ,'' )))
1731
- comp_q30_dict [sequencer ]['Other investigators' ]= format (statistics .mean (total_q_30_list ), '.2f' )
1732
- comp_mean_q_dict [sequencer ]['Other investigators' ] = format (statistics .mean (total_mean_q_list ), '.2f' )
1733
- comp_yield_mb_dict [sequencer ]['Other investigators' ] = sum (total_yield_mb_list )
1734
- comp_cluster_pf_dict [sequencer ]['Other investigators' ] = sum (total_cluster_pf_list )
1735
- # create the graphic for q30 quality
1736
-
1737
- theme = ''
1738
- heading = 'Comparation graphics for Q > 30 for investigator ' + r_name
1739
- sub_caption = ''
1740
- x_axis_name = r_name + ' versus other investigators'
1741
- y_axis_name = 'Q 30 (in %)'
1742
-
1743
- data_source = column_graphic_simple (heading , sub_caption , x_axis_name , y_axis_name , theme , comp_q30_dict [sequencer ])
1744
- seq_chart = sequencer + 'comparation_q30_chart'
1745
- seq_graph = sequencer + 'comparation_q30_graph'
1746
- comp_q30_seq_graph = FusionCharts ("column3d" , seq_graph , "500" , "350" ,seq_chart , "json" , data_source ).render ()
1747
- comp_seq_graphs .append ([seq_chart , comp_q30_seq_graph ])
1748
-
1749
- theme = ''
1750
- heading = 'Comparation graphics for Mean Quality for investigator ' + r_name
1751
- sub_caption = ''
1752
- x_axis_name = r_name + ' versus other investigators'
1753
- y_axis_name = 'Mean Quality'
1754
- data_source = column_graphic_simple (heading , sub_caption , x_axis_name , y_axis_name , theme , comp_mean_q_dict [sequencer ])
1755
- seq_chart = sequencer + 'comparation_mean_q_chart'
1756
- seq_graph = sequencer + 'comparation_mean_q_graph'
1757
- comp_mean_q_seq_graph = FusionCharts ("column3d" , seq_graph , "500" , "350" ,seq_chart , "json" , data_source ).render ()
1758
- comp_seq_graphs .append ([seq_chart , comp_mean_q_seq_graph ])
1759
-
1760
- theme = ''
1761
- heading = 'Comparation graphics for Yield (Mb) for investigator ' + r_name
1762
- sub_caption = ''
1763
- x_axis_name = r_name + ' versus other investigators'
1764
- y_axis_name = '(Mb)'
1765
- data_source = column_graphic_simple (heading , sub_caption , x_axis_name , y_axis_name , theme , comp_yield_mb_dict [sequencer ])
1766
- seq_chart = sequencer + 'comparation_yield_mb_chart'
1767
- seq_graph = sequencer + 'comparation_yield_mb_graph'
1768
- comp_yield_mb_seq_graph = FusionCharts ("column3d" , seq_graph , "500" , "350" ,seq_chart , "json" , data_source ).render ()
1769
- comp_seq_graphs .append ([seq_chart , comp_yield_mb_seq_graph ])
1770
-
1771
- theme = ''
1772
- heading = 'Comparation graphics for Cluster PF for investigator ' + r_name
1773
- sub_caption = ''
1774
- x_axis_name = r_name + ' versus other investigators'
1775
- y_axis_name = 'Cluster pf'
1776
- data_source = column_graphic_simple (heading , sub_caption , x_axis_name , y_axis_name , theme , comp_cluster_pf_dict [sequencer ])
1777
- seq_chart = sequencer + 'comparation_cluster_pf_chart'
1778
- seq_graph = sequencer + 'comparation_cluster_pf_graph'
1779
- comp_cluster_pf_seq_graph = FusionCharts ("column3d" , seq_graph , "500" , "350" ,seq_chart , "json" , data_source ).render ()
1780
- comp_seq_graphs .append ([seq_chart , comp_cluster_pf_seq_graph ])
1781
- comp_graphs .append (comp_seq_graphs )
1782
-
1783
- researcher_statistics ['comp_graphs' ] = comp_graphs
1722
+ if len ( total_lanes_summary ) > 0 :
1723
+ comp_graphs , comp_seq_graphs = [] , []
1724
+ for sequencer in projects_name_dict .keys () :
1725
+ for lane_summary in total_lanes_summary [sequencer ] :
1726
+ q_30_value , mean_q_value , yield_mb_value , cluster_pf_value = lane_summary .get_stats_info ().split (';' )
1727
+ total_q_30_list .append (float (q_30_value ))
1728
+ total_mean_q_list .append (float (mean_q_value ))
1729
+ total_yield_mb_list .append (int (yield_mb_value .replace (',' ,'' )))
1730
+ total_cluster_pf_list .append (int (cluster_pf_value .replace (',' ,'' )))
1731
+ comp_q30_dict [sequencer ]['Other investigators' ]= format (statistics .mean (total_q_30_list ), '.2f' )
1732
+ comp_mean_q_dict [sequencer ]['Other investigators' ] = format (statistics .mean (total_mean_q_list ), '.2f' )
1733
+ comp_yield_mb_dict [sequencer ]['Other investigators' ] = sum (total_yield_mb_list )
1734
+ comp_cluster_pf_dict [sequencer ]['Other investigators' ] = sum (total_cluster_pf_list )
1735
+ # create the graphic for q30 quality
1736
+
1737
+ theme = ''
1738
+ heading = 'Comparation graphics for Q > 30 for investigator ' + r_name
1739
+ sub_caption = ''
1740
+ x_axis_name = r_name + ' versus other investigators'
1741
+ y_axis_name = 'Q 30 (in %)'
1742
+
1743
+ data_source = column_graphic_simple (heading , sub_caption , x_axis_name , y_axis_name , theme , comp_q30_dict [sequencer ])
1744
+ seq_chart = sequencer + 'comparation_q30_chart'
1745
+ seq_graph = sequencer + 'comparation_q30_graph'
1746
+ comp_q30_seq_graph = FusionCharts ("column3d" , seq_graph , "500" , "350" ,seq_chart , "json" , data_source ).render ()
1747
+ comp_seq_graphs .append ([seq_chart , comp_q30_seq_graph ])
1748
+
1749
+ theme = ''
1750
+ heading = 'Comparation graphics for Mean Quality for investigator ' + r_name
1751
+ sub_caption = ''
1752
+ x_axis_name = r_name + ' versus other investigators'
1753
+ y_axis_name = 'Mean Quality'
1754
+ data_source = column_graphic_simple (heading , sub_caption , x_axis_name , y_axis_name , theme , comp_mean_q_dict [sequencer ])
1755
+ seq_chart = sequencer + 'comparation_mean_q_chart'
1756
+ seq_graph = sequencer + 'comparation_mean_q_graph'
1757
+ comp_mean_q_seq_graph = FusionCharts ("column3d" , seq_graph , "500" , "350" ,seq_chart , "json" , data_source ).render ()
1758
+ comp_seq_graphs .append ([seq_chart , comp_mean_q_seq_graph ])
1759
+
1760
+ theme = ''
1761
+ heading = 'Comparation graphics for Yield (Mb) for investigator ' + r_name
1762
+ sub_caption = ''
1763
+ x_axis_name = r_name + ' versus other investigators'
1764
+ y_axis_name = '(Mb)'
1765
+ data_source = column_graphic_simple (heading , sub_caption , x_axis_name , y_axis_name , theme , comp_yield_mb_dict [sequencer ])
1766
+ seq_chart = sequencer + 'comparation_yield_mb_chart'
1767
+ seq_graph = sequencer + 'comparation_yield_mb_graph'
1768
+ comp_yield_mb_seq_graph = FusionCharts ("column3d" , seq_graph , "500" , "350" ,seq_chart , "json" , data_source ).render ()
1769
+ comp_seq_graphs .append ([seq_chart , comp_yield_mb_seq_graph ])
1770
+
1771
+ theme = ''
1772
+ heading = 'Comparation graphics for Cluster PF for investigator ' + r_name
1773
+ sub_caption = ''
1774
+ x_axis_name = r_name + ' versus other investigators'
1775
+ y_axis_name = 'Cluster pf'
1776
+ data_source = column_graphic_simple (heading , sub_caption , x_axis_name , y_axis_name , theme , comp_cluster_pf_dict [sequencer ])
1777
+ seq_chart = sequencer + 'comparation_cluster_pf_chart'
1778
+ seq_graph = sequencer + 'comparation_cluster_pf_graph'
1779
+ comp_cluster_pf_seq_graph = FusionCharts ("column3d" , seq_graph , "500" , "350" ,seq_chart , "json" , data_source ).render ()
1780
+ comp_seq_graphs .append ([seq_chart , comp_cluster_pf_seq_graph ])
1781
+ comp_graphs .append (comp_seq_graphs )
1782
+
1783
+ researcher_statistics ['comp_graphs' ] = comp_graphs
1784
1784
1785
1785
# Sequencer graphic utilization
1786
1786
sequencer_used = {}
0 commit comments