diff pima_report.py @ 6:b13d4c14caaa draft

Uploaded
author greg
date Thu, 09 Mar 2023 17:54:17 +0000
parents 9cb62054a87a
children 9213359bfda8
line wrap: on
line diff
--- a/pima_report.py	Thu Mar 09 17:50:28 2023 +0000
+++ b/pima_report.py	Thu Mar 09 17:54:17 2023 +0000
@@ -421,7 +421,7 @@
         if self.kraken2_report_file is None:
             return
         # Read in the Kraken fractions and pull out the useful parts
-        self.kraken_fracs = pandas.read_csv(self.kraken_report_file, delimiter='\t', header=None)
+        self.kraken_fracs = pandas.read_csv(self.kraken2_report_file, delimiter='\t', header=None)
         self.kraken_fracs.index = self.kraken_fracs.iloc[:, 4].values
         self.kraken_fracs = self.kraken_fracs.loc[self.kraken_fracs.iloc[:, 3].str.match('[UG]1?'), :]
         self.kraken_fracs = self.kraken_fracs.loc[(self.kraken_fracs.iloc[:, 0] >= 1) | (self.kraken_fracs.iloc[:, 3] == 'U'), :]