From ca3ded466b33e3bfa007b03d02f69f43b06cc624 Mon Sep 17 00:00:00 2001 From: Timo Dickscheid Date: Wed, 1 Feb 2023 13:38:02 +0100 Subject: [PATCH] feed numpy array to scipy's winsorize it previously accepted a simple list --- siibra_jugex/__init__.py | 2 +- siibra_jugex/jugex.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/siibra_jugex/__init__.py b/siibra_jugex/__init__.py index 3be972c..e282cfd 100644 --- a/siibra_jugex/__init__.py +++ b/siibra_jugex/__init__.py @@ -1,4 +1,4 @@ -__version__="0.2" +__version__="0.2.1" import logging logger = logging.getLogger(__name__) diff --git a/siibra_jugex/jugex.py b/siibra_jugex/jugex.py index 17cc13b..dac2382 100644 --- a/siibra_jugex/jugex.py +++ b/siibra_jugex/jugex.py @@ -297,7 +297,7 @@ def _retrieve_samples(self,regionspec,maptype:siibra.MapType,threshold:float): samples[key]['mnicoord'] = tuple(f.location) samples[key]['region'] = region samples[key][gene_name] = np.mean( - winsorize(f.z_scores, limits=0.1)) + winsorize(np.array(f.z_scores), limits=0.1)) logger.info('{} samples found for region {}.'.format( len(samples), regionspec)) return samples