Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module 'monkeybread.calc' has no attribute 'kernel_density'" #31

Open
reinertanalytics opened this issue Sep 27, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@reinertanalytics
Copy link

Report

Hi, thanks for the excellent package! I am running into an error when running this command:

density_key = mb.calc.kernel_density(
adata,
groupby = "v2.subclass.l1",
groups = "Lymphoid",
resolution = 4
)
mb.plot.kernel_density(
adata,
key = density_key
)

The error I get is as follows:

"AttributeError Traceback (most recent call last)
Cell In[9], line 1
----> 1 density_key = mb.calc.kernel_density(
2 adata,
3 groupby = "v2.subclass.l1",
4 groups = "Lymphoid",
5 resolution = 4
6 )
7 mb.plot.kernel_density(
8 adata,
9 key = density_key
10 )
AttributeError: module 'monkeybread.calc' has no attribute 'kernel_density'"

Here is the output of
"import session_info
session_info.show(html=False, dependencies=True)"


anndata 0.10.8
matplotlib 3.9.2
monkeybread 1.0.3
numpy 1.26.4
pandas 2.2.2
scanpy 1.10.2
seaborn 0.13.2
session_info 1.0.0
squidpy 1.6.0

CoreFoundation NA
Foundation NA
PIL 10.4.0
PyObjCTools NA
anyio NA
appnope 0.1.4
arrow 1.3.0
asciitree NA
asttokens NA
attr 24.2.0
attrs 24.2.0
babel 2.14.0
brotli 1.1.0
certifi 2024.07.04
cffi 1.17.0
charset_normalizer 3.3.2
cloudpickle 3.0.0
colorama 0.4.6
comm 0.2.2
cycler 0.12.1
cython_runtime NA
dask 2024.8.1
dask_expr 1.1.11
dask_image NA
datashader 0.16.3
datatree 0.0.14
dateutil 2.9.0
debugpy 1.8.5
decorator 5.1.1
defusedxml 0.7.1
distutils 3.12.5
docrep 0.3.2
executing 2.0.1
fastjsonschema NA
fqdn NA
fsspec 2023.6.0
geopandas 1.0.1
h5py 3.11.0
idna 3.7
igraph 0.11.6
imageio 2.35.1
importlib_metadata NA
inflect NA
ipykernel 6.29.5
isoduration NA
jaraco NA
jedi 0.19.1
jinja2 3.1.4
joblib 1.4.2
json5 0.9.25
jsonpointer 3.0.0
jsonschema 4.23.0
jsonschema_specifications NA
jupyter_events 0.10.0
jupyter_server 2.14.2
jupyterlab_server 2.27.3
kiwisolver 1.4.5
lazy_loader 0.4
legacy_api_wrap NA
leidenalg 0.10.2
llvmlite 0.43.0
markupsafe 2.1.5
matplotlib_inline 0.1.7
matplotlib_scalebar 0.8.1
more_itertools 10.4.0
mpl_toolkits NA
msgpack 1.0.8
multipledispatch 0.6.0
multiscale_spatial_image 1.0.1
natsort 8.4.0
nbformat 5.10.4
networkx 3.3
numba 0.60.0
numcodecs 0.13.0
objc 10.3.1
ome_zarr NA
omnipath 1.0.8
ordered_set 4.1.0
overrides NA
packaging 24.1
param 2.1.1
parso 0.8.4
patsy 0.5.6
pickleshare 0.7.5
pkg_resources NA
platformdirs 4.2.2
pooch v1.8.2
prometheus_client NA
prompt_toolkit 3.0.47
psutil 6.0.0
pure_eval 0.2.3
pyarrow 17.0.0
pycparser 2.22
pyct 0.5.0
pydev_ipython NA
pydevconsole NA
pydevd 2.9.5
pydevd_file_utils NA
pydevd_plugins NA
pydevd_tracing NA
pygments 2.18.0
pyparsing 3.1.2
pyproj 3.6.1
pythonjsonlogger NA
pytz 2024.1
referencing NA
requests 2.32.3
rfc3339_validator 0.1.4
rfc3986_validator 0.1.1
rich NA
rpds NA
scipy 1.14.0
send2trash NA
setuptools 72.1.0
shapely 2.0.5
six 1.16.0
skimage 0.24.0
sklearn 1.5.1
sniffio 1.3.1
socks 1.7.1
spatial_image 1.1.0
spatialdata 0.2.2
stack_data 0.6.2
statsmodels 0.14.2
tblib 3.0.0
texttable 1.7.0
threadpoolctl 3.5.0
tifffile 2024.8.10
tlz 0.12.1
toolz 0.12.1
tornado 6.4.1
tqdm 4.66.5
traitlets 5.14.3
typeguard NA
typing_extensions NA
uri_template NA
urllib3 2.2.2
validators 0.33.0
wcwidth 0.2.13
webcolors 24.8.0
websocket 1.8.0
wrapt 1.16.0
xarray 2024.7.0
xarray_dataclasses 1.8.0
xarray_schema 0.0.3
xrspatial 0.4.0
yaml 6.0.2
zarr 2.18.2
zipp NA
zmq 26.1.0
zstandard 0.23.0

IPython 8.26.0
jupyter_client 8.6.2
jupyter_core 5.7.2
jupyterlab 4.2.4

Python 3.12.5 | packaged by conda-forge | (main, Aug 8 2024, 18:32:50) [Clang 16.0.6 ]
macOS-14.3-arm64-arm-64bit

Version information

No response

@reinertanalytics reinertanalytics added the bug Something isn't working label Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant