@@ -806,6 +806,7 @@ def update_ppt_variant_summary_table(data_nrows,DNA_sampleID,RNA_sampleID,TMB_DR
806806 else :
807807 TMB_illumina = "TMB = " + line .split ('\t ' )[1 ]
808808 TMB_TSO500 = line .split ('\t ' )[1 ]
809+ TMB_TSO500_nr = round (float (TMB_TSO500 .split ()[0 ]))
809810 if (line .split ('\t ' )[2 ] == 'NA' ):
810811 MSI_illumina = "MSI = NA"
811812 msi_text = "-"
@@ -910,32 +911,32 @@ def update_ppt_variant_summary_table(data_nrows,DNA_sampleID,RNA_sampleID,TMB_DR
910911 tf5 .paragraphs [0 ].text = str (preMTB_appendix_nrows )
911912 tf5 .paragraphs [0 ].font .size = Pt (7 )
912913 tf5 .paragraphs [0 ].alignment = PP_ALIGN .CENTER
913- if (TMB_DRUP_nr >= 0 and TMB_DRUP_nr <= 5 and str_TMB_DRUP != "" and str_TMB_DRUP != "NA" ):
914+ if (TMB_TSO500_nr >= 0 and TMB_TSO500_nr <= 5 and TMB_TSO500 != "" and TMB_TSO500 != "NA" ):
914915 roundshape = slide .shapes .add_shape (MSO_SHAPE .OVAL , Cm (7.07 ), Cm (3.90 ), Cm (0.58 ), Cm (0.58 ))
915916 roundshape .line .color .rgb = RGBColor (255 ,165 ,0 )
916917 textbox5 = slide .shapes .add_textbox (Inches (2.74 ), Inches (1.54 ), Inches (0.32 ), Inches (0.21 ))
917918 tf5 = textbox5 .text_frame
918- tf5 .paragraphs [0 ].text = str_TMB_DRUP
919+ tf5 .paragraphs [0 ].text = str ( TMB_TSO500_nr )
919920 tf5 .paragraphs [0 ].font .size = Pt (7 )
920921 tf5 .paragraphs [0 ].font .bold = True
921922 tf5 .paragraphs [0 ].alignment = PP_ALIGN .CENTER
922923 tf5 .paragraphs [0 ].font .color .rgb = RGBColor (250 ,250 ,250 )
923- if ((TMB_DRUP_nr > 5 and TMB_DRUP_nr <= 20 ) or str_TMB_DRUP == "" or str_TMB_DRUP == "NA" ):
924+ if ((TMB_TSO500_nr > 5 and TMB_TSO500_nr <= 20 ) or TMB_TSO500 == "" or TMB_TSO500 == "NA" ):
924925 roundshape = slide .shapes .add_shape (MSO_SHAPE .OVAL , Cm (8.27 ), Cm (3.90 ), Cm (0.58 ), Cm (0.58 ))
925926 roundshape .line .color .rgb = RGBColor (255 ,165 ,0 )
926927 textbox5 = slide .shapes .add_textbox (Cm (8.23 ), Cm (3.90 ), Cm (0.58 ), Cm (0.60 ))
927928 tf5 = textbox5 .text_frame
928- tf5 .paragraphs [0 ].text = str_TMB_DRUP
929+ tf5 .paragraphs [0 ].text = str ( TMB_TSO500_nr )
929930 tf5 .paragraphs [0 ].font .size = Pt (7 )
930931 tf5 .paragraphs [0 ].font .bold = True
931932 tf5 .paragraphs [0 ].alignment = PP_ALIGN .CENTER
932933 tf5 .paragraphs [0 ].font .color .rgb = RGBColor (250 ,250 ,250 )
933- if (TMB_DRUP_nr > 20 and str_TMB_DRUP != "" and str_TMB_DRUP != "NA" ):
934+ if (TMB_TSO500_nr > 20 and TMB_TSO500 != "" and TMB_TSO500 != "NA" ):
934935 roundshape = slide .shapes .add_shape (MSO_SHAPE .OVAL , Cm (10.26 ), Cm (3.90 ), Cm (0.58 ), Cm (0.58 ))
935936 roundshape .line .color .rgb = RGBColor (255 ,165 ,0 )
936937 textbox5 = slide .shapes .add_textbox (Cm (10.20 ), Cm (3.95 ), Cm (0.58 ), Cm (0.60 ))
937938 tf5 = textbox5 .text_frame
938- tf5 .paragraphs [0 ].text = str_TMB_DRUP
939+ tf5 .paragraphs [0 ].text = str ( TMB_TSO500_nr )
939940 tf5 .paragraphs [0 ].font .size = Pt (7 )
940941 tf5 .paragraphs [0 ].font .bold = True
941942 tf5 .paragraphs [0 ].alignment = PP_ALIGN .CENTER
0 commit comments