RImmPort: Quick Start Guide Ravi Shankar

Similar documents
RImmPort: Enabling ready-for-analysis immunology research data Ravi Shankar

RImmPort: Enabling ready-for-analysis immunology research data Ravi Shankar

CDASH Standards and EDC CRF Library. Guang-liang Wang September 18, Q3 DCDISC Meeting

2 nd ehs Workshop, CC-IN2P3 14 th October 2015, Lyon,

Study Data Reviewer s Guide Completion Guideline

Standardizing FDA Data to Improve Success in Pediatric Drug Development

Hands-On ADaM ADAE Development Sandra Minjoe, Accenture Life Sciences, Wayne, Pennsylvania Kim Minkalis, Accenture Life Sciences, Wayne, Pennsylvania

JMP Clinical. Getting Started with. JMP Clinical. Version 3.1

Advanced Data Visualization using TIBCO Spotfire and SAS using SDTM. Ajay Gupta, PPD

Study Data Tabulation Model Implementation Guide: Human Clinical Trials Prepared by the CDISC Submission Data Standards Team

Pharmaceutical Applications

NCI/CDISC or User Specified CT

IS03: An Introduction to SDTM Part II. Jennie Mc Guirk

Johannes Ulander. Standardisation and Harmonisation Specialist S-Cubed. PhUSE SDE Beerse,

Application of SDTM Trial Design at GSK. 9 th of December 2010

SDTM domains by query - is it possible?

The application of SDTM in a disease (oncology)-oriented organization

AUTOMATED CREATION OF SUBMISSION-READY ARTIFACTS SILAS MCKEE

Hands-On ADaM ADAE Development Sandra Minjoe, Accenture Life Sciences, Wayne, Pennsylvania

Standard Safety Visualization Set-up Using Spotfire

Hanming Tu, Accenture, Berwyn, USA

Data Standards with and without CDISC

Using V9 ODS LAYOUT to Simplify Generation of Individual Case Summaries Ling Y. Chen, Rho, Inc., Newton, MA

Recruiting User Guide

SDTM Implementation Guide Clear as Mud: Strategies for Developing Consistent Company Standards

Challenges with the interpreta/on of CDISC - Who can we trust?

Define.xml. Not Just for Submissions Anymore. Robbert P. van Manen, M.Sc. Senior Technical Solutions Consultant July 2010

What is new in BioChek II Software version 2018

Study Data Tabulation Model Implementation Guide: Human Clinical Trials Version 3.2. Prepared by the CDISC Submission Data Standards Team

Best Practice for Explaining Validation Results in the Study Data Reviewer s Guide

Advanced Visualization using TIBCO Spotfire and SAS

Improving Metadata Compliance and Assessing Quality Metrics with a Standards Library

Welcome! A few things to go over before we get started

The New SDTMIG What s Different from Previous Versions

Section 14 - Study Reporting Plan

Introduction to CDASH

ADaM Reviewer s Guide Interpretation and Implementation

Iowa EMS Patient Registry Web Entry. User Manual

Knock Knock!!! Who s There??? Challenges faced while pooling data and studies for FDA submission Amit Baid, CLINPROBE LLC, Acworth, GA USA

Robust approach to create Define.xml v2.0. Vineet Jain

Field Searching: Focus on EBSCOhost

EHR Connectivity Integration Specification

SDTM-ETL 3.0 User Manual and Tutorial

Facilitating Data Integration for Regulatory Submissions

Conversion of Company Standard Trial Data to SDTM

Traceability: Some Thoughts and Examples for ADaM Needs

SDTM-ETL 3.2 User Manual and Tutorial

InForm Functionality Reference Manual for Sites. Version 1.0

PharmaSUG Paper AD21

Considerations on creation of SDTM datasets for extended studies

7. Data Privacy Option for Oracle E-Business Suite

Open PHACTS Explorer: Pharmacology by Enzyme Family

ABSTRACT INTRODUCTION WHERE TO START? 1. DATA CHECK FOR CONSISTENCIES

EquiHealth Dashboard DVM Manager

