SCPA icon indicating copy to clipboard operation
SCPA copied to clipboard

Odd result in pseudotime

Open Umaarasu opened this issue 9 months ago • 0 comments

@jackbibby1 ...I have been trying to dun your pseudotime codes in my own data. The data entered as per the instruction, but when I run the plot command this is the figure that comes

plot_dimred(model_n4, "pseudotime", pseudotime = calculate_pseudotime(model_n4), hex_cells = F, plot_trajectory = T, size_cells = 1, alpha_cells = 0.8) + theme(aspect.ratio = 1) root cell or milestone not provided, trying first outgoing milestone_id Using '3' as root Warning message: In calculate_pseudotime(model_n4) : Trajectory is not rooted. Add a root to the trajectory using dynwrap::add_root(). This will result in an error in future releases.

Rplot02

When I added a root cell root_cell <- "celltype1" model_n4 <- add_root(model_n4, root_cell) Error in add_root(model_n4, root_cell) : Invalid root_cell_id

I notice that the "dataset_n4" has cell id as barcodes AAACCAACACAGCCAT-1.

Could you help me fix this? Thanks :)

Umaarasu avatar May 16 '24 13:05 Umaarasu