An R package for accessing Uniprot online database, based on R package/framework biodb.
biodbUniprot is an extension package of the biodb package. It allows to connect to UniProt for retrieving entries, searching for entries by name or organism, and convert gene symbols to UniProt IDs.
Getting entries:
bdb <- boidb::newInst()
uniprot <- bdb$getFactory()$createConn('uniprot')
entries <- uniprot$getEntry(c('P01011', 'P09237'))
bdb$entriesToDataframe(entries)
Run a web service query:
bdb <- boidb::newInst()
uniprot <- bdb$getFactory()$createConn('uniprot')
uniprot$wsQuery('reviewed:yes AND organism:9606', columns=c('id', 'entry name'),
limit=2, retfmt='parsed')
Install the latest stable version using Bioconductor:
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install('biodbUniprot')
See the introduction vignette:
vignette('biodbUniprot', package='biodbUniprot')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.