I tried to Compute the Diffusion Map cell embedding but there is an error:
pbmc <- GeneTrajectory::RunDM(pbmc)
Error in sequence.default(n..1, from = seq.int(s.1, length(df), s.1), :
'from' contains NAs
In addition: Warning message:
In sequence.default(n..1, from = seq.int(s.1, length(df), s.1), :
NAs introduced by coercion to integer range
traceback()
4: sequence.default(n..1, from = seq.int(s.1, length(df), s.1),
by = size)
3: as.matrix.dist(dist(data.S@reductions[[reduction]]@cell.embeddings[,
dims]))
2: as.matrix(dist(data.S@reductions[[reduction]]@cell.embeddings[,
dims]))
1: GeneTrajectory::RunDM(pbmc)
What should I do to solve it?