Paper FC02. SDTM, Plus or Minus. Barry R. Cohen, Octagon Research Solutions, Wayne, PA

Annex 6, Part 2: Data Exchange Format Requirements

Introduction to ADaM and What s new in ADaM

Basic Medical Statistics Course

3. SOURCES OF DATA. 3.1 Data Management Activities

Quick Reference for the FloridaCHARTS Fetal Death Query

Clinical Data Acquisition Standards Harmonization (CDASH) User Guide

Making a List, Checking it Twice (Part 1): Techniques for Specifying and Validating Analysis Datasets

Riepilogo e Spazio Q&A

Short introduction. for the. the NIC-PD study. - productive and training database -

Study Data Reviewer s Guide

Table of Contents. Page 1 of 51

EquiHealth Dashboard HVMS

Tools to Facilitate the Creation of Pooled Clinical Trials Databases

epethealth Dashboard V-Tech Platinum

Maryland IMMUNET System

Traceability in the ADaM Standard Ed Lombardi, SynteractHCR, Inc., Carlsbad, CA

Pinpoint Quick Start Guide

Automated data analysis of Flow Cytometry (FCM) data

mgu74a.db November 2, 2013 Map Manufacturer identifiers to Accession Numbers

Experimental epidemiology analyses with R and R commander. Lars T. Fadnes Centre for International Health University of Bergen

7zip archive folder. Search

mogene20sttranscriptcluster.db

epethealth Dashboard ImproMed Infinity

Automatically Configure SDTM Specifications Using SAS and VBA

AFN Event Tracker User Guide!

EquiHealth Dashboard Cornerstone

How to write ADaM specifications like a ninja.

epethealth Dashboard Cornerstone

Subject Area Data Element Examples Earliest Date Patient Demographics Race, primary language, mortality 2000 Encounters

Care360 Mobile Frequently Asked Questions

EE 422C HW 6 Multithreaded Programming

ACRIN 4703 Detection of Early lung Cancer Among Military Personnel Study 1 (DECAMP 1): Diagnosis and Surveillance of Indeterminate Pulmonary Nodules

epethealth Dashboard VIA

An early challenge that LabKey users encounter is what is the best way to get their data into the server and what are the appropriate data types to

Microsoft Access - Using Relational Database Data Queries (Stored Procedures) Paul A. Harris, Ph.D. Director, GCRC Informatics.

Thermo Scientific Multiskan Sky Microplate Spectrophotometer

ICTR UW Institute of Clinical and Translational Research. i2b2 User Guide. Version 1.0 Updated 9/11/2017

The Benefits of Traceability Beyond Just From SDTM to ADaM in CDISC Standards Maggie Ci Jiang, Teva Pharmaceuticals, Great Valley, PA

2017 PIT Summary: Jefferson County

SHELTER PROGRAMS DATA COMPLETENESS DETAIL REPORT

Psoriasis Registry Graz Austria. User Manual. Version 1.0 Page 1 of 19

SAS CLINICAL SYLLABUS. DURATION: - 60 Hours

Clinical Data Visualization using TIBCO Spotfire and SAS

An Approach Finding the Right Tolerance Level for Clinical Data Acceptance

Package LSPFP. May 19, Index 8. Lysate and Secretome Peptide Feature Plotter

Transcription:

RImmPort: Quick Start Guide Ravi Shankar 2018-04-30 1 Introduction ImmPort study data is available for download in two formats currently: MySQL and TSV (Tab) formats. The RImmPort workflow is as follows: 1) MySQL formatted study data: User downloads one or more studies in MySQL zip files. Unzips the files. Loads local database instance. Connects to the database. Sets the ImmPort data source to the connection handle. Invokes RImmPort functions. 2) Tab: User downloads one or more studies in Tab format. Passes the folder where the zip files are located to an RImmPort function that builds SQLite database. Connects to the database. Sets the ImmPort data source to the connection handle. Invokes RImmPort functions. User downloads study data of interest from the ImmPort website ( http://www.immport.org ) **. Depending on the file format MySQL or Tab the data is loaded into a local MySQL and SQLite database respectively. The user installs the RImmPort package, loads the RImmPort library, connects to the ImmPort database, and calls RImmPort methods to load study data from the database into R. Please refer to RImmPort_Article.pdf for a detailed discussion on RImmPort. ** User need to regsiter to the ImmPort website for downloading the datasets. 2 Initial Steps Download MySQL or Tab formatted data of studies of interest from the ImmPort website If working with MySQL-format, load the data in to a local MySQL database Install and load RImmPort package, and other required packages. 3 Load the RImmPort library library(rimmport) library(dbi) library(sqldf) library(plyr) 1

4 Setup ImmPort data source that all RImmPort functions will use 4.1 Option 1: ImmPort MySQL database 4.1.1 Download zip files of ImmPort study data in MySQL format. e.g. SDY139 and SDY208 4.1.2 Load the data into a local MySQL database 4.1.3 Connect to the ImmPort MySQL database. # provide appropriate connection parameters mysql_conn <- dbconnect(mysql(), user="username", password="password", dbname="database",host="host") 4.1.4 Set the data source as the ImmPort MySQL database. setimmportdatasource(mysql_conn) 4.2 Option 2: ImmPort SQLite database 4.2.1 Download zip files of ImmPort data, in Tab format. e.g. SDY139 and SDY208 # get the directory where ImmPort sample data is stored in the directory structure of RImmPort package studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort") # set tab_dir to the folder where the zip files are located tab_dir <- file.path(studies_dir, "Tab") list.files(tab_dir) 4.2.2 Build a local SQLite ImmPort database instance. # set db_dir to the folder where the database file 'ImmPort.sqlite' should be stored db_dir <- file.path(studies_dir, "Db") # build a new ImmPort SQLite database with the data in the downloaded zip files buildnewsqlitedb(tab_dir, db_dir) list.files(db_dir) 4.2.3 Connect to the ImmPort SQLite database # get the directory of a sample SQLite database that has been bundled into the RImmPort package db_dir <- system.file("extdata", "ImmPortStudies", "Db", package = "RImmPort") 2

# connect to the private instance of the ImmPort database sqlite_conn <- dbconnect(sqlite(), dbname=file.path(db_dir, "ImmPort.sqlite")) 4.2.4 Set the data source to the ImmPort SQLite DB setimmportdatasource(sqlite_conn) ## [1] 1 5 NOTE: In rest of the script, all RImmPort functions will use the SQLite ImmPort database as the data source. 6 Get all study ids getlistofstudies() ## [1] "SDY139" "SDY208" 7 Get all data of a specific study The getstudyfromdatabase queries the ImmPort database for the entire dataset of a specific study, and instantiates the Study reference class with that data.?study # load all the data of study: `SDY139` study_id <- 'SDY139' sdy139 <- getstudy(study_id) ## loading Study ID = SDY139 ## loading Demographics data...done ## loading Concomitant Medications data...done ## loading Exposure data...done ## loading Substance Use data...done ## loading Adverse Events data...done ## loading Protocol Deviations data...done ## loading Medical History data...done ## loading Associated Persons Medical History data...done ## loading Laboratory Test Results data...done ## loading Physical Examination data...done ## loading Vital Signs data...done ## loading Questionnaires data...done ## loading Findings About data...done ## loading Skin Response data...done ## loading Genetics Findings data...loading HLA Typing Results data...done ## loading Array Results data...done ## loading Protein Quantification data...loading ELISA Results data...done 3

## loading MBAA Results data...done ## loading Cellular Quantification data...loading FCS Results data...done ## loading ELISPOT Results data...done ## loading Nucleic Acid Quantification data...loading PCR Results data...done ## loading Titer Assay Results data...loading HAI Assay Results data...done ## loading Neut. Ab Titer Results data...done ## loading TrialArms data...done ## loading Trial Visits data...done ## loading TrialInclusionExclusionCriteria data...done ## loading TrialSummary data... SDY139 done loading Study ID = SDY139 # access Demographics data of SDY139 dm_df <- sdy139$special_purpose$dm_l$dm_df head(dm_df) ## STUDYID DOMAIN USUBJID AGE AGEU SEX RACE ETHNIC SPECIES ## 1 SDY139 DM SUB118053 2 Months Unknown <NA> <NA> Mus musculus ## 2 SDY139 DM SUB118054 2 Months Unknown <NA> <NA> Mus musculus ## 3 SDY139 DM SUB118055 2 Months Unknown <NA> <NA> Mus musculus ## 4 SDY139 DM SUB118056 2 Months Unknown <NA> <NA> Mus musculus ## 5 SDY139 DM SUB118057 2 Months Unknown <NA> <NA> Mus musculus ## 6 SDY139 DM SUB118058 2 Months Unknown <NA> <NA> Mus musculus ## STRAIN SBSTRAIN ARMCD ARM ## 1 BALB/c <NA> ARM678 BALB/c ## 2 BALB/c <NA> ARM678 BALB/c ## 3 BALB/c <NA> ARM678 BALB/c ## 4 BALB/c <NA> ARM678 BALB/c ## 5 BALB/c <NA> ARM678 BALB/c ## 6 BALB/c <NA> ARM678 BALB/c # access Concomitant Medications data of SDY139 cm_df <- sdy139$interventions$cm_l$cm_df head(cm_df) ## NULL # get Trial Title from Trial Summary ts_df <- sdy139$trial_design$ts_l$ts_df title <- ts_df$tsval[ts_df$tsparmcd== "TITLE"] title ## [1] "The peptide specificity of the endogenous T follicular helper cell repertoire generated after pr 8 Get the list of Domain names. Note that some RImmPort functions take a domain name as input. # get the list of names of all supported Domains getlistofdomains() ## Domain Name Domain Code 4

## 1 Adverse Events AE ## 2 Concomitant Medications CM ## 3 Demographics DM ## 4 Exposure EX ## 5 Medical History MH ## 6 Associated Persons Medical History APMH ## 7 Laboratory Test Results LB ## 8 Physical Examination PE ## 9 Protocol Deviations DV ## 10 Trial Arms TA ## 11 Trial Visits TV ## 12 Trial Inclusion Exclusion Criteria TI ## 13 Trial Summary TS ## 14 Substance Use SU ## 15 Vital Signs VS ## 16 Questionnaires QS ## 17 Findings About FA ## 18 Skin Response SR ## 19 Genetics Findings PF ## 20 Protein Quantification ZA ## 21 Cellular Quantification ZB ## 22 Nucleic Acid Quantification ZC ## 23 Titer Assay Results ZD?"Demographics Domain" 9 Get list of studies with specifc domain data The Domain name should be exact to what is found in the list of Domain names. # get list of studies with Cellular Quantification data domain_name <- "Cellular Quantification" study_ids_l <- getstudieswithspecificdomaindata(domain_name) study_ids_l ## [1] "SDY139" "SDY208" 10 Get specifc domain data of one or more studies The Domain name should be exact to what is found in the list of Domain names. # get Cellular Quantification data of studies `SDY139` and `SDY208` # get domain code of Cellular Quantification domain domain_name <- "Cellular Quantification" getdomaincode(domain_name) ## [1] "ZB" study_ids <- c("sdy139", "SDY208") domain_name <- "Cellular Quantification" zb_l <- getdomaindataofstudies(domain_name, study_ids) 5

## loading Cellular Quantification data...loading FCS Results data...done ## loading ELISPOT Results data...done ## loading Cellular Quantification data...loading FCS Results data...done ## loading ELISPOT Results data...done if (length(zb_l) > 0) names(zb_l) ## [1] "zb_df" "suppzb_df" head(zb_l$zb_df) ## STUDYID DOMAIN USUBJID ZBSEQ ZBTEST ZBCAT ## 1 SDY139 ZB SUB118078 1 Figure-7_FCM Cellular Quantification ## 2 SDY139 ZB SUB118078 2 Figure-7_FCM Cellular Quantification ## 3 SDY139 ZB SUB118078 3 Figure-7_FCM Cellular Quantification ## 4 SDY139 ZB SUB118078 4 Figure-7_FCM Cellular Quantification ## 5 SDY139 ZB SUB118078 5 Figure-7_FCM Cellular Quantification ## 6 SDY139 ZB SUB118078 6 Figure-7_FCM Cellular Quantification ## ZBMETHOD ZBPOPDEF ZBPOPNAM ZBORRES ZBORRESU ZBBASPOP ZBSPEC ## 1 Flow Cytometry Cell ## 2 Flow Cytometry Cell ## 3 Flow Cytometry Cell ## 4 Flow Cytometry Cell ## 5 Flow Cytometry Cell ## 6 Flow Cytometry Cell ## VISITNUM VISIT ZBELTM ## 1 1 Day 0 Protein/peptide inoculation, SL_Sant_Plos1_2012_d0 P0D ## 2 1 Day 0 Protein/peptide inoculation, SL_Sant_Plos1_2012_d0 P0D ## 3 1 Day 0 Protein/peptide inoculation, SL_Sant_Plos1_2012_d0 P0D ## 4 1 Day 0 Protein/peptide inoculation, SL_Sant_Plos1_2012_d0 P0D ## 5 1 Day 0 Protein/peptide inoculation, SL_Sant_Plos1_2012_d0 P0D ## 6 1 Day 0 Protein/peptide inoculation, SL_Sant_Plos1_2012_d0 P0D ## ZBTPTREF ZBREFID ## 1 Time of initial vaccine administration ES662746 ## 2 Time of initial vaccine administration ES662746 ## 3 Time of initial vaccine administration ES662766 ## 4 Time of initial vaccine administration ES662766 ## 5 Time of initial vaccine administration ES662786 ## 6 Time of initial vaccine administration ES662786 ## ZBXFN ## 1 Tfh_Tfh CLN D0-1.297191.fcs ## 2 Tfh_Tfh CLN D0-1.297192.txt ## 3 Tfh 1_Tfh EAR D0-1.297261.fcs ## 4 Tfh 1_Tfh EAR D0-1.297262.txt ## 5 Tfh_Tfh ILN D0-1.297339.fcs ## 6 Tfh_Tfh ILN D0-1.297340.txt 11 Get the list of assay types from ImmPort studies getlistofassaytypes() 6

## [1] "ELISA" "ELISPOT" "Array" "PCR" ## [5] "HLA Typing" "MBAA" "HAI" "Neut Ab Titer" ## [9] "Flow" 12 Get specific assay data of one or more Immport studies The assay type should be exact to what is found in the list of supported assay types. # get 'ELISPOT' data of study `SDY139` assay_type <- "ELISPOT" study_id = "SDY139" elispot_l <- getassaydataofstudies(study_id, assay_type) ## loading Protein Quantification data...done ## loading Cellular Quantification data...loading ELISPOT Results data...done ## loading Nucleic Acid Quantification data...done ## loading Titer Assay Results data...done ## loading Genetics Findings data...done if (length(elispot_l) > 0) names(elispot_l) ## [1] "zb_df" "suppzb_df" head(elispot_l$zb_df) ## STUDYID DOMAIN USUBJID ZBSEQ ZBTEST ZBCAT ## 1 SDY139 ZB SUB118053 8675 Figure-4_ELISPOT Cellular Quantification ## 2 SDY139 ZB SUB118053 8658 Figure-4_ELISPOT Cellular Quantification ## 3 SDY139 ZB SUB118053 8673 Figure-4_ELISPOT Cellular Quantification ## 4 SDY139 ZB SUB118053 8660 Figure-4_ELISPOT Cellular Quantification ## 5 SDY139 ZB SUB118053 8662 Figure-4_ELISPOT Cellular Quantification ## 6 SDY139 ZB SUB118053 8663 Figure-4_ELISPOT Cellular Quantification ## ZBMETHOD ZBPOPDEF ZBPOPNAM ZBORRES ZBORRESU ZBBASPOP ZBSPEC VISITNUM ## 1 ELISPOT IL-2 IL-2 622.8571 1000000 Cell 3 ## 2 ELISPOT IL-21 IL-21 8337.5 1000000 Cell 3 ## 3 ELISPOT IL-2 IL-2 1048.571 1000000 Cell 3 ## 4 ELISPOT IL-21 IL-21 3925.0 1000000 Cell 3 ## 5 ELISPOT IL-21 IL-21 600.0 1000000 Cell 3 ## 6 ELISPOT IL-21 IL-21 798.5714 1000000 Cell 3 ## VISIT ZBELTM ## 1 Day 8 Sample collection, SL_Sant_Plos1_2012_d8 P8D ## 2 Day 8 Sample collection, SL_Sant_Plos1_2012_d8 P8D ## 3 Day 8 Sample collection, SL_Sant_Plos1_2012_d8 P8D ## 4 Day 8 Sample collection, SL_Sant_Plos1_2012_d8 P8D ## 5 Day 8 Sample collection, SL_Sant_Plos1_2012_d8 P8D ## 6 Day 8 Sample collection, SL_Sant_Plos1_2012_d8 P8D ## ZBTPTREF ZBREFID ZBXFN ## 1 Time of initial vaccine administration ES661770 ## 2 Time of initial vaccine administration ES661753 ## 3 Time of initial vaccine administration ES661768 ## 4 Time of initial vaccine administration ES661755 ## 5 Time of initial vaccine administration ES661757 ## 6 Time of initial vaccine administration ES661758 7

13 Serialize RImmPort-formatted study data as.rds files # serialize all of the data of studies `SDY139` and `SDY208' study_ids <- c('sdy139', 'SDY208') # the folder where the.rds files will be stored rds_dir <- file.path(studies_dir, "Rds") serialzestudydata(study_ids, rds_dir) list.files(rds_dir) 14 Load the serialzed data (.rds) files of a specific domain of a study from the directory where the files are located # get the directory where ImmPort sample data is stored in the directory structure of RImmPort package studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort") # the folder where the.rds files will be stored rds_dir <- file.path(studies_dir, "Rds") # list the studies that have been serialized list.files(rds_dir) ## [1] "SDY139" "SDY208" # load the serialized data of study `SDY208` study_id <- 'SDY208' dm_l <- loadserializedstudydata(rds_dir, study_id, "Demographics") ## ## domain_file_path = /tmp/rtmpdgbycq/rinst489e7d725b61/rimmport/extdata/immportstudies/rds/sdy208/dm.r ## suppdomain_file_path = /tmp/rtmpdgbycq/rinst489e7d725b61/rimmport/extdata/immportstudies/rds/sdy208/ head(dm_l[[1]]) ## STUDYID DOMAIN USUBJID AGE AGEU SEX RACE ETHNIC SPECIES ## 1 SDY208 DM SUB120516 6 Weeks Female <NA> <NA> Mus musculus ## 2 SDY208 DM SUB120517 6 Weeks Female <NA> <NA> Mus musculus ## 3 SDY208 DM SUB120518 6 Weeks Female <NA> <NA> Mus musculus ## 4 SDY208 DM SUB120519 6 Weeks Female <NA> <NA> Mus musculus ## 5 SDY208 DM SUB120520 6 Weeks Female <NA> <NA> Mus musculus ## 6 SDY208 DM SUB120521 6 Weeks Female <NA> <NA> Mus musculus ## STRAIN SBSTRAIN ARMCD ## 1 <NA> <NA> ARM881 ## 2 <NA> <NA> ARM882 ## 3 <NA> <NA> ARM883 ## 4 <NA> <NA> ARM884 ## 5 <NA> <NA> ARM885 ## 6 <NA> <NA> ARM886 ## ## 1 Microneedle vaccination- 5 ug inactivated A/Califor ## 2 Subcutaneous vaccination- 5 ug inactivated A/Califor 8

## 5 Subcutaneous vaccination- 5 ug inactivated A/California/04/09 virus, Challenged: 10x LD50 A/Califor ## 3 Uncoated microneedle vaccin ## 4 Microneedle vaccination- 5 ug inactivated A/California/04/09 virus, Challenged: 10x LD50 A/Califor ## 6 Uncoated microneedle vaccination- Placebo, Challenged: 10x LD50 A/Califor 9