code: def epcr_report(self):
          
          logging.info('Creating {at} report'.format(at=self.analysistype))
          with open(os.path.join(self.reportpath, '{at}.csv'.format(at=self.analysistype)), 'w') as report:
              data = 'Strain,ToxinProfile\n'
              for sample in self.metadata:
                  data += '{sn},{tp}\n'.format(sn=sample.name,
                                               tp=sample[self.analysistype].toxinprofile)
              # Write the data to the report
              report.write(data)
docs: Create a report of the ePCR-calculated toxin profiles