Teichlab / cellphonedb

MIT License
340 stars 105 forks source link

cellphonedb plot heatmap_plot #229

Open dianadom opened 3 years ago

dianadom commented 3 years ago

Hi,

While running command cellphonedb plot heatmap_plot.... I am getting the following error R Runtime Exception: error in '[.data.frame(all_intr, , pairs1[i])': undefined columns selected

How should it be fixed?

lyuguol commented 3 years ago

Hi,

When running cellphonedb dot_plot or cellphonedb plot heatmap_plot test_meta.txt, I encountered the following erros, repectively: no package named ''ggplot2' or no package name 'pheatmap'.

Do you have any idea in solving the problem?

Many thanks and wish you all a Merry Christmas.

Best,

Guoliang

jariwalask commented 3 years ago

@lyuguol try

conda install -c conda-forge r-base=3.6.2 # if not installed already
conda install -c conda-forge  r-ggplot2
conda install -c conda-forge r-pheatmap
prete commented 3 years ago

@lyuguol if installed using conda then @jariwalask solution is the correct one, but if you already had an R environment then you need to install the packages withinstall.packages(c("ggplot2","pheatmap")) from R.

Pedramto89 commented 3 years ago

I try to plot the results using heatmap or dotplot but getting the errors. for plotting The error as showed in the image is :Error: Invalid value for "--pvalues-path": Path "./out/pvalues.txt" does not exist.

prete commented 3 years ago

Hi @Pedramto89 since running the plot commands from the output folder you need to use it like this:

You can read more about all the plotting arguments here

Pedramto89 commented 3 years ago

Thank you @prete I run it and got the dotplot but for the heatmap does not work heatmap image error

prete commented 3 years ago

You're missing the first half of the command _(the cellphonedb plot heatmap_plot part)_ and also, there's no --meta-path option, it's just the argument. Your command (assuming you're going to run it from ~/analysis/venv) should be like this:

cellphonedb plot heatmap_plot --pvalues-path ./out/new_project/pvalues.txt ./meta_subtype1new.txt
Pedramto89 commented 3 years ago

Thank you @prete for your quick response and answer. I run it but the output is a bit weird. Screenshot from 2021-07-20 08-59-43

prete commented 3 years ago

Without having a look at your input it's hard to tell. But if you only had two clusters defined in meta, that's pretty much all you're going to get.

What info would you like to obtain from your data? What questions you are looking to answer? Knowing that would make it easier for us to give you more options.

Pedramto89 commented 3 years ago

The dotplot looks interesting but the heatmap not. I am looking for ligand-receptor interactions based on my data. I have two other subtypes two. Maybe I can get more meaningful output