theislab / destiny

R package for single cell and other data analysis using diffusion maps
https://theislab.github.io/destiny/
GNU General Public License v3.0
70 stars 12 forks source link

error when running DPT function #14

Open lixin4306ren opened 5 years ago

lixin4306ren commented 5 years ago

command I used:

dpt <- DPT(difmap_out)

error infomration:

Error in auto_branch(dpt, all_cells, stats, w_width) : 
  stats$g >= gmin is not TRUE

what is stats$g?

flying-sheep commented 5 years ago

Well, without the input data I won’t be able to help you much. Please give me a MCVE

yingyonghui commented 2 years ago

hi @lixin4306ren , I've encountered the same problem. Have you solved this? Many thanks!

DavidvanBruggen commented 2 years ago

Hi @yingyonghui and @lixin4306ren,

If you are not interested in the branch detection than it seems that a simple workaround to this for me was specifying the two branchtips by just choosing a random index. Like so:

pt <- destiny::DPT(diffusionmapobject, tips = c(1,2))

Hope it helps!

flying-sheep commented 2 years ago

Would be great if you could point me to a way to reproduce the problem, then I could actually fix it.