From f724e7f4e15dff97774f53a7d7fcc7291d07d55f Mon Sep 17 00:00:00 2001 From: James Mathews Date: Mon, 24 Jul 2023 19:05:20 -0400 Subject: [PATCH] Fix bug where in creating fractions rows, the cohort identifier was not corrected to the externally-facing version. --- spatialprofilingtoolbox/db/fractions_and_associations.py | 1 + 1 file changed, 1 insertion(+) diff --git a/spatialprofilingtoolbox/db/fractions_and_associations.py b/spatialprofilingtoolbox/db/fractions_and_associations.py index 77aa4627c..9d5b2d70d 100644 --- a/spatialprofilingtoolbox/db/fractions_and_associations.py +++ b/spatialprofilingtoolbox/db/fractions_and_associations.py @@ -27,6 +27,7 @@ def get_fractions_rows(self, study: str) -> list[CellFractionsAverage]: (components.measurement, components.analysis), ) rows = self.cursor.fetchall() + rows = _replace_stratum_identifiers(rows, study, column_index=2) return [ CellFractionsAverage(**dict(zip( ['marker_symbol', 'multiplicity', 'stratum_identifier', 'average_percent'],