Search
Question: Error in columns(org.Hs.eg.db) : could not find function "columns"
0
gravatar for Sanches
10 weeks ago by
Sanches0
Sanches0 wrote:

Hi all, 

I have been running an analysis from microarray data and when I try to run this line " columns(org.Hs.eg.db)", I get an error. Could anyone please help me to understand this problem?

 

source("https://bioconductor.org/biocLite.R")
install.packages("org.Hs.eg.db", repos="http://bioconductor.org/packages/3.1/data/annotation")
biocLite("org.Hs.eg.db")
biocLite("hgu95av2.db")
biocLite("tidyverse")
columns(org.Hs.eg.db)
keytypes(org.Hs.eg.db)

Thanks in advance

ADD COMMENTlink modified 10 weeks ago by James W. MacDonald45k • written 10 weeks ago by Sanches0
1

Please edit your question to show the error and the output of your sessionInfo().

ADD REPLYlink written 10 weeks ago by Valerie Obenchain ♦♦ 6.4k
2
gravatar for James W. MacDonald
10 weeks ago by
United States
James W. MacDonald45k wrote:

There are two problems here. First, don't do this:

install.packages("org.Hs.eg.db", repos="http://bioconductor.org/packages/3.1/data/annotation")

The whole idea behind biocLite is that you don't need to figure out what repository to use, particularly since Bioconductor package versions are specific to a given R version. By hijacking the process like that you are taking the chance that you will install the wrong thing.

Second, you have to load a package before you can use it.

> columns(org.Hs.eg.db)
Error in columns(org.Hs.eg.db) : could not find function "columns"
> library(org.Hs.eg.db)

<snip>

> columns(org.Hs.eg.db)
 [1] "ACCNUM"       "ALIAS"        "ENSEMBL"      "ENSEMBLPROT"  "ENSEMBLTRANS"
 [6] "ENTREZID"     "ENZYME"       "EVIDENCE"     "EVIDENCEALL"  "GENENAME"    
[11] "GO"           "GOALL"        "IPI"          "MAP"          "OMIM"        
[16] "ONTOLOGY"     "ONTOLOGYALL"  "PATH"         "PFAM"         "PMID"        
[21] "PROSITE"      "REFSEQ"       "SYMBOL"       "UCSCKG"       "UNIGENE"     
[26] "UNIPROT"    
ADD COMMENTlink written 10 weeks ago by James W. MacDonald45k

Hi James, 

Thanks for your help.

I had loaded the package before using "columns".

I  have found out the problem. Everything went well when I loaded the biomaR package.

Thanks

 

 

 

 

ADD REPLYlink written 9 weeks ago by Sanches0
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 180 users visited in the last hour