comparison pima_report.py @ 9:9d608c530bbc draft

Uploaded
author greg
date Thu, 09 Mar 2023 18:13:37 +0000
parents 66c7cdf7e93f
children 7c4077c9b3ad
comparison
equal deleted inserted replaced
8:66c7cdf7e93f 9:9d608c530bbc
431 self.doc.new_header(2, 'Contamination check') 431 self.doc.new_header(2, 'Contamination check')
432 for read_type, kraken_fracs in kraken_fracs.iteritems(): 432 for read_type, kraken_fracs in kraken_fracs.iteritems():
433 self.doc.new_line(self.read_type + ' classifications') 433 self.doc.new_line(self.read_type + ' classifications')
434 self.doc.new_line() 434 self.doc.new_line()
435 Table_List = ["Percent of Reads", "Reads", "Level", "Label"] 435 Table_List = ["Percent of Reads", "Reads", "Level", "Label"]
436 for index, row in kraken_fracs.iterrows(): 436 for index, row in kraken_fracs.iteritems():
437 Table_List = Table_List + row.tolist() 437 Table_List = Table_List + row.tolist()
438 row_count = int(len(Table_List) / 4) 438 row_count = int(len(Table_List) / 4)
439 self.doc.new_table(columns=4, rows=row_count, text=Table_List, text_align='left') 439 self.doc.new_table(columns=4, rows=row_count, text=Table_List, text_align='left')
440 if self.contamination_methods_title not in self.methods: 440 if self.contamination_methods_title not in self.methods:
441 self.methods[self.contamination_methods_title] = '' 441 self.methods[self.contamination_methods_title] = ''