Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
static plotting for spatial data (#437)
* Fix patching ForwardRef when generating docs * Require numba>=0.52.0 (#420) * [auto][ci skip] Generate news fragment (#420) * Fix CI cron job, remove cond in newsgen (#424) * Fix CI cron job, remove cond in newsgen * Less flaky dataset download test, fix linting * [auto][ci skip] Update dev release notes (#424) * Fix None in ligrec source/target (#434) * Drop NAs in interactions * Regenerate failing figures * [auto][ci skip] Generate news fragment (#434) * [auto][ci skip] Update dev release notes (#434) * allow Key.uns.library_id to return list * fix logic for Kye.uns.library_id * add Key.uns.image_id * fix logic Key.uns.image_id * fix logic and add scalefactors_id method * return mapping if library_id is None * rename scalefactors to scalefactor * fix logic for return type * fix haystack * init spatial pl * add docstring for _get_unique-map * Fix an import for python 3.10 (#438) * Fix an import for python 3.10 * Fix linting * [auto][ci skip] Update dev release notes (#438) * change mypy * clean spatial_attrs and add sanitize_anndata * add utils to check val in adata.obs * init def spatial * add axis * add axis * get values and color vector * fix tests * fix more tests * set titles and axis * add scatter and circles and polygons * add label * add size and handle case with no image * fix _get_coords * add img and crops * minor fix * fixes for multiple library plotting * add colormap, title and axis labels * fix cmap for shaped_collection * add scalebar * fix scalebar kwargs * fix outline * fixes * fixes for scalebar * fix logic for non-visium data * more comments * more comments * add edges * change import * add edges_kwargs * change type of crop_coord * some docs for review * add mode enum for shapes, handle partial and use spatial_conn from package constatns * handle polygons with array and fix types * more comments * more comments and fix palette handling * fix palette handling * remove print * handle cmap args better * more comments * fix _get_palette for tests * handle crops better * more comments * more comments * more comments * fix axis label * fix axis label * add scalebar to requirements and minor fixes * add scalebar to requirements and minor fixes and handle better na in categorical * remove non from na_color type * make helper function for spatial non image * minor fix * fix types * more fix types * more comments and chekc dimensions * fix check dimensions * remove 3d projection and fixes * make ref count * minor fix on _get_list * another fix on _get_list * minor fixes * minor fixes in pkc_constants * minor fix container * fix types * fix more types and change img_alpha * fix pkg constants * edges -> edge * edge -> edges * enable panel order by library or color * fix iter * make decorate axes and add img channel * add _spatial_utils module * add imports of types * minor fix on pkg_constants * add additional def * [ci skip] Update CONTRIBUTING.rst to mention dev * add type * add segmentation * add api and minor fixes * update * import crops in coord * Update _utils.py (#454) * Fixes napari slider and contrast limits (#453) * Fixes napari slider and contrast limits * Fix numpy/scipy intersphinx mapping * Use better scipy link * Try disable -n auto for 3.7 CI * [ci skip] Use Literal in ligrec * major refactor * cleanup * remove axs * Update squidpy/pl/_spatial.py Co-authored-by: Isaac Virshup <ivirshup@gmail.com> * Update squidpy/pl/_spatial_utils.py Co-authored-by: Isaac Virshup <ivirshup@gmail.com> * isaac comments * add logging error to palette * more comments * more comments and init NamedTuple * more NamedTuple * more comments * fix typing Co-authored-by: michalk8 <46717574+michalk8@users.noreply.github.com> * more comments * more comments * fix for annoying warning * init docs * continue docs * try delete params * continue docs * fix docs * modi gitignore * fix typing * add _color_utils * fix value_to_lot=None * change modenum to inherit str * improve docs * more improvements * fix spellcheck * fix library_id handling * add img_res_key condition for scalefactor logic * change arguments and unify spatial scatter * init cached datasets and static spatial tests * fix fixtures * fix cached tests * fix cached tests * add first images * add first images * add fixture session * add CI cache for datasets download * add CI cache for datasets download * add image * fix CI * fix CI on macos * fix docs * raise valueError when multiple library_id found but no library_key * better error message for wrong list * more tests * fix seg boundaries * fix logic for segmentation masks and boundaries * install squidpy for download data step * add library_id tests and more segment plots * add more tests * fix __init__.py * remove print statemtns * fix title * fix docs * re add Union * add spellcheck * add another test * change dpi * change figure * Fix square scatter * fixes CI * fixes CI * fix notimplemented error and docs * type test * more comments * remove columns redundandcy * fix img_res_key * fix tests * more comments * more comments * more comments * more comments types * fix tests * more comments * more comments * more comments * fix tests * fix lint * more comments * fix size from mike comments * use grayscale * check for valid types in lists * cehck for empty color list * add types from scanpy * remove edges and add conn_key * fix spelling * Fix frameon=True * Fix cmap being reset * Fix warning in groups * Fix NA color when groups!=None * Fix pet peeve - condition * Be strict with palettes * remove empty space between plots * revert back space in grid * more fixes and handle outline when na_color is present * fix docs * fix tests and cleanup * add more tests * add wrapper for func signature * modify wrapper * more comments * fix spelling * Fix not calling decorator function * Clean docs a bit * Fix cropping bug, _get_list bug, pet peeves * test and add test * add params * [ci skip] Fix linting * [ci skip] Remove dead interpolation code, docs * [ci skip] Don't use future annotations * [ci skip] Update defaults * Fix pet peeve in docs * Minor doc improvements * Add seealso's * Add option to return axes * Add test timeout * Readd autoscale_view * Fix undefined variable, pet peeves * Fix pet peeve v2 * Remove macOS 3.7 job * Add initial dask support * Regenerate figures * Fix grayscale for dask * Skip 2 tests on mac * Fix truthiness when img/seg are arrays * Fix truthiness check Co-authored-by: michalk8 <michalk8@users.noreply.github.com>
- Loading branch information