def load_report(self, input_file_name, params, wsname):
    fasta_stats = self.load_stats(input_file_name)
    lengths = [fasta_stats[contig_id] for contig_id in fasta_stats]
    assembly_ref = ((params[self.PARAM_IN_WS] + '/') + params[self.PARAM_IN_CS_NAME])
    report = ''
    report += (('Assembly saved to: ' + assembly_ref) + '\n')
    report += (('Assembled into ' + str(len(lengths))) + ' contigs.\n')
    report += (('Avg Length: ' + str((sum(lengths) / float(len(lengths))))) + ' bp.\n')
    bins = 10
    (counts, edges) = np.histogram(lengths, bins)
    report += ('Contig Length Distribution (# of contigs -- min to max ' + 'basepairs):\n')
    for c in range(bins):
        report += (((((('   ' + str(counts[c])) + '\t--\t') + str(edges[c])) + ' to ') + str(edges[(c + 1)])) + ' bp\n')
    print('Running QUAST')
    kbq = kb_quast(self.callbackURL)
    quastret = kbq.run_QUAST({'files': [{'path': input_file_name, 'label': params[self.PARAM_IN_CS_NAME]}]})
    print('Saving report')
    kbr = KBaseReport(self.callbackURL)
    report_info = kbr.create_extended_report({'message': report, 'objects_created': [{'ref': assembly_ref, 'description': 'Assembled contigs'}], 'direct_html_link_index': 0, 'html_links': [{'shock_id': quastret['shock_id'], 'name': 'report.html', 'label': 'QUAST report'}], 'report_object_name': ('kb_megahit_report_' + str(uuid.uuid4())), 'workspace_name': params['workspace_name']})
    reportName = report_info['name']
    reportRef = report_info['ref']
    return (reportName, reportRef)
def load_report(self, input_file_name, params, wsname):
    fasta_stats = self.load_stats(input_file_name)
    lengths = [fasta_stats[contig_id] for contig_id in fasta_stats]
    assembly_ref = ((params[self.PARAM_IN_WS] + '/') + params[self.PARAM_IN_CS_NAME])
    report = 
    report += (('Assembly saved to: ' + assembly_ref) + '\n')
    report += (('Assembled into ' + str(len(lengths))) + ' contigs.\n')
    report += (('Avg Length: ' + str((sum(lengths) / float(len(lengths))))) + ' bp.\n')
    bins = 10
    (counts, edges) = np.histogram(lengths, bins)
    report += ('Contig Length Distribution (# of contigs -- min to max ' + 'basepairs):\n')
    for c in range(bins):
        report += (((((('   ' + str(counts[c])) + '\t--\t') + str(edges[c])) + ' to ') + str(edges[(c + 1)])) + ' bp\n')
    print('Running QUAST')
    kbq = kb_quast(self.callbackURL)
    quastret = kbq.run_QUAST({'files': [{'path': input_file_name, 'label': params[self.PARAM_IN_CS_NAME]}]})
    print('Saving report')
    kbr = KBaseReport(self.callbackURL)
    report_info = kbr.create_extended_report({'message': report, 'objects_created': [{'ref': assembly_ref, 'description': 'Assembled contigs'}], 'direct_html_link_index': 0, 'html_links': [{'shock_id': quastret['shock_id'], 'name': 'report.html', 'label': 'QUAST report'}], 'report_object_name': ('kb_megahit_report_' + str(uuid.uuid4())), 'workspace_name': params['workspace_name']})
    reportName = report_info['name']
    reportRef = report_info['ref']
    return (reportName, reportRef)