knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

rbiolink

lifecycle

Overview

The package rbiolink provides an interface to the BioLink API.

Installation

You can install the development version from Github.

# install.packages("devtools")
devtools::install_github("frequena/rbiolink")

Examples

Get biological entities similar to your query

library(rbiolink)

biolink_bioentity(ref_id = 'gene', id = 'HGNC:2865', query_id = 'anatomy')

Named entities recognition

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

Search phenotypically similar disease and genes

biolink_search_similar(id = c('HP:0001166', 'HP:0030029'), metric = 'symmetric_resnik')

Calculate phenotypic similarity between two set of list

biolink_similarity(ref_id = c('HP:0001166', 'HP:0030029'),
                           query_id = c('HP:0001627', 'HP:0004095'),
                           metric = 'symmetric_resnik')$lcs_ic


frequena/rbiolink documentation built on May 16, 2020, 10:20 p.m.