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

Awkward plotting of trajectory and dataset #1

Open
zouter opened this issue Aug 13, 2019 · 0 comments
Open

Awkward plotting of trajectory and dataset #1

zouter opened this issue Aug 13, 2019 · 0 comments

Comments

@zouter
Copy link
Member

zouter commented Aug 13, 2019

After inferring a trajectory, the expression and original dimred are no longer present in the trajectory object. This is fine, but requires that you add all the relevant information to the trajectory object first before plotting.

trajectory <- trajectory %>% 
  add_expression(counts = dataset$counts, expression = dataset$expression, expression_projected = dataset$expression_projected) %>% 
  add_dimred(dyndimred::dimred_landmark_mds)

dynplot(trajectory) +
  geom_cell_point(aes(color = select_expression(mapper("Dpp4")))) +
  geom_velocity_arrow(color = "black", size = 2) +
  geom_velocity_arrow(color = "white") +
  geom_trajectory_segments(color = "white", size = 2, shadow = shadow_defaults(size = 2))

How can we improve this?

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

1 participant