Skip to content

Commit

Permalink
feed numpy array to scipy's winsorize
Browse files Browse the repository at this point in the history
it previously accepted a simple list
  • Loading branch information
dickscheid authored and xgui3783 committed Oct 4, 2023
1 parent 629b152 commit ca3ded4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion siibra_jugex/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__="0.2"
__version__="0.2.1"

import logging
logger = logging.getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion siibra_jugex/jugex.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ca3ded4

Please sign in to comment.