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

CCCExplorer errors #2

Open
Rongfang-Shen opened this issue Jul 28, 2018 · 0 comments
Open

CCCExplorer errors #2

Rongfang-Shen opened this issue Jul 28, 2018 · 0 comments

Comments

@Rongfang-Shen
Copy link

Hi yuifu,
When I was running CCCExplorer on R using CCCExplorer.R scripts, I meet some problems.
First,I can't find object kegg
then I use: kegg<-pathways("hsapiens", "kegg") ,and Find_KEGG_edge function was rewritten like these

Find_KEGG_edge=function(x){
  x<-x[,c(2,4:6)]
  x=as.matrix(x)
  temp1=x[x[,1]%in%all_symbol&x[,2]%in%all_symbol,]
  if(is.matrix(temp1)){
    temp1[,1]=unlist(as.list(org.Hs.egSYMBOL[temp1[,1]]))
    temp1[,2]=unlist(as.list(org.Hs.egSYMBOL[temp1[,2]]))
  }
  return(temp1)
}

and it all run perfect.
Second, when I run the #simplify network by connecting receptors to TFs directly#partt
length(f) was 0, so there was an error.
I was wondering if I was wrong with the kegg object.
Please help on this.
Many thanks!

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

1 participant