kevinrue / velociraptor

Toolkit for Single-Cell Velocity
https://kevinrue.github.io/velociraptor/
Other
55 stars 10 forks source link

Don't require velocity assay if only phase plots are generated #61

Open csoneson opened 2 years ago

csoneson commented 2 years ago

Currently plotVelocity will fail if there is no "velocity" assay in the input object, even if only phase plots are requested, due to https://github.com/kevinrue/velociraptor/blob/22bad4279df14561709f6c236567d68259f4ee76/R/plotVelocity.R#L118 It seems to me like this extraction could be moved further down, to where V is actually used.