Error in columns(org.Hs.eg.db) : could not find function "columns"
1
0
Entering edit mode
Sanches • 0
@sanches-13853
Last seen 6.8 years ago

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

annotation error message • 3.8k views
ADD COMMENT
1
Entering edit mode

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

ADD REPLY
2
Entering edit mode
@james-w-macdonald-5106
Last seen 2 days ago
United States

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 COMMENT
0
Entering edit mode

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 REPLY

Login before adding your answer.

Traffic: 596 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6