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

Install error #24

Closed
rsggsr opened this issue May 1, 2020 · 3 comments
Closed

Install error #24

rsggsr opened this issue May 1, 2020 · 3 comments

Comments

@rsggsr
Copy link

rsggsr commented May 1, 2020

I am wondering if could tell me how to solve this installation problem shown below. Thanks!

error: Failed to install 'nichenetr' from GitHub:
(warnings) cannot remove prior installation of package ‘reshape2’

And I also could not remove this package by remove.packages()

remove.packages("reshape2")
Removing package from ‘C:/Users/Lin/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
Error in find.package(pkgs, lib) : there is no package called ‘reshape2’

@browaeysrobin
Copy link
Member

Hi @rsggsr

This is probably a nichenetr-unrelated problem you have on your pc. Can you try to install other packages (from github) and check whether that works. If it would seem to be a nichenetr-specific problem for you, could you give some more details about the what went wrong in the installation. For now I have not enough information to know where the problem might be for you.

About the removal of the reshape2 package, you should identify the correct path to that directory (now R searches for the default path, but your reshape2 package is not located there), and give it as input to the remove.packages function.

@rsggsr
Copy link
Author

rsggsr commented May 13, 2020

Hi @browaeysrobin ,

Sorry that's my bad. I get it done afterwards.

But I got another question for you. I am playing with my processed Seurat object and mostly following the vignette for Seurat (Perform NicheNet analysis starting from a Seurat object: step-by-step analysis:vignette("seurat_steps", package="nichenetr")). But when I want to plot a circos plot using that tutorial I found it's not that easy to follow since it's a follow-up tutorial for the vignette (NicheNet’s ligand activity analysis on a gene set of interest: predict active ligands and their target genes:).

From the first beginning that how we specify cell types is different. So I totally got lost when we need to specify the overlapping ligands between two sender cells (I set two sender cells and one receiver cells) by the following codes.

ligand_expression_tbl = tibble(
ligand = best_upstream_ligands,
CAF = expression[CAF_ids,best_upstream_ligands] %>% apply(2,function(x){10*(2x - 1)}) %>% apply(2,function(x){log2(mean(x) + 1)}),
endothelial = expression[endothelial_ids,best_upstream_ligands] %>% apply(2,function(x){10*(2
x - 1)}) %>% apply(2,function(x){log2(mean(x) + 1)}))

Could you kindly explain more how to do it by 10X sequencing data such as Seurat? Thanks so much!

@browaeysrobin
Copy link
Member

Hi @rsggsr

I redirect you to this open issue: #5.
The take home message is that you should make an expression table for your ligands with the average expression of each ligand in each cell type. This can be done in several ways and I give one suggestion in that issue.

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

No branches or pull requests

2 participants