Entering edit mode
Hi,
I am using UniProt.ws for the first time. It looks great, but it seems as if the select-function (which I really need) is not properly working for me. I just tried the examplary code and this is what I do/get:
> library(UniProt.ws)
> up<-UniProt.ws(taxId=9606)
> keys <- c("1","2")
> columns <- c("PDB","UNIGENE","SEQUENCE")
> kt <- "ENTREZ_GENE"
> res <- select(up, keys, columns, kt)
Getting mapping data for 1 ... and ACC
Getting mapping data for P04217 ... and UNIGENE_ID
Getting mapping data for P04217 ... and PDB_ID
Getting extra data for P04217,V9HWD8,P01023
Fehler in get(name, envir = asNamespace(pkg), inherits = FALSE) :
Objekt '.resort' nicht gefunden
It would be great, if anyone could help me!
Thanks!
Sarah

Works for me now
> suppressPackageStartupMessages(library(UniProt.ws)) > up <- UniProt.ws(taxId=9606) > keys <- c("1", "2") > columns <- c("PDB", "UNIGENE", "SEQUENCE") > kt <- "ENTREZ_GENE" > res <- select(up, keys, columns, kt) Getting mapping data for 1 ... and ACC Getting mapping data for P04217 ... and UNIGENE_ID Getting mapping data for P04217 ... and PDB_ID Getting extra data for P04217,V9HWD8,P01023 'select()' returned 1:many mapping between keys and columns > str(res) 'data.frame': 8 obs. of 4 variables: $ ENTREZ_GENE: chr "1" "1" "2" "2" ... $ PDB : chr NA NA "1BV8" "2P9R" ... $ UNIGENE : chr "Hs.709582" "Hs.529161" "Hs.212838" "Hs.212838" ... $ SEQUENCE : chr "MSMLVVFLLLWGVTWGPVTEAAIFYETQPSLWAESESLLKPLANVTLTCQAHLETPDFQLFKNGVAQEPVHLDSPAIKHQFLLTGDTQGRYRCRSGLSTGWTQLSKLLELTGPKSLPAPWLSMAPVS"| __truncated__ "MSMLVVFLLLWGVTWGPVTEAAIFYETQPSLWAESESLLKPLANVTLTCQAHLETPDFQLFKNGVAQEPVHLDSPAIKHQFLLTGDTQGRYRCRSGLSTGWTQLSKLLELTGPKSLPAPWLSMAPVS"| __truncated__ "MGKNKLLHPSLVLLLLVLLPTDASVSGKPQYMVLVPSLLHTETTEKGCVLLSYLNETVTVSASLESVRGNRSLFTDLEAENDVLHCVAFAVPKSSSNEEVMFLTVQVKGPTQEFKKRTTVMVKNEDS"| __truncated__ "MGKNKLLHPSLVLLLLVLLPTDASVSGKPQYMVLVPSLLHTETTEKGCVLLSYLNETVTVSASLESVRGNRSLFTDLEAENDVLHCVAFAVPKSSSNEEVMFLTVQVKGPTQEFKKRTTVMVKNEDS"| __truncated__ ...using
Are your packages in sync? Test this with
If so, EDIT your question to include the output of the command
immediately after the error. And also include the output of the command
Thanks a lot for your answers.
It turned out, we had a version problem considering Bioconductor, various packages and different users.
Everything is working as it should right now. Thanks agian!