@@ -202,8 +202,8 @@ def gen_reconstructed_png(denovo_name, basis_mtx, basis_names, weights, output_p
202202 elif mtype in ID_CONTEXTS :
203203 reconstruction_plot = sigPlt .plotID (reconstruction_mtx , output_path , "reconstruction_" + project , mtype , True )
204204 elif mtype in CNV_CONTEXTS :
205- reconstruction_plot = pltCNV .plotCNV (reconstruction_mtx , output_path , "reconstruction_" + project , plot_type = "pdf" , \
206- percentage = True , aggregate = False , read_from_file = False , write_to_file = False )
205+ reconstruction_plot = pltCNV .plotCNV (reconstruction_mtx , output_path , "reconstruction_" + project , plot_type = "pdf" , \
206+ percentage = True , aggregate = False , read_from_file = False , write_to_file = False )
207207 else :
208208 print ("ERROR: mtype is " + mtype + " and is not yet supported." )
209209
@@ -323,14 +323,11 @@ def run_PlotDecomposition(denovo_mtx, denovo_name, basis_mtx, basis_names, \
323323 denovo_plots_dict ,basis_plots_dict = gen_sub_plots (denovo_mtx , basis_mtx , output_path , project , mtype )
324324 reconstructed_mtx ,reconstruction_plot_dict = gen_reconstructed_png (denovo_name , basis_mtx , basis_names , \
325325 weights , output_path , project , mtype )
326-
327326 present_sigs = np .array (basis_mtx [basis_names ])
328327 reconstructed_mtx = np .dot (present_sigs ,nonzero_exposures )
329-
330328 denovo_plots_dict = open_byte_to_img_dict (denovo_plots_dict )
331329 basis_plots_dict = open_byte_to_img_dict (basis_plots_dict )
332330 reconstruction_plot_dict = open_byte_to_img_dict (reconstruction_plot_dict )
333-
334331 statistics = calculate_similarities (denovo_mtx , denovo_name , reconstructed_mtx )
335332 byte_plot = gen_decomposition (denovo_name , basis_names , weights , output_path , project , \
336333 mtype , denovo_plots_dict , basis_plots_dict , reconstruction_plot_dict , \
0 commit comments