Comments (3)
I am getting the same error.
I am using the tutorial data and Notebook 4 as it is distributed.
The environment is as follows:
Apple M2 Chip
macOS Sonoma ver 14.4.1
Python 3.11.6
anndata 0.10.6
appnope 0.1.4
array_api_compat 1.5.1
asttokens 2.4.1
comm 0.2.2
contourpy 1.2.0
cycler 0.12.1
Cython 3.0.9
debugpy 1.8.1
decorator 5.1.1
executing 2.0.1
fonttools 4.50.0
h5py 3.10.0
ipykernel 6.29.4
ipython 8.22.2
ipywidgets 8.1.2
jedi 0.19.1
joblib 1.3.2
jupyter_client 8.6.1
jupyter_core 5.7.2
jupyterlab_widgets 3.0.10
kiwisolver 1.4.5
matplotlib 3.8.3
matplotlib-inline 0.1.6
natsort 8.4.0
nest-asyncio 1.6.0
numpy 1.26.4
packaging 24.0
pandas 2.2.1
parso 0.8.3
patsy 0.5.6
pexpect 4.9.0
pillow 10.2.0
pip 24.0
platformdirs 4.2.0
POT 0.9.3
prompt-toolkit 3.0.43
psutil 5.9.8
ptyprocess 0.7.0
pure-eval 0.2.2
Pygments 2.17.2
pyparsing 3.1.2
python-dateutil 2.9.0.post0
pytz 2024.1
pyzmq 25.1.2
scikit-learn 1.4.1.post1
scipy 1.12.0
setuptools 65.5.0
six 1.16.0
stack-data 0.6.3
statsmodels 0.14.1
threadpoolctl 3.4.0
tornado 6.4
traitlets 5.14.2
tzdata 2024.1
wcwidth 0.2.13
widgetsnbextension 4.0.10
wot 1.0.8.post2
from wot.
I made the following changes based on the error message and it worked, but the output does not seem to be correct.
The color of the plot is almost uniform.
There may be a problem with the color bar settings.
binned_df['values'] = trajectory_ds[:, name].X
↓
binned_df['values'] = trajectory_ds[:, name].X.T[0]
![image](https://private-user-images.githubusercontent.com/87163501/317995538-54e2c750-cdb5-4f74-85dc-f87026ff559f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTUwODkzNjcsIm5iZiI6MTcxNTA4OTA2NywicGF0aCI6Ii84NzE2MzUwMS8zMTc5OTU1MzgtNTRlMmM3NTAtY2RiNS00Zjc0LTg1ZGMtZjg3MDI2ZmY1NTlmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA1MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNTA3VDEzMzc0N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc2YzZhYWVhNzg3YWQ5MjgzYjMyZGI0YjhkMzUwZGMzZGI5ZGE4YjdmMzcwMGViYjQ3M2NlZjExYjhmZTUwMmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.jRzLd0DupyoGAveSM2CGroeffNX9RKDsFrkLYbprk1c)
from wot.
It now works correctly by rewriting it as follows!
binned_df['values'] = trajectory_ds[:, name].X
↓
binned_df['values'] = trajectory_ds[:, name].X.T[0].tolist()
Since trajectory_ds[:, name].X
is a two-dimensional array of the form (165892, 1)
, it should first be converted into a one-dimensional array using .T[0]
.
However, because trajectory_ds[:, name].X.T[0]
is an ArrayView class, it also needs to be converted into a form that can be assigned to a DataFrame using .tolist()
.
from wot.
Related Issues (20)
- Are all genes or highly variable genes used as input expression matrix in Waddington-OT? HOT 1
- Overflow encountered in duality gap computation, please report this incident
- Some questions about normalization
- Error in visualizing trajectory HOT 3
- Calculating minimum transport distance between cells without time information
- where to choose number of PCA to compute transport map? HOT 3
- Interpreting WOT ancestors and trajectory probabilities
- Preparation of expression matrix HOT 4
- Reading mtx file HOT 1
- What is the difference between fate probability and ancestor probability? HOT 1
- Overflow warnings HOT 5
- WOT integration as an external kernel in CellRank HOT 12
- replacing real time with pseudotime
- Error met when running Notebook-1-FLE-cell_sets-gene_sets.ipynb
- `wot.ot.OTModel` does not fail with random arguments
- cell_growth_rates not passed on command line
- pg.neighbors(adata_var) error HOT 2
- Can't replicate data preprocessing HOT 2
- How to adjust raw data to this format HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wot.