zhanghao-njmu / SCP

An end-to-end Single-Cell Pipeline designed to facilitate comprehensive analysis and exploration of single-cell data.
https://zhanghao-njmu.github.io/SCP/
GNU General Public License v3.0
386 stars 84 forks source link

Some functions not found #83

Closed wbf520qcp closed 1 year ago

wbf520qcp commented 1 year ago

I have problems with some functions and want to seek your opinions. I installed SCP from Github and ran some examples. However, some functions are not supported, e.g. could not find function "GroupHeatmap".

Thank you!

zhanghao-njmu commented 1 year ago

You should first make sure that you have the latest version of SCP installed. If not, you can reinstall it and try to run it again

wbf520qcp commented 1 year ago

Yes, I just reinstalled today

zhanghao-njmu commented 1 year ago

That's strange. You may restart your r session and retry. The function code can also be viewed with SCP::GroupHeatmap.

zhanghao-njmu commented 1 year ago

You need to restart your R session and then library(SCP)

wbf520qcp commented 1 year ago

Thanks, it worked. Another issue, when I plot DEGs (ExpHeatmap) and set feature_split = DEGs$group1, I got Error: names of text should have overlap to levels in align_to. The my group.by variable has the exact same levels as in DEGs$group1. It worked fine if I remove feature_split = DEGs$group1, but that didn't give me pathways for each group.

Screen Shot 2023-01-05 at 11 55 28 PM
zhanghao-njmu commented 1 year ago

It seems that some enrichment results were filtered, but there is no way to know exactly what happened because I cannot reproduce this result. However, I have added some code to make sure this type of error does not happen again. You can install the latest version of SCP(0.2.6.9002) and try again.