Hello, I am having a problem with the annotation of probes for the Affymetrix and the Illumina platforms data,
I am using the package (hgu133plus2.db BiocManager:version 3.8 for R 3.5.2 version) for the Affymetrix data and "org.Hs.eg.db" for the Illumina data.
When I use the command (Affymetrix):
annotation <- select(hgu133plus2.db,keytype='PROBEID', keys=PROBEID, columns = c("ENTREZID"))
or (for Illumina):
annotation <- select(org.Hs.eg.db,keytype = 'ENTREZID',keys = ENTREZID,columns = c('SYMBOL'))
I get the following similar error messages in both cases:
For Affymetrix:
Error in select(hgu133plus2.db, keytype = "PROBEID", keys = PROBEID, columns = c("ENTREZID")) : unused arguments (keytype = "PROBEID", keys = PROBEID, columns = c("ENTREZID"))
For Illumina:
Error in select(org.Hs.eg.db, keytype = "ENTREZID", keys = ENTREZID, columns = c("SYMBOL")) : unused arguments (keytype = "ENTREZID", keys = ENTREZID, columns = c("SYMBOL"))
Has anyone also encountered this type of error, is it just a "silly" mistake or does it have to do with some more complicated reason?
Thank you for your prompt answer Guido.
Unfortunately still getting the error message. I have assigned some IDs (probeset IDs resp. EntrezGene IDs) to my variables' PROBEID resp. ENTREZID. I have even tried to copy-paste your code but keep on getting the same discouraging message. This is where I assign values to ENTREZID in my code:
ENTREZID <- rownames(dge$counts)
keytypes(org.Hs.eg.db)
columns(org.Hs.eg.db)
annotation <- select(org.Hs.eg.db,keytype = 'ENTREZID',keys = ENTREZID,columns = c('SYMBOL'))
I get:
`[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"
[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"
This is the error I get again:
Error in select(org.Hs.eg.db, keytype = "ENTREZID", keys = ENTREZID, columns = c("SYMBOL")) :
unused arguments (keytype = "ENTREZID", keys = ENTREZID, columns = c("SYMBOL"))``
You probably have
select
masked by another package. Tryabsolutely magic James, thanks so much, it's working!!
Hi James,
I now have another problem with annotations with these files:
the illumina textfiles found in:
https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE5350, the datafile GSE5350MAQCILM12359TXTs.zip
When I used:
AnnotationDbi::select(org.Hs.eg.db,keytype = 'ENTREZID',keys = ENTREZID,columns = c('SYMBOL'))
I got the error message:
Error in .testForValidKeys(x, keys, keytype, fks) : None of the keys entered are valid keys for 'ENTREZID'. Please use the keys method to see a listing of valid arguments.
I went on the internet and saw that what I have in my files are not entrezID's, I have probe iD's that look like:
"GI13376332-S" "GI13376334-S" "GI13376338-S" "GI13376342-S"
I saw that some years back, some other people had a similar problem and you helped them solve it. I read about FLYBASE ID's and PROBE ID's but I just can't find what type of ID's mine are. Do you have an idea?
I tried this:
AnnotationDbi::select(org.Hs.eg.db,rownames(dge$counts),"SYMBOL","TargetID")
I know that "TargetID" is not right but I just don't know what type of ID Illumina has used.
The
illuminaHumanv1.db
package has mappings between this Illumina chip and Symbol, entrez, etc. The keytype you need to use isPROBEID
great Mark, thanks a lot,
it worked but with adding "AnnotationDbi::" just in front of select.... as James W. MacDonald (above) suggested,
thanks a stack!