The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
The goal of pubtatordb is to allow users to create and query a local version of the PubTator database. PubTator provides detailed annotations of abstracts found on PubMed. It is therefore very useful for directing research questions. While PubTator does provide an API, the use of a local database is more appropriate for high-throughput analyses. pubtatordb provides the tools necessary to download, setup, and query such a database.
You can install the released version of pubtatordb from CRAN with:
install.packages("pubtatordb")
The version on GitHub can be downloaded using the devtools package with:
install.packages("devtools")
::install_github("MAMC-DCI/pubtatordb") devtools
Querying is only four steps away:
# Load the package.
library(pubtatordb)
# Download the data.
download_pt(getwd())
# Create the database.
<- file.path(getwd(), "PubTator")
pubtator_path pt_to_sql(
pubtator_path,skip_behavior = FALSE,
remove_behavior = TRUE,
db_from_scratch = TRUE
)
# Create a connection to the database.
<- pt_connector(pubtator_path)
db_con
# Query the data.
pt_select(
db_con,"gene",
columns = NULL,
keys = NULL,
keytype = NULL,
limit = 5
)
The views expressed are those of the author(s) and do not reflect the official policy of the Department of the Army, the Department of Defense or the U.S. Government.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.