STOmics / Stereopy

A toolkit of spatial transcriptomic analysis.
MIT License
180 stars 59 forks source link

Can't perform High Resolution Matrix Export! #209

Closed Li-ZhiD closed 7 months ago

Li-ZhiD commented 8 months ago

I am attempting to perform High Resolution Matrix Export for certain regions, but I am not receiving any response after lasso and there is no export occurring after clicking the "export" button. Could someone please assist me?

Thanks!

data_sub = ins.selected_exp_data

data_sub.plt.spatial_scatter()
data_sub.plt.violin()
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[8], line 1
----> 1 data_sub.plt.spatial_scatter()
      2 data_sub.plt.violin()

AttributeError: 'NoneType' object has no attribute 'plt'

My conda environment:

Package                       Version
----------------------------- ------------
absl-py                       2.0.0
aiohttp                       3.8.5
aiosignal                     1.3.1
alabaster                     0.7.13
albumentations                0.4.6
aniso8601                     9.0.1
anndata                       0.7.5
arboreto                      0.1.6
asciitree                     0.3.3
asttokens                     2.0.5
astunparse                    1.6.3
async-timeout                 4.0.3
attrs                         23.1.0
Babel                         2.12.1
backcall                      0.2.0
backports.zoneinfo            0.2.1
biopython                     1.81
bleach                        6.0.0
blinker                       1.6.3
blosc2                        2.0.0
bokeh                         2.4.3
boltons                       23.0.0
boto3                         1.15.0
botocore                      1.18.18
cachetools                    5.3.1
certifi                       2023.7.22
cffi                          1.16.0
charset-normalizer            2.0.12
click                         8.1.7
cloudpickle                   2.2.1
colorcet                      2.0.6
coloredlogs                   15.0.1
comm                          0.1.2
ctxcore                       0.2.0
cycler                        0.11.0
Cython                        3.0.2
cytoolz                       0.12.2
dask                          2022.11.1
dask-image                    2023.3.0
datashader                    0.14.1rc1
datashape                     0.5.2
debugpy                       1.6.7
decorator                     5.1.1
Deprecated                    1.2.13
dill                          0.3.7
distinctipy                   1.2.2
distributed                   2022.11.1
docrep                        0.3.2
docutils                      0.20.1
entrypoints                   0.4
exceptiongroup                1.1.3
executing                     0.8.3
fastcluster                   1.2.6
fasteners                     0.18
fastremap                     1.14.0
fbpca                         1.0
Flask                         3.0.0
Flask-RESTful                 0.3.9
Flask-Testing                 0.8.1
flatbuffers                   2.0.7
fonttools                     4.42.1
frozendict                    2.3.8
frozenlist                    1.4.0
fsspec                        2023.9.1
future                        0.18.3
gast                          0.4.0
gefpy                         0.7.5
geojson                       3.0.1
geosketch                     1.2
google-auth                   2.23.3
google-auth-oauthlib          1.0.0
google-pasta                  0.2.0
graphtools                    1.5.3
grpcio                        1.59.0
gtfparse                      1.2.1
h5py                          3.7.0
harmonypy                     0.0.6
holoviews                     1.14.5
hotspotsc                     1.1.1
humanfriendly                 10.0
hvplot                        0.7.3
idna                          3.4
igraph                        0.9.11
imagecodecs                   2023.3.16
imageio                       2.9.0
imagesize                     1.4.1
imgaug                        0.4.0
importlib-metadata            6.8.0
importlib-resources           6.1.0
inflect                       7.0.0
iniconfig                     2.0.0
interlap                      0.2.7
ipykernel                     6.25.0
ipython                       8.12.2
itsdangerous                  2.1.2
jedi                          0.18.1
Jinja2                        3.0.3
jmespath                      0.10.0
joblib                        1.0.1
joypy                         0.2.6
jsonschema                    4.18.6
jsonschema-specifications     2023.7.1
jupyter_client                8.1.0
jupyter_core                  5.3.0
KDEpy                         1.1.0
keras                         2.7.0
Keras-Preprocessing           1.1.2
kiwisolver                    1.4.5
lazy_loader                   0.3
leidenalg                     0.8.10
libclang                      16.0.6
llvmlite                      0.39.1
locket                        1.0.0
loompy                        3.0.7
louvain                       0.7.1
lxml                          4.8.0
magic-impute                  3.0.0
Markdown                      3.4.4
MarkupSafe                    2.1.3
matplotlib                    3.5.2
matplotlib-inline             0.1.6
matplotlib-scalebar           0.8.1
mpmath                        1.3.0
msgpack                       1.0.4
multidict                     6.0.4
multipledispatch              1.0.0
multiprocessing-on-dill       3.5.0a4
natsort                       7.1.1
nest-asyncio                  1.5.6
networkx                      3.1
numba                         0.56.4
numcodecs                     0.11.0
numexpr                       2.8.4
numpy                         1.21.6
numpy-groupies                0.9.20
oauthlib                      3.2.2
omnipath                      1.0.7
onnxruntime                   1.14.1
opencv-python                 4.5.5.64
opt-einsum                    3.3.0
packaging                     21.3
palettable                    3.3.0
pandas                        1.5.3
panel                         0.13.1
param                         1.12.2
parso                         0.8.3
partd                         1.4.0
patchify                      0.2.3
patsy                         0.5.3
pexpect                       4.8.0
PhenoGraph                    1.5.7
pickleshare                   0.7.5
pika                          1.3.1
Pillow                        9.2.0
PIMS                          0.6.1
pip                           23.2.1
pkgutil_resolve_name          1.3.10
platformdirs                  3.10.0
plotly                        4.14.3
pluggy                        1.3.0
POT                           0.8.1.0
prompt-toolkit                3.0.36
protobuf                      3.20.3
psutil                        5.9.5
ptyprocess                    0.7.0
pure-eval                     0.2.2
py-cpuinfo                    9.0.0
pyarrow                       8.0.0
pyasn1                        0.5.0
pyasn1-modules                0.3.0
pycirclize                    0.5.0
pycparser                     2.21
pyct                          0.5.0
pydantic                      1.10.12
Pygments                      2.16.1
PyGSP                         0.5.1
pynndescent                   0.5.10
pyparsing                     3.1.1
pyscenic                      0.12.1
pytest                        7.4.3
python-dateutil               2.8.2
pytz                          2023.3.post1
pytz-deprecation-shim         0.1.0.post0
pyviz_comms                   3.0.0
PyWavelets                    1.4.1
PyYAML                        5.4.1
pyzmq                         25.1.0
referencing                   0.30.2
requests                      2.26.0
requests-futures              1.0.0
requests-oauthlib             1.3.1
retrying                      1.3.4
roifile                       2023.5.12
rpds-py                       0.10.6
rpy2                          3.5.7
rsa                           4.9
s3transfer                    0.3.7
scanpy                        1.9.5
scikit-image                  0.19.0
scikit-learn                  1.0.1
scipy                         1.7.3
scprep                        1.2.2
seaborn                       0.11.2
session-info                  1.0.0
setuptools                    59.8.0
setuptools-scm                7.1.0
shapely                       2.0.1
sinfo                         0.3.4
six                           1.16.0
slicerator                    1.1.0
slideio                       0.5.225
snowballstemmer               2.2.0
sortedcontainers              2.4.0
spatialpandas                 0.4.9
Sphinx                        7.1.2
sphinxcontrib-applehelp       1.0.4
sphinxcontrib-devhelp         1.0.2
sphinxcontrib-htmlhelp        2.0.1
sphinxcontrib-jsmath          1.0.1
sphinxcontrib-qthelp          1.0.3
sphinxcontrib-serializinghtml 1.1.5
SQLAlchemy                    1.3.24
squidpy                       1.2.2
stack-data                    0.2.0
statsmodels                   0.12.1
stdlib-list                   0.9.0
stereopy                      0.12.1
sympy                         1.12
tables                        3.8.0
tasklogger                    1.2.0
tblib                         2.0.0
tenacity                      5.1.1
tensorboard                   2.14.0
tensorboard-data-server       0.7.1
tensorflow                    2.7.0
tensorflow-estimator          2.7.0
tensorflow-io-gcs-filesystem  0.34.0
termcolor                     2.3.0
texttable                     1.6.7
threadpoolctl                 3.2.0
tifffile                      2021.11.2
tomli                         2.0.1
toolz                         0.12.0
torch                         1.10.0
torchvision                   0.11.1
tornado                       6.1
tqdm                          4.66.1
traitlets                     5.7.1
typing_extensions             4.3.0
tzdata                        2022.7
tzlocal                       4.2
umap-learn                    0.5.1
urllib3                       1.26.9
validators                    0.22.0
wcwidth                       0.2.5
webencodings                  0.5.1
Werkzeug                      3.0.0
wheel                         0.41.2
wrapt                         1.15.0
xarray                        0.20.1
xlrd                          1.2.0
yarl                          1.9.2
zarr                          2.16.1
zict                          3.0.0
zipp                          3.17.0
UglyRay7 commented 8 months ago

Please click the 'export' button in the interactive cell, and data of the region you have lassoed will be passed to 'ins.selected_exp_data'.

Ray

Li-ZhiD commented 8 months ago

Please click the 'export' button in the interactive cell, and data of the region you have lassoed will be passed to 'ins.selected_exp_data'.

Ray

@UglyRay7 No data was exported. Besides, after lassoing, there is no shadow highlighting the selected region.

Li-ZhiD commented 8 months ago

https://stereopy.readthedocs.io/en/latest/Tutorials/High_Resolution_Export.html, example in this manual, selected region was highlighted, but nothing happened in my environment. Could someone help me to fix it?

Zhenbin24 commented 8 months ago

Hello, You can install the new version (pip install stereopy==0.14.0b1) and try again,If your use case doesn't work, you can test it first with the data we provide.