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

Heatmap of genes along pseudotime #20

Closed
tkapello opened this issue Jun 12, 2019 · 1 comment
Closed

Heatmap of genes along pseudotime #20

tkapello opened this issue Jun 12, 2019 · 1 comment
Labels

Comments

@tkapello
Copy link

Hi,

I would like to plot a heatmap of the expressed genes along the pseudotime generated by Diffusion Maps. I understand that there is no current function for that, is this correct? Do you have any suggestions?

Theo

@flying-sheep
Copy link
Collaborator

flying-sheep commented Jun 21, 2019

Sure! Use pt[cell, ] to get a vector of DPT values starting from cell, then use the order() of those values to reorder your data for the heatmap:

dpt_order <- order(pt[cell, ])
heatmap(data[dpt_order, ])

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

No branches or pull requests

2 participants