SCPA
SCPA copied to clipboard
Odd result in pseudotime
@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.
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 :)