GIRI (Generic integration of R into i2b2)
Author: Bastian Weinlich
The project follows a similar goal as the "R Engine Cell" of the University of Pavia and rgate (HERON) of the University of Kansas: To make arbitrary R functions available within i2b2. In contrast to these approaches, it is very simple to add new statistical functionality with GIRI. To do so, it is sufficient to write an R script and an optional XML configuration file to add what is known as a "Scriptlet" (a kind of an addon) that comprises one or more R functions. In particular, it is not necessary to implement an i2b2 webclient plugin for every newly added scriptlet individually. The end user simply selects the desired scriptlet from a drop down list from a generic i2b2 webclient plugin and has then several options to customize the input data (e.g. drag and drop patient sets / concepts). Afterwards, he clicks on "View Results" to start computations. The following results page can - depending on the scriptlet - consist of numerical / textual values, tables and plots. Additionally, all data can be exported as files.
A simple scriptlet could compute two quantiles of age from a previously selected patient set. The end user can define the p values. Here is a step-by-step guide to using the scriptlet:
Specify the input data:
Afterwards click on "View Results" to start the computation:
The scriptlet consists of two files that have to be stored on the server where the GIRI Cell is running. The first one is the R script including the following R code:
Accessing input and output is possible by using special naming conventions (GIRI.patients, GIRI.input, GIRI.output...). Plots are always displayed.
The second file configures the R scriptlet through XML code:
Settings, input variables and outputs are defined in this configuration file. For more information about creating scriptlets see the notes for scriptlet developers.
The following slide show depicts a scriptlet that computes a Kaplan Meier plot:
Kaplan Meier Example
|There are no images attached to this page.|
The download package contains the GIRI Cell, the GIRI webclient plugin, install notes, notes for scriptlet developers and example scriptlets. This version is dedicated for i2b2 version 1.7.02 (does not work with 1.7.01!).