You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear all,
I tried to plot genes that changed expression over pseudotime and I got a plot that all dots are on the x-axis, the plot and code are as follow: plot_genes_in_pseudotime(cds_order_1["CSN3",],color_cells_by="condition")
Then I added the "min_expr" mentioned in #602 . The plot seems to be incorrect since the curve is not fitted by the dots, the plot and code are as follow:
I checked the function plot_genes_in_pseudotime() https://rdrr.io/github/cole-trapnell-lab/monocle3/src/R/plotting.R. I think it seems that the problem in p1 was caused by round() function (cds_exprs <- reshape2::melt(round(as.matrix(cds_exprs))) line 1026), but I dont know why p2 would plot like that.
Dear all, I tried to plot genes that changed expression over pseudotime and I got a plot that all dots are on the x-axis, the plot and code are as follow: plot_genes_in_pseudotime(cds_order_1["CSN3",],color_cells_by="condition")
Then I added the "min_expr" mentioned in #602 . The plot seems to be incorrect since the curve is not fitted by the dots, the plot and code are as follow:
I checked the function plot_genes_in_pseudotime() https://rdrr.io/github/cole-trapnell-lab/monocle3/src/R/plotting.R. I think it seems that the problem in p1 was caused by round() function (cds_exprs <- reshape2::melt(round(as.matrix(cds_exprs))) line 1026), but I dont know why p2 would plot like that.
Thank you vgettaa for asking these questions while proposing the solution, I got the same question about why there's a round() function in source code and I'm glad to see you asking this —— but actually I have no clue about it yet.
I managed to get the proper plot by assigning the expression values just as you did, It looks really better.
Dear all,
I tried to plot genes that changed expression over pseudotime and I got a plot that all dots are on the x-axis, the plot and code are as follow:
plot_genes_in_pseudotime(cds_order_1["CSN3",],color_cells_by="condition")
Then I added the "min_expr" mentioned in #602 . The plot seems to be incorrect since the curve is not fitted by the dots, the plot and code are as follow:
I checked the function plot_genes_in_pseudotime() https://rdrr.io/github/cole-trapnell-lab/monocle3/src/R/plotting.R. I think it seems that the problem in p1 was caused by round() function (
cds_exprs <- reshape2::melt(round(as.matrix(cds_exprs)))
line 1026), but I dont know why p2 would plot like that.Overall, I directly assigned the expression values based on line 1024-1025(https://rdrr.io/github/cole-trapnell-lab/monocle3/src/R/plotting.R). But I dont know whether the code is right or not:
Any suggestions are appreciated, Thanks!
The text was updated successfully, but these errors were encountered: