knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The package rbiolink
provides an interface to the BioLink API.
You can install the development version from Github.
# install.packages("devtools") devtools::install_github("frequena/rbiolink")
library(rbiolink) biolink_bioentity(ref_id = 'gene', id = 'HGNC:2865', query_id = 'anatomy')
This is a basic example which shows you how to solve a common problem:
abstract_input <- 'Marfan syndrome is a multisystemic genetic condition affecting connective tissue. It carries a reduced life expectancy, largely dependent on cardiovascular complications. More common cardiac manifestations such as aortic dissection and aortic valve incompetence have been widely documented in the literature. Mitral valve prolapse (MVP), however, has remained poorly documented. This article aims at exploring the existing literature on the pathophysiology and diagnosis of MVP in patients with Marfan syndrome, defining its current management and outlining the future developments surrounding it.' result <- biolink_annotate('nlp/annotate', content = abstract_input) result$content
biolink_search_similar(id = c('HP:0001166', 'HP:0030029'), metric = 'symmetric_resnik')
biolink_similarity(ref_id = c('HP:0001166', 'HP:0030029'), query_id = c('HP:0001627', 'HP:0004095'), metric = 'symmetric_resnik')$lcs_ic
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.