theislab / destiny

R package for single cell and other data analysis using diffusion maps
https://theislab.github.io/destiny/
GNU General Public License v3.0
76 stars 12 forks source link

gene_relevance questions #31

Closed cesarsierran closed 4 years ago

cesarsierran commented 4 years ago

Hi,

I have successfully applied your gene_relevance function on a subset (about 2000 cells) of my sc dataset, using a diffusion map as the dimension reduction method. However:

Thank you very much for your work.

flying-sheep commented 4 years ago

Hi! Sorry for no supply for so long, I was on “holiday” (on my balcony because of corona)

Thank you very much for your work.

I’m happy it’s of use!

cesarsierran commented 4 years ago

Hi Philip,

Thank you very much for your answers.

Thank you again, Cèsar

flying-sheep commented 4 years ago

Ah, the values themselves! that’s what plot_differential_map does. Sorry for the names, I wrote them before finishing the paper, so they aren’t super consistent with the terms in the paper. If you want to visualize the plot data differently, you can just extract it and use it in a new plot:

d <- plot_differential_map(...)$data

ggplot(d, aes(...)) + ...

I should probably build a better way to get the data …


About the two samples: Same thing: get the two data frames, bind them together, and create a new plot from them:

d <- list(
        WT = plot_differential_map(...)$data,
        KO = plot_differential_map(...)$data
     ) %>% bind_rows(.id = "Sample")
ggplot(d, aes(...)) + ...

Unless you don’t want to create two completely independent gene relevance objects, but then you need to specify what you mean.