Comments (3)
Hi @lixin4306ren ,
Thanks for the report! It looks like this line of code is from the vignette and I was able to reproduce the error using the simulated dataset generated there (sim
). However, since this is a SingleCellExperiment
object, there is no plot3d
method for it (I only defined a plot3d
method for objects of the class SlingshotDataSet
, since SingleCellExperiment
objects are highly flexible and may contain multiple components worth plotting in 3D, beyond just the slingshot
output). That said, an easy workaround would be something like this:
plot3d(SlingshotDataSet(sce))
But I should also note that in the vignette, I only used the top 2 PCs, so this line will still produce an error when using that dataset. If you adjust the earlier line where rd1
is defined to read
rd1 <- pca$x[,1:3]
then you will have the top 3 PCs and this should work as expected!
Best,
Kelly
from slingshot.
Hi Kelly,
slingshot_df <- data.frame(colData(deng_SCE)) Error in as.vector(x) : no method for coercing this S4 class to a vector
I have been trying to convert my slingshot object to a dataframe and not sure how to get out of this error. Could you look into this?
Thank you,
Aastha
from slingshot.
Sorry, how is this related to the original issue regarding 3D plotting? This seems like more of a general SingleCellExperiment question, but the colData should already be something analogous to a data frame, so I'm not sure why you would need to convert it.
from slingshot.
Related Issues (20)
- Is there any way that I could fit the NB-GAM for all the gene in my large dataset? HOT 1
- getCurves() Missing values HOT 8
- Curves and lineages HOT 3
- Error in igraph::shortest_paths(tree, from = l, to = ends, mode = "out", : At core/paths/dijkstra.c:360 : Weight vector must not contain NaN values, Invalid value HOT 3
- Average curve weights and Pseudotime HOT 1
- slingshot analysis on PCA but visualization on UMAP HOT 3
- how to analyze with 3 different treatments HOT 4
- how to calclate the POS to compare other algorithm? HOT 2
- Pulling and plotting Differential pseudotime data across different conditions/metadata slots HOT 1
- `embedCurves` should also map MST into new space HOT 1
- Slingshot followed by CellRank HOT 1
- is slingshot using only the variable genes? HOT 2
- Pick one lineage from many for conditiontest HOT 3
- How do I extract feature_info in my rds file? HOT 4
- What does a curve represent biologically? HOT 7
- Overlapping curve issue - change to code needed? HOT 3
- Removing a lineage from a `PseudotimeOrdering` object? HOT 3
- Error in graph.adjacency.dense: Adjacency matrix should be symmetric to produce an undirected graph. Invalid value HOT 5
- pseudotime in two lineage? HOT 2
- Slingshot error 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 slingshot.