Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in geom_point() #2

Open
handesome opened this issue Feb 28, 2024 · 6 comments
Open

Error in geom_point() #2

handesome opened this issue Feb 28, 2024 · 6 comments

Comments

@handesome
Copy link

hi!Thank you for developing the wonderful package!!when I run the example code grid.arrange(grobs = trajectory_plots, layout_matrix=matrix(c(1:2), 1, 2))
Error in geom_point():
! Problem while computing aesthetics.
Error occurred in the 1st layer.
And in the p1 <- plot_cycle_diff_3d(normalizedResultLst, redpath_pseudotime, cell_cycle_labels, cell_type_labels),
how to get the normalizedResultLst?
Thanks!

@kenxie7
Copy link
Member

kenxie7 commented Feb 29, 2024

Hi there!

Thanks for your interest in the package!

For the trajectory plots, could you please check if the variable "trajectory_plots" is empty or does it give you the right plots? I am unsure whether it's the grid.arrange function that might be giving an error here.

The normalizedResultLst is part of the output after running reCAT (tinglabs/reCAT), and it gets saved with this code "save(finalHighCorLst, highCorLst, resultLst, normalizedResultLst, ensembleResultLst, file = paste("bestEnsembleComplexTSP", beginNum, "-", endNum, name, ".RData"))" by default.

After you run get_ordIndex from the reCAT package, you should see a .RData file beginning with "bestEnsembleComplexTSP", and you can load the objects from there.

Best,
Ken

@handesome
Copy link
Author

Hi!
Thank you for the quick reply! For the trajectory plots, the variable "trajectory_plots" is shown
image
and the codegrid.arrange(grobs = trajectory_plots, layout_matrix=matrix(c(1:2), 1, 2))give the error
Error in geom_point(): ! Problem while computing aesthetics. Error occurred in the 1st layer. Caused by error in unique.default(): ! unique()只适用于矢量 Run rlang::last_trace() to see where the error occurred.
what should I do?Thanks again!!

@handesome
Copy link
Author

handesome commented Mar 22, 2024 via email

@kenxie7
Copy link
Member

kenxie7 commented Mar 22, 2024

Hi there, sorry I have been traveling.

The POS_score can be negative (ie showing a negative directionality also as shown in the original publication of TSCAN), but I set the absolute because realistically one could determine the start of the differentiation process and I would like to evaluate more on the level of correlation rather than the directionality back then.

Could you please show what you get if you do trajectory_plots[[1]] in R console, if you see plots in the output?

Thanks
Ken

@handesome
Copy link
Author

handesome commented May 13, 2024 via email

@kenxie7
Copy link
Member

kenxie7 commented May 19, 2024

Hello! The bubble sort index is basically very similar to the Kendall's tau 'distance', as it compares the number of pairwise swaps (ie rank) and computed as a distance (ranges from 0 to 1). However this is not to be confused with the Kendall's tau 'correlation' which is a different correlation coefficient ranging from -1 to 1. So these are two slightly different metrics for assessing the trajectory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants