Nexus is a user friendly, open-source software package written in the R programming language that provides a seamless integration of Caisis and Diamonds clinical databases at the Fred Hutch. It is intended for data scientists to reduce the effort required to prepare data for statistical and exploratory analyses. It requires credentials which can be obtained for investigators of IRB approved protocols.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install unixodbc
brew install freetds --with-unixodbc
nano /usr/local/Cellar/freetds/1.00.80/etc/freetds.conf
[CONGO-H]
host = 140.107.116.197
instance = H
port = 51000
tds version = 7.0
nano /usr/local/Cellar/unixodbc/2.3.5_1/etc/odbc.ini
[CONGO-H]
DRIVER = FreeTDS
Description = ODBC INI FILE
ServerName = CONGO-H
Instance = H
nano /usr/local/Cellar/unixodbc/2.3.5_1/etc/odbcinst.ini
[FreeTDS]
Description = FreeTDS
Driver = /usr/local/Cellar/freetds/1.00.80/lib/libtdsodbc.so
Setup = /usr/local/Cellar/freetds/1.00.80/lib/libtdsodbc.so
UsageCount = 1
tsql -S CONGO-H -U 'fhcrc\username'
ln -sF /usr/local/Cellar/freetds/1.00.80/etc/freetds.conf ~/.freetds.conf
ln -sF /usr/local/Cellar/unixodbc/2.3.5_1/etc/odbc.ini ~/.odbc.ini
ln -sF /usr/local/Cellar/unixodbc/2.3.5_1/etc/odbcinst.ini ~/.odbcinst.ini
nano /Library/Frameworks/R.framework/Versions/Current/Resources/library/base/R/Rprofile
Sys.setenv(ODBCSYSINI="/usr/local/Cellar/unixodbc/2.3.5_1/etc/")
install.packages("odbc")
library(odbc)
odbc::odbcListDrivers()
install.packages("devtools")
devtools::install_github("davidcoffey/Nexus")
library(DBI)
library(odbc)
library(Nexus)
congo <- DBI::dbConnect(odbc::odbc(), "CONGO-H", uid = "fhcrc\\username", pwd = rstudioapi::askForPassword("Database password"))
observations = c("HCT", "WBC", "PLT", "INTRPE", "BJPTCA", "BJPT", "KFLC", "LFLC", "MC1QN", "MC2QN")
labs = extractLabs(connection = congo, labs = observations, format = "raw")
DxCodes = c("C90.00", "C90.01", "C90.03")
diagnoses = extractDiagnoses(connection = congo, diagnoses = DxCodes, format = "raw")
demographics = extractDemographics(connection = congo)
status = extractDiseaseStatus(connection = congo)
pathology = extractPathology(connection = congo)
cytogenetics = extractCytogenetics(connection = congo)
protocols = extractProtocols(connection = congo)
radiology = extractRadiology(connection = congo)
radiationTherapy = extractRadiationTherapy(connection = congo)
medicalTherapy = extractMedicalTherapy(connection = congo)
plotLabs(data = labs, chart = "line", lab = "LFLC", interactive = TRUE)
merged = Reduce(function(x, y) merge(x, y, all = FALSE), list(labs, status, diagnoses))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.