comparison pima_report.py @ 24:803e5965ed20 draft

Uploaded
author greg
date Thu, 20 Apr 2023 18:10:58 +0000
parents d89b7d47a85a
children 4986a7fb2145
comparison
equal deleted inserted replaced
23:d89b7d47a85a 24:803e5965ed20
763 method = 'Plasmid-to-genome hits were resolved using the pChunks algorithm.' 763 method = 'Plasmid-to-genome hits were resolved using the pChunks algorithm.'
764 self.methods[self.plasmid_methods_title] = self.methods[self.plasmid_methods_title].append(pandas.Series(method)) 764 self.methods[self.plasmid_methods_title] = self.methods[self.plasmid_methods_title].append(pandas.Series(method))
765 765
766 def add_methods(self): 766 def add_methods(self):
767 self.ofh.write("\nXXXXXX In add_methods\n\n") 767 self.ofh.write("\nXXXXXX In add_methods\n\n")
768 self.doc.new_line('<div style="page-break-after: always;"></div>')
769 self.doc.new_line()
770 if len(self.methods) == 0: 768 if len(self.methods) == 0:
771 return 769 return
772 self.doc.new_line() 770 self.doc.new_line()
773 self.doc.new_header(level=2, title=self.methods_title) 771 self.doc.new_header(level=2, title=self.methods_title)
774 for methods_section in self.methods.index.tolist(): 772 for methods_section in self.methods.index.tolist():
775 if self.methods[methods_section] is None or len(self.methods[methods_section]) == 0: 773 if self.methods[methods_section] is None or len(self.methods[methods_section]) == 0:
776 continue 774 continue
777 self.doc.new_line() 775 self.doc.new_line()
778 self.doc.new_header(level=3, title=methods_section) 776 self.doc.new_header(level=3, title=methods_section)
779 self.doc.new_paragraph(' '.join(self.methods[methods_section])) 777 self.doc.new_paragraph(' '.join(self.methods[methods_section]))
778 self.doc.new_line('<div style="page-break-after: always;"></div>')
779 self.doc.new_line()
780 780
781 def add_summary(self): 781 def add_summary(self):
782 self.ofh.write("\nXXXXXX In add_summary\n\n") 782 self.ofh.write("\nXXXXXX In add_summary\n\n")
783 # Add summary title 783 # Add summary title
784 self.doc.new_header(level=1, title=self.summary_title) 784 self.doc.new_header(level=1, title=self.summary_title)