kstreet13 / slingshot

Functions for identifying and characterizing continuous developmental trajectories in single-cell data.
258 stars 42 forks source link

Error in h(simpleError(msg, call)) #222

Closed handesome closed 12 months ago

handesome commented 1 year ago

when i run my R project, inputofcurves<-newSlingshotDataSet(reducedDim = reduceDimdata_matrix,clusterLabels = clusLabel,lineages=lineage_list,adjacency=JS_dist,curves=list(),slingParams=slingParams) outofcurves<-getCurves(inputofcurves,extend="n")

something wrong unfortunately, Error in h(simpleError(msg, call)) : There was an error in evaluating the 'data' parameter when selecting the method for the 'getCurves' function:Length of new attribute value must be 1 or 3, the number of target vertices, not 0 could anyone give some advice?

kstreet13 commented 1 year ago

Hi @handesome,

I can't really tell what is going on without more information, but in general, I don't think there's any need for most users to use the newSlingshotDataSet function (especially now that the default output is a PseudotimeOrdering object).

Best, Kelly

handesome commented 1 year ago

Hi Kelly,

Thank you for the fast reply, and i will follow your advice. best wish to you!