library(UniProt.ws)
  up <- UniProt.ws(taxId=9606)
  ## List the possible values for columns
  columns(up)
  ## List the possible values for keytypes
  keytypes(up)
  ## get some values back
  ## list all possible keys of type entrez gene ID.
  ## (this process is not instantaneous)
  if(interactive()){
    keys <- head(keys(up, keytype="UNIPROTKB"))
    keys
  }
  select(up, keys=c("P31946","P62258"), columns=c("PDB","SEQUENCE"),
  keytype="UNIPROTKB")Run the code above in your browser using DataLab