zktuong / ktplots

Some tools for plotting single-cell data
https://zktuong.github.io/ktplots/
MIT License
162 stars 31 forks source link

Error in h(simpleError(msg, call)) #58

Closed AShahzad9 closed 1 year ago

AShahzad9 commented 1 year ago

Hi,

I have been trying to use the plot_cpdb2 function to create the chord plots but I keep getting this error:

**> p <- plot_cpdb2(cell_type1 = 'fibroblast', cell_type2 = 'monocytes',

Can you help me understand this better and help me fix it?

Thanks, A

zktuong commented 1 year ago

Hi, can you post the full error log for me? just want to see which line number this error is appearing on.

Are there any weird characters in your label column? like +, / etc.

AShahzad9 commented 1 year ago

Hi ,

"Error in h(simpleError(msg, call)) : error in evaluating the argument 'i' in selecting a method for function '[': error in evaluating the argument 'x' in selecting a method for function 'which': subscript contains invalid names"

Is that what you were after- have also attached a screenshot.

Does Cpdb2 not work with seurat files ?

Screenshot (6)

There are only underscores in the column, I think

zktuong commented 1 year ago

Yea it only works with SingleCellExperiment object. Just convert with Seurat’s as.SingleCellExperiment

I’m not sure what else could be triggering this

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.