Title: | RImmPort: Enabling Ready-for-analysis Immunology Research Data |
---|---|
Description: | The RImmPort package simplifies access to ImmPort data for analysis in the R environment. It provides a standards-based interface to the ImmPort study data that is in a proprietary format. |
Authors: | Ravi Shankar <[email protected]> |
Maintainer: | Zicheng Hu <[email protected]>, Ravi Shankar <[email protected]> |
License: | GPL-3 |
Version: | 1.35.0 |
Built: | 2024-10-31 04:23:48 UTC |
Source: | https://github.com/bioc/RImmPort |
The Adverse Events data of an ImmPort study is reformated to the CDISC SDTM Adverse
Events (AE) domain model, and is a list of 2 data frames containing 1) Adverse Events data AE
and 2) any supplemental Adverse Events data SUPP
Variable Name | Variable Label |
STUDYID | Study Identifier |
DOMAIN | Domain Abbreviation |
USUBJID | Unique Subject Identifier |
AESEQ | Sequence Number |
AESPID | Sponsor-Defined Identifier |
AETERM | Reported Term for the Adverse Event |
AEMODIFY | Modified Reported Term |
AEBODYSYS | Body System or Organ Class |
AELOC | Location of Event |
AESEV | Severity/Intensity |
AEACN | Action Taken with Study Treatment |
AEACNOTH | Other Action Taken |
AEREL | Causality |
AERELNST | Relationship to Non-Study Treatment |
AEOUT | Outcome of Adverse Event |
AESTDY | Study Day of Start of Adverse Event |
AEENDY | Study Day of End of Adverse Event |
Variable Name | Variable Label |
STUDYID | Study Identifier |
DOMAIN | Domain Abbreviation |
APID | Associated Persons Identifier |
MHSEQ | Sequence Number |
RSUBJID | Related Subject |
SREL | Subject Relationship |
MHTERM | Reported Term for the Medical History |
MHCAT | Category for Medical History |
MHBODSYS | Body System or Organ Class |
MHDTC | Date/Time of History Collection |
MHDY | RStudy Day of History Collection |
The Associated Persons Medical History data of an ImmPort study is reformated to the CDISC
SDTM AAssociated Persons Medical History (APMH) domain model, and is a list of 2 data frames
containing 1) Associated Persons Medical History data APMH
and 2) any supplemental
Associated Persons Medical History data SUPP
The function buildSqliteDb
builds a sqlite db of ImmPort study data. It takes in as input the
study files in the TSV (Tab) format.
buildNewSqliteDb(data_dir, db_dir)
buildNewSqliteDb(data_dir, db_dir)
data_dir |
File directory where the study TSV files are stored |
db_dir |
File directory where the sqlite database will be stored |
The SQLite database name
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") # 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 # dbname <- buildNewSqliteDb(tab_dir, db_dir)
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") # 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 # dbname <- buildNewSqliteDb(tab_dir, db_dir)
The ImmPort study data generated from assays of types: Flow and ELISPOT are grouped into the
Cellular Quantification Domain. The data is reformated to a custom Cellular Quantification domain model in
CDISC SDTM standards, and is a list of 2 data frames containing 1) Cellular Quantification data ZB
and 2) any supplemental
Cellular Quantification data SUPP
Variable Name | Variable Label |
STUDYID | Study Identifier |
DOMAIN | Domain Abbreviation |
USUBJID | Unique Subject Identifier |
CMSEQ | Sequence Number |
CMTRT | Reported Name of Drug, Med, or Therapy |
CMCAT | Category for Medication |
CMDOSE | Dose per Administration |
CMDOSTXT | Dose Description |
CMDOSU | Dose Units |
CMDOSFREQ | Dosing Frequency per Interval |
CMROUTE | Route of Administration |
CMSTDTC | Start Date/Time of Medication |
CMENDTC | End Date/Time of Medication |
CMSTDY | Study Day of Start of Medication |
CMENDY | Study Day of End of Medication |
The Concomitant Medications data of an ImmPort study is reformated to the CDISC SDTM
Concomitant Medications (CM) domain model, and is a list of 2 data frames containing
1) Concomitant Medications data CM
and 2) any supplemental Concomitant
Medications data SUPP
The Demographics data of an ImmPort study is reformated to the CDISC SDTM Demographics (DM)
domain model, and is a list of 2 data frames containing 1) Demographics data DM
and 2) any supplemental Demographics data SUPP
Variable Name | Variable Label |
STUDYID | Study Identifier |
DOMAIN | Domain Abbreviation |
USUBJID | Unique Subject Identifier |
AGE | Age |
AGEU | Age Units |
SEX | Sex |
RACE | Race (only for human data) |
ETHNIC | Ethnicity (only for human data) |
SPECIES | Species (only for non-human data) |
STRAIN | Strain/Substrain (only for non-human data) |
SBSTRAIN | Strain/Substrain Details (only for non-human data) |
ARMCD | Planned Arm Code |
ARM | Description of Planned Arm |
Variable Name | Variable Label |
STUDYID | Study Identifier |
DOMAIN | Domain Abbreviation |
USUBJID | Unique Subject Identifier |
DVSEQ | Sequence Number |
DVTERM | Protocol Deviation Term |
Events class
ae_l
Adverse Events data AE
and supplemental Adverse Events data SUPP
dv_l
Protocol Deviations data DV
and supplemental Protocol Deviations data SUPPDV
mh_l
Medical History data MH
and supplemental Medical History data SUPPMH
apmh_l
Associated Persons Medical History data APMH
and supplemental Associated Persons Medical History data SUPP
library(DBI) library(sqldf) studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort") db_dir <- file.path(studies_dir, "Db") sqlite_conn <- dbConnect(SQLite(), dbname=file.path(db_dir, "ImmPort.sqlite")) setImmPortDataSource(sqlite_conn) sdy139 <- getStudy("SDY139") ae_df <- sdy139$events$ae_l$ae_df
library(DBI) library(sqldf) studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort") db_dir <- file.path(studies_dir, "Db") sqlite_conn <- dbConnect(SQLite(), dbname=file.path(db_dir, "ImmPort.sqlite")) setImmPortDataSource(sqlite_conn) sdy139 <- getStudy("SDY139") ae_df <- sdy139$events$ae_l$ae_df
Variable Name | Variable Label |
STUDYID | Study Identifier |
DOMAIN | Domain Abbreviation |
USUBJID | Unique Subject Identifier |
EXSEQ | Sequence Number |
EXTRT | Name of Treatment |
EXCAT | Category of Treatment |
EXDOSE | Dose |
EXDOSTXT | Dose Description |
EXDOSU | Dose Units |
EXDOSFRQ | Dosing Frequency per Interval |
EXROUTE | Route of Administration |
EXSTDTC | Start Date/Time of Treatment |
EXENDTC | End Date/Time of Treatment |
EXSTDY | Study Day of Start of Treatment |
EXENDY | Study Day of End of Treatment |
The Exposure data of an ImmPort study is reformated to the CDISC SDTM Exposure (EX)
domain model, and is a list of 2 data frames containing 1) Exposure data EX
and 2) any supplemental Exposure data SUPP
Variable Name | Variable Label |
STUDYID | Study Identifier |
DOMAIN | Domain Abbreviation |
USUBJID | Unique Subject Identifier |
FASEQ | Sequence Number |
FATEST | Findings About Test Name |
FAOBJ | Object of the Observation |
FACAT | Category for Findings About |
FAORRES | Results or Findings in Original Units |
FAORRESU | Original Units |
FALOC | Location of the Finding About |
VISITNUM | Visit Number |
VISIT | Visit Name |
FADY | Study Day of Collection |
The Findings About data of an ImmPort study is reformated to the CDISC SDTM Findings
About (FA) domain model, and is a list of 2 data frames containing 1) Findings About data FA
and 2) any supplemental Findings About data SUPPFA
Findings class
lb_l
Laboratory Test Results data LB
and supplemental Laboratory Test Results data SUPPLB
pe_l
Physical Examination data PE
and supplemental Physical Examination data SUPPPE
vs_l
Vital Signs data VS
and supplemental Vital Signs data SUPPVS
qs_l
Questionnaires data QS
and supplemental Questionnaires data SUPP
fa_l
Findings About data FA
and supplemental Findings About data SUPPFA
sr_l
Skin Response data SR
and supplemental Skin Response data SUPP
pf_l
Genetics Findings data PF
and supplemental Genetics Findings data SUPPPF
za_l
Protein Quantification data ZA
and supplemental Protein Quantification data SUPPZA
zb_l
Cellular Quantification data ZB
and supplemental Cellular Quantification data SUPP
zc_l
Nucleic Acid Quantification data ZC
and supplemental Nucleic Acid Quantification data SUPP
zd_l
Titer Assay Results data ZD
and supplemental Titer Assay Results data SUPP
library(DBI) library(sqldf) studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort") db_dir <- file.path(studies_dir, "Db") sqlite_conn <- dbConnect(SQLite(), dbname=file.path(db_dir, "ImmPort.sqlite")) setImmPortDataSource(sqlite_conn) sdy139 <- getStudy("SDY139") zb_df <- sdy139$findings$zb_l$zb_df
library(DBI) library(sqldf) studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort") db_dir <- file.path(studies_dir, "Db") sqlite_conn <- dbConnect(SQLite(), dbname=file.path(db_dir, "ImmPort.sqlite")) setImmPortDataSource(sqlite_conn) sdy139 <- getStudy("SDY139") zb_df <- sdy139$findings$zb_l$zb_df
The ImmPort study data generated from assays of types: HLA Typing and Array are grouped into the
Genetics Findings Domain. The data is reformated to a PharmacoGenomics and Genetics Findings (PF) model in
CDISC SDTM standards, and is a list of 2 data frames containing 1) Genetics Findings data PF
and 2) any supplemental Genetics Findings data SUPP
Get specific assay data of one or more studies from the ImmPort database
getAssayDataOfStudies(study_ids, assay_type)
getAssayDataOfStudies(study_ids, assay_type)
study_ids |
List of study indentifiers |
assay_type |
Assay Type |
a list of 1) domain data of specicifc assay technology and 2) any supplemental domain data of the studies
Ravi Shankar
library(DBI) library(sqldf) studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort") db_dir <- file.path(studies_dir, "Db") sqlite_conn <- dbConnect(SQLite(), dbname=file.path(db_dir, "ImmPort.sqlite")) setImmPortDataSource(sqlite_conn) elispot_l <- getAssayDataOfStudies("SDY139", "ELISPOT") if (length(elispot_l) > 0) names(elispot_l) head(elispot_l$zb_df)
library(DBI) library(sqldf) studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort") db_dir <- file.path(studies_dir, "Db") sqlite_conn <- dbConnect(SQLite(), dbname=file.path(db_dir, "ImmPort.sqlite")) setImmPortDataSource(sqlite_conn) elispot_l <- getAssayDataOfStudies("SDY139", "ELISPOT") if (length(elispot_l) > 0) names(elispot_l) head(elispot_l$zb_df)
The function getListOfDomains
returns the code of a specific domain
getDomainCode(domain)
getDomainCode(domain)
domain |
Name of a specific domain |
A list of of all domain names and codes
domain <- "Demographics" code <- getDomainCode(domain)
domain <- "Demographics" code <- getDomainCode(domain)
Get specific domain data of one or more studies from the ImmPort database
getDomainDataOfStudies(domain, study_ids)
getDomainDataOfStudies(domain, study_ids)
domain |
Name of a specific domain |
study_ids |
List of study indentifiers |
a list of 1) domain data and 2) supplemental domain data of the studies
library(DBI) library(sqldf) studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort") db_dir <- file.path(studies_dir, "Db") sqlite_conn <- dbConnect(SQLite(), dbname=file.path(db_dir, "ImmPort.sqlite")) setImmPortDataSource(sqlite_conn) dm_df <- getDomainDataOfStudies("Demographics", "SDY139")
library(DBI) library(sqldf) studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort") db_dir <- file.path(studies_dir, "Db") sqlite_conn <- dbConnect(SQLite(), dbname=file.path(db_dir, "ImmPort.sqlite")) setImmPortDataSource(sqlite_conn) dm_df <- getDomainDataOfStudies("Demographics", "SDY139")
The function getListOfAssayTypes
returns a list of assay types that ImmPort studies have employed in their experimetal assays
getListOfAssayTypes()
getListOfAssayTypes()
A list of assay types
at_l <- getListOfAssayTypes()
at_l <- getListOfAssayTypes()
The function getListOfDomains
returns a list of all domain names and codes
getListOfDomains()
getListOfDomains()
A list of of all domain names and codes
domains_df <- getListOfDomains()
domains_df <- getListOfDomains()
Get a list of all studies
getListOfStudies()
getListOfStudies()
List of study indentifiers
library(DBI) library(sqldf) studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort") db_dir <- file.path(studies_dir, "Db") sqlite_conn <- dbConnect(SQLite(), dbname=file.path(db_dir, "ImmPort.sqlite")) setImmPortDataSource(sqlite_conn) study_ids <- getListOfStudies()
library(DBI) library(sqldf) studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort") db_dir <- file.path(studies_dir, "Db") sqlite_conn <- dbConnect(SQLite(), dbname=file.path(db_dir, "ImmPort.sqlite")) setImmPortDataSource(sqlite_conn) study_ids <- getListOfStudies()
Get a list of studies that have specific assay type data
getStudiesWithSpecificAssayData(assay_type, all_study_ids = c("ALL"))
getStudiesWithSpecificAssayData(assay_type, all_study_ids = c("ALL"))
assay_type |
Assay Type |
all_study_ids |
List of study indentifiers to search on |
List of study indentifiers
library(DBI) library(sqldf) studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort") db_dir <- file.path(studies_dir, "Db") sqlite_conn <- dbConnect(SQLite(), dbname=file.path(db_dir, "ImmPort.sqlite")) setImmPortDataSource(sqlite_conn) study_ids <- getStudiesWithSpecificAssayData("ELISPOT")
library(DBI) library(sqldf) studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort") db_dir <- file.path(studies_dir, "Db") sqlite_conn <- dbConnect(SQLite(), dbname=file.path(db_dir, "ImmPort.sqlite")) setImmPortDataSource(sqlite_conn) study_ids <- getStudiesWithSpecificAssayData("ELISPOT")
Get a list of studies that have specific domain data
getStudiesWithSpecificDomainData(domain, all_study_ids = c("ALL"))
getStudiesWithSpecificDomainData(domain, all_study_ids = c("ALL"))
domain |
Name of a specific domain |
all_study_ids |
List of study indentifiers to search on |
List of study indentifiers
library(DBI) library(sqldf) studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort") db_dir <- file.path(studies_dir, "Db") sqlite_conn <- dbConnect(SQLite(), dbname=file.path(db_dir, "ImmPort.sqlite")) setImmPortDataSource(sqlite_conn) study_ids <- getStudiesWithSpecificDomainData("Demographics")
library(DBI) library(sqldf) studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort") db_dir <- file.path(studies_dir, "Db") sqlite_conn <- dbConnect(SQLite(), dbname=file.path(db_dir, "ImmPort.sqlite")) setImmPortDataSource(sqlite_conn) study_ids <- getStudiesWithSpecificDomainData("Demographics")
The function getStudy
queries the ImmPort data source for data of a specific study in
all domains. The data is then structured into Study
as classes, domains, variables and values.
getStudy(study_id)
getStudy(study_id)
study_id |
Identifier of a specific study |
A study data object where in all data are structured as classes, domains, variables and values (in CDISC format)
library(DBI) library(sqldf) studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort") db_dir <- file.path(studies_dir, "Db") sqlite_conn <- dbConnect(SQLite(), dbname=file.path(db_dir, "ImmPort.sqlite")) setImmPortDataSource(sqlite_conn) sdy139 <- getStudy("SDY139")
library(DBI) library(sqldf) studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort") db_dir <- file.path(studies_dir, "Db") sqlite_conn <- dbConnect(SQLite(), dbname=file.path(db_dir, "ImmPort.sqlite")) setImmPortDataSource(sqlite_conn) sdy139 <- getStudy("SDY139")
Interventions class
cm_l
Concomitant Medications data CM
and supplemental Concomitant Medications data SUPP
ex_l
su_l
Substance Use data SU
and supplemental Substance Use data SUPP
library(DBI) library(sqldf) studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort") db_dir <- file.path(studies_dir, "Db") sqlite_conn <- dbConnect(SQLite(), dbname=file.path(db_dir, "ImmPort.sqlite")) setImmPortDataSource(sqlite_conn) sdy139 <- getStudy("SDY139") cm_df <- sdy139$interventions$cm_l$cm_df
library(DBI) library(sqldf) studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort") db_dir <- file.path(studies_dir, "Db") sqlite_conn <- dbConnect(SQLite(), dbname=file.path(db_dir, "ImmPort.sqlite")) setImmPortDataSource(sqlite_conn) sdy139 <- getStudy("SDY139") cm_df <- sdy139$interventions$cm_l$cm_df
The Laboratory Test Results data of an ImmPort study is reformated to the CDISC SDTM
Laboratory Test Results (LB) domain model, and is a list of 2 data frames containing 1) Laboratory
Test Results data LB
and 2) any supplemental Laboratory Test Results data SUPPLB
Variable Name | Variable Label |
STUDYID | Study Identifier |
DOMAIN | Domain Abbreviation |
USUBJID | Unique Subject Identifier |
LBSEQ | Sequence Number |
LBTEST | Lab Test or Examination Name |
LBCAT | Category for Lab Test |
LBORRES | Result or Finding in Original Units |
LBORRESU | Original Units |
LBSPEC | Specimen Type |
LBREFID | Specimen Identifier |
VISITNUM | Visit Number |
VISIT | Visit Name |
LBELTM | Planned Elapsed Time from Time Point Ref |
LBTPTREF | Time Point Reference |
Load the serialzed data (.rds) file of a specific domain of a study study from the directory where the file is located
loadSerializedStudyData(data_dir, study_id, domain)
loadSerializedStudyData(data_dir, study_id, domain)
data_dir |
Path to a file folder where the .rds study files reside |
study_id |
Study indentifier |
domain |
Domain of interest |
A study data object where in all data are structured as classes, domains, variables and values (in CDISC format)
studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort") # the folder where the .rds files will be stored rds_dir <- file.path(studies_dir, "Rds") # load the serialized data of study `SDY208` loadSerializedStudyData(rds_dir, 'SDY208', "Demographics")
studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort") # the folder where the .rds files will be stored rds_dir <- file.path(studies_dir, "Rds") # load the serialized data of study `SDY208` loadSerializedStudyData(rds_dir, 'SDY208', "Demographics")
The Medical History data of an ImmPort study is reformated to the CDISC SDTM Medical
History (MH) domain model, and is a list of 2 data frames containing 1) Medical History
data MH
and 2) any supplemental Medical History data SUPPMH
The Domain data list comprises of the the Domain datafrome that is in wide form, and any Supplemental
dataframe that is in long form. The function mergeDomainAndSupplemental
transposes the Supplemental
dataframe into a wide form, and merges it with the Domain dataframe.
mergeDomainAndSupplemental(data_list)
mergeDomainAndSupplemental(data_list)
data_list |
A list of 1) Domain dataframe and 2) any Supplemental dataframe |
The merged dataframe
library(DBI) library(sqldf) studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort") db_dir <- file.path(studies_dir, "Db") sqlite_conn <- dbConnect(SQLite(), dbname=file.path(db_dir, "ImmPort.sqlite")) setImmPortDataSource(sqlite_conn) l <- getDomainDataOfStudies("Cellular Quantification", "SDY208") df <- mergeDomainAndSupplemental(l)
library(DBI) library(sqldf) studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort") db_dir <- file.path(studies_dir, "Db") sqlite_conn <- dbConnect(SQLite(), dbname=file.path(db_dir, "ImmPort.sqlite")) setImmPortDataSource(sqlite_conn) l <- getDomainDataOfStudies("Cellular Quantification", "SDY208") df <- mergeDomainAndSupplemental(l)
Variable Name | Variable Label |
STUDYID | Study Identifier |
DOMAIN | Domain Abbreviation |
USUBJID | Unique Subject Identifier |
MHSEQ | Sequence Number |
MHTERM | Reported Term for the Medical History |
MHCAT | Category for Medical History |
MHBODSYS | Body System or Organ Class |
MHDY | Study Day of History Collection |
The ImmPort study data generated from assays of types: PCR are grouped into the
Nucleic Acid Quantification Domain. The data is reformated to a custom Nucleic Acid Quantification domain model in
CDISC SDTM standards, and is a list of 2 data frames containing 1) Nucleic Acid Quantification data ZC
and 2) any supplemental
Nucleic Acid Quantification data SUPP
Variable Name | Variable Label |
STUDYID | Study Identifier |
DOMAIN | Domain Abbreviation |
USUBJID | Unique Subject Identifier |
PESEQ | Sequence Number |
PETEST | Body System Examined |
PECAT | Category for Examination |
PEBODSYS | Body System or Organ Class |
PEORRES | Verbatim Examination Finding |
PEORRESU | Original Units |
PELOC | Location of Physical Exam Finding |
VISITNUM | Visit Number |
VISIT | Visit Name |
PEDY | Study Day of Examination |
Variable Name | Variable Label |
STUDYID | Study Identifier |
DOMAIN | Domain Abbreviation |
USUBJID | Unique Subject Identifier |
PFSEQ | Sequence Number |
PFGRPID | Group Identifier |
PFTEST | Test Name |
PFCAT | Category for Test |
PFMETHOD | Method of the Test |
PFGENRI | Genetic Region of Interest |
PFORRES | Result or Finding in Original Units |
PFALLELC | Allele (Chromosome) Identifier |
PFSPEC | Specimen Type |
PFREFID | Reference ID (Specimen Identifier) |
VISITNUM | Visit Number |
VISIT | Visit Name |
PFELTM | Planned Elapsed Time from Time Point Ref |
PFTPTREF | Time Point Reference |
PFXFN | Raw Data File or Life Science Identifier |
The Physical Examination data of an ImmPort study is reformated to the CDISC SDTM
Physical Examination (PE) domain model, and is a list of 2 data frames containing 1) Physical
Examination data PE
and 2) any supplemental Physical Examination data SUPPPE
The ImmPort study data generated from assays of types: ELISA and MBAA are grouped into the
Cellular Quantification Domain. The data is reformated to a custom Protein Quantification domain model in
CDISC SDTM standards, and is a list of 2 data frames containing 1) Protein Quantification data ZA
and 2) any supplemental Protein Quantification data SUPP
The Protocol Deviations data of an ImmPort study is reformated to the CDISC SDTM
Protocol Deviations (DV) domain model, and is a list of 2 data frames containing 1) Protocol
Deviations data DV
and 2) any supplemental Protocol Deviations data SUPPDV
Variable Name | Variable Label |
STUDYID | Study Identifier |
DOMAIN | Domain Abbreviation |
USUBJID | Unique Subject Identifier |
QSSEQ | Sequence Number |
QSTEST | Questionnaires Test Name |
QSCAT | Category for Questionnaires |
QSORRES | Results or Findings in Original Units |
QSORRESU | Original Units |
VISITNUM | Visit Number |
VISIT | Visit Name |
QSDY | Study Day of Finding |
The Questionnaires data of an ImmPort study is reformated to the CDISC SDTM
Questionnaires (QS) domain model, and is a list of 2 data frames containing 1) Questionnaires
data QS
and 2) any supplemental Questionnaires data SUPP
The 'RImmPort' package simplifies access to ImmPort data for analysis, as the name implies, in the R statistical environment. It provides a standards-based interface to the ImmPort study data that is in a proprietary format.
Load specific studies from the database and save it in .rds format in a local file directory
serialzeStudyData(study_ids, data_dir)
serialzeStudyData(study_ids, data_dir)
study_ids |
List of study indentifiers |
data_dir |
Path to a file folder where the .rds study files will be saved into |
List of study indentifiers that were serialized successfully
library(DBI) library(sqldf) studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort") db_dir <- file.path(studies_dir, "Db") sqlite_conn <- dbConnect(SQLite(), dbname=file.path(db_dir, "ImmPort.sqlite")) setImmPortDataSource(sqlite_conn) # the folder where the .rds files will be stored rds_dir <- file.path(studies_dir, "Rds") study_ids <- c('SDY139', 'SDY208') serialzeStudyData(study_ids, rds_dir)
library(DBI) library(sqldf) studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort") db_dir <- file.path(studies_dir, "Db") sqlite_conn <- dbConnect(SQLite(), dbname=file.path(db_dir, "ImmPort.sqlite")) setImmPortDataSource(sqlite_conn) # the folder where the .rds files will be stored rds_dir <- file.path(studies_dir, "Rds") study_ids <- c('SDY139', 'SDY208') serialzeStudyData(study_ids, rds_dir)
The function setImmPortDataSource
sets the data source variable in RImmPort environment,
to the connection handle to the MySQL or SQLite database, or to the file directory where the
pre-created RImmPort-formatted files are stored.
setImmPortDataSource(data_src)
setImmPortDataSource(data_src)
data_src |
A connection handle to ImmPort (MySQL or SQLite) database instance or a directory handle to folder where study RImmPort-formatted (.rds) files located |
1 if successful
library(DBI) library(sqldf) studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort") db_dir <- file.path(studies_dir, "Db") sqlite_conn <- dbConnect(SQLite(), dbname=file.path(db_dir, "ImmPort.sqlite")) setImmPortDataSource(sqlite_conn)
library(DBI) library(sqldf) studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort") db_dir <- file.path(studies_dir, "Db") sqlite_conn <- dbConnect(SQLite(), dbname=file.path(db_dir, "ImmPort.sqlite")) setImmPortDataSource(sqlite_conn)
The Skin Response data of an ImmPort study is reformated to the CDISC SDTM Skin Response (SR)
domain model, and is a list of 2 data frames containing 1) Skin Response data SR
and 2) any supplemental Skin Response data SUPP
Special Purpose class
library(DBI) library(sqldf) studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort") db_dir <- file.path(studies_dir, "Db") sqlite_conn <- dbConnect(SQLite(), dbname=file.path(db_dir, "ImmPort.sqlite")) setImmPortDataSource(sqlite_conn) sdy139 <- getStudy("SDY139") dm_df <- sdy139$special_purpose$dm_l$dm_df
library(DBI) library(sqldf) studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort") db_dir <- file.path(studies_dir, "Db") sqlite_conn <- dbConnect(SQLite(), dbname=file.path(db_dir, "ImmPort.sqlite")) setImmPortDataSource(sqlite_conn) sdy139 <- getStudy("SDY139") dm_df <- sdy139$special_purpose$dm_l$dm_df
Variable Name | Variable Label |
STUDYID | Study Identifier |
DOMAIN | Domain Abbreviation |
USUBJID | Unique Subject Identifier |
SRSEQ | Sequence Number |
SRTEST | Skin Response Test or Examination Name |
SROBJ | Object of the Observation |
SRCAT | Category for Test |
SRORRES | Results or Findings in Original Units |
SRORRESU | Original Units |
SRLOC | Location used for Measurement |
VISITNUM | Visit Number |
VISIT | Visit Name |
SRDY | Study Day of Visit/Collection/Exam |
Study class
special_purpose
interventions
events
findings
trial_design
library(DBI) library(sqldf) studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort") db_dir <- file.path(studies_dir, "Db") sqlite_conn <- dbConnect(SQLite(), dbname=file.path(db_dir, "ImmPort.sqlite")) setImmPortDataSource(sqlite_conn) sdy139 <- getStudy("SDY139")
library(DBI) library(sqldf) studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort") db_dir <- file.path(studies_dir, "Db") sqlite_conn <- dbConnect(SQLite(), dbname=file.path(db_dir, "ImmPort.sqlite")) setImmPortDataSource(sqlite_conn) sdy139 <- getStudy("SDY139")
Variable Name | Variable Label |
STUDYID | Study Identifier |
DOMAIN | Domain Abbreviation |
USUBJID | Unique Subject Identifier |
SUSEQ | Sequence Number |
SUTRT | Reported Name of Substance |
SUCAT | Category of Substance Use |
SUDOSE | Substance Use Consumption |
SUDOSTXT | Substance Use Consumption Text |
SUDOSU | Consumption Units |
SUDOSFRQ | Use Frequency per Interval |
SUROUTE | Route of Administration |
SUSTDTC | Start Date/Time of Substance Use |
SUENDTC | End Date/Time of Substance Use |
SUSTDY | Study Day of Start of Substance Use |
SUENDY | Study Day of End of Substance Use |
Actual subject visits data of an ImmPort study is reformated to the CDISC SDTM Subject Visits (SV)
domain model, and is a list of 2 data frames containing 1) Subject Visits data SV
and 2) any supplemental Subject Visits data SUPP
The Substance Use data of an ImmPort study is reformated to the CDISC SDTM Substance Use (SU)
domain model, and is a list of 2 data frames containing 1) Substance Use data SU
and 2) any supplemental Substance Use data SUPP
Variable Name | Variable Label |
STUDYID | Study Identifier |
RDOMAIN | Related Domain Abbreviation |
USUBJID | Unique Subject Identifier |
IDVAR | Identifying Variable |
IDVARVAL | Identifying Variable Value |
QNAM | Qualifier Variable Name |
QLABEL | Qualifier Variable Label |
QVAL | Data Value |
Variable Name | Variable Label |
STUDYID | Study Identifier |
RDOMAIN | Related Domain Abbreviation |
USUBJID | Unique Subject Identifier |
IDVAR | Identifying Variable |
IDVARVAL | Identifying Variable Value |
QNAM | Qualifier Variable Name |
QLABEL | Qualifier Variable Label |
QVAL | Data Value |
The following table enumerates the values in QNAM and QLABEL variables
QNAM | QLABEL |
DVRELAE | Is Deviation Related to an Adverse Event? |
DVREASON | Reason for Deviation |
DVRESOL | Resulotion of Deviation |
DVCONT | Did Subject continued in Study? |
DVSTDY | Study Day of Start of Deviation |
DVENDY | Study Day of End of Deviation |
Variable Name | Variable Label |
STUDYID | Study Identifier |
RDOMAIN | Related Domain Abbreviation |
USUBJID | Unique Subject Identifier |
FASEQ | Sequence Number |
IDVAR | Identifying Variable |
IDVARVAL | Identifying Variable Value |
QNAM | Qualifier Variable Name |
QLABEL | Qualifier Variable Label |
QVAL | Data Value |
The following table enumerates the values in QNAM and QLABEL variables
QNAM | QLABEL |
FATOD | Time of Day of Collection |
Variable Name | Variable Label |
STUDYID | Study Identifier |
RDOMAIN | Related Domain Abbreviation |
USUBJID | Unique Subject Identifier |
IDVAR | Identifying Variable |
IDVARVAL | Identifying Variable Value |
QNAM | Qualifier Variable Name |
QLABEL | Qualifier Variable Label |
QVAL | Data Value |
The following table enumerates the values in QNAM and QLABEL variables
QNAM | QLABEL |
LBSPECSB | Specimen Subtype |
VISITMIN | Planned Visit Minimum Start Day |
VISITMAX | Planned Visit Maximum Start Day |
Variable Name | Variable Label |
STUDYID | Study Identifier |
RDOMAIN | Related Domain Abbreviation |
USUBJID | Unique Subject Identifier |
MHSEQ | Sequence Number |
IDVAR | Identifying Variable |
IDVARVAL | Identifying Variable Value |
QNAM | Qualifier Variable Name |
QLABEL | Qualifier Variable Label |
QVAL | Data Value |
The following table enumerates the values in QNAM and QLABEL variables
QNAM | QLABEL |
MHAGE | Age at Onset |
MHAGEU | Age at Onset Units |
MHTOD | Time of Day |
Variable Name | Variable Label |
STUDYID | Study Identifier |
RDOMAIN | Related Domain Abbreviation |
USUBJID | Unique Subject Identifier |
PESEQ | Sequence Number |
IDVAR | Identifying Variable |
IDVARVAL | Identifying Variable Value |
QNAM | Qualifier Variable Name |
QLABEL | Qualifier Variable Label |
QVAL | Data Value |
The following table enumerates the values in QNAM and QLABEL variables
QNAM | QLABEL |
PETOD | Time of Day |
Variable Name | Variable Label |
STUDYID | Study Identifier |
RDOMAIN | Related Domain Abbreviation |
USUBJID | Unique Subject Identifier |
IDVAR | Identifying Variable |
IDVARVAL | Identifying Variable Value |
QNAM | Qualifier Variable Name |
QLABEL | Qualifier Variable Label |
QVAL | Data Value |
The following table enumerates the values in QNAM and QLABEL variables
QNAM | QLABEL |
PFPOPAR | Geographic Area of the Population |
PFSPECSB | Specimen Subtype |
PFREFIDP | Source Specimen Identifier |
VISITMIN | Planned Visit Minimum Start Day |
VISITMAX | Planned Visit Maximum Start Day |
PFSPTRT | Specimen Treatment |
PFTRTAMV | Specimen Treatment Amount Value |
PFTRTAMU | Specimen Treatment Amount Unit |
PFTRTDUV | Specimen Treatment Duration Value |
PFTRTDUU | Specimen Treatment Duration Unit |
PFTRTTMV | Specimen Treatment Temperature Value |
PFTRTTMU | Specimen Treatment Temperature Unit |
Variable Name | Variable Label |
STUDYID | Study Identifier |
RDOMAIN | Related Domain Abbreviation |
USUBJID | Unique Subject Identifier |
VSSEQ | Sequence Number |
IDVAR | Identifying Variable |
IDVARVAL | Identifying Variable Value |
QNAM | Qualifier Variable Name |
QLABEL | Qualifier Variable Label |
QVAL | Data Value |
The following table enumerates the values in QNAM and QLABEL variables
QNAM | QLABEL |
VSTOD | Time of Day |
Variable Name | Variable Label |
STUDYID | Study Identifier |
RDOMAIN | Related Domain Abbreviation |
USUBJID | Unique Subject Identifier |
IDVAR | Identifying Variable |
IDVARVAL | Identifying Variable Value |
QNAM | Qualifier Variable Name |
QLABEL | Qualifier Variable Label |
QVAL | Data Value |
The following table enumerates the values in QNAM and QLABEL variables
QNAM | QLABEL |
ZAMFI | MFI |
ZAMFICRD | MFI Coordinate |
ZASPECSB | Specimen Subtype |
ZAREFIDP | Source Specimen Identifier |
VISITMIN | Planned Visit Minimum Start Day |
VISITMAX | Planned Visit Maximum Start Day |
ZASPTRT | Specimen Treatment |
ZATRTAMV | Specimen Treatment Amount Value |
ZATRTAMU | Specimen Treatment Amount Unit |
ZATRTDUV | Specimen Treatment Duration Value |
ZATRTDUU | Specimen Treatment Duration Unit |
ZATRTTMV | Specimen Treatment Temperature Value |
ZATRTTMU | Specimen Treatment Temperature Unit |
Variable Name | Variable Label |
STUDYID | Study Identifier |
RDOMAIN | Related Domain Abbreviation |
USUBJID | Unique Subject Identifier |
IDVAR | Identifying Variable |
IDVARVAL | Identifying Variable Value |
QNAM | Qualifier Variable Name |
QLABEL | Qualifier Variable Label |
QVAL | Data Value |
The following table enumerates the values in QNAM and QLABEL variables
QNAM | QLABEL |
ZBSPECSB | Specimen Subtype |
ZBREFIDP | Source Specimen Identifier |
ZBFCF | Control Files Names |
VISITMIN | Planned Visit Minimum Start Day |
VISITMAX | Planned Visit Maximum Start Day |
ZBSPTRT | Specimen Treatment |
ZBTRTAMV | Specimen Treatment Amount Value |
ZBTRTAMU | Specimen Treatment Amount Unit |
ZBTRTDUV | Specimen Treatment Duration Value |
ZBTRTDUU | Specimen Treatment Duration Unit |
ZBTRTTMV | Specimen Treatment Temperature Value |
ZBTRTTMU | Specimen Treatment Temperature Unit |
Variable Name | Variable Label |
STUDYID | Study Identifier |
RDOMAIN | Related Domain Abbreviation |
USUBJID | Unique Subject Identifier |
IDVAR | Identifying Variable |
IDVARVAL | Identifying Variable Value |
QNAM | Qualifier Variable Name |
QLABEL | Qualifier Variable Label |
QVAL | Data Value |
The following table enumerates the values in QNAM and QLABEL variables
QNAM | QLABEL |
ZCSPECSB | Specimen Subtype |
ZCREFIDP | Source Specimen Identifier |
VISITMIN | Planned Visit Minimum Start Day |
VISITMAX | Planned Visit Maximum Start Day |
ZCSPTRT | Specimen Treatment |
ZCTRTAMV | Specimen Treatment Amount Value |
ZCTRTAMU | Specimen Treatment Amount Unit |
ZCTRTDUV | Specimen Treatment Duration Value |
ZCTRTDUU | Specimen Treatment Duration Unit |
ZCTRTTMV | Specimen Treatment Temperature Value |
ZCTRTTMU | Specimen Treatment Temperature Unit |
Variable Name | Variable Label |
STUDYID | Study Identifier |
RDOMAIN | Related Domain Abbreviation |
USUBJID | Unique Subject Identifier |
IDVAR | Identifying Variable |
IDVARVAL | Identifying Variable Value |
QNAM | Qualifier Variable Name |
QLABEL | Qualifier Variable Label |
QVAL | Data Value |
The following table enumerates the values in QNAM and QLABEL variables
QNAM | QLABEL |
ZDSPECSB | Specimen Subtype |
ZDREFIDP | Source Specimen Identifier |
VISITMIN | Planned Visit Minimum Start Day |
VISITMAX | Planned Visit Maximum Start Day |
ZDSPTRT | Specimen Treatment |
ZDTRTAMV | Specimen Treatment Amount Value |
ZDTRTAMU | Specimen Treatment Amount Unit |
ZDTRTDUV | Specimen Treatment Duration Value |
ZDTRTDUU | Specimen Treatment Duration Unit |
ZDTRTTMV | Specimen Treatment Temperature Value |
ZDTRTTMU | Specimen Treatment Temperature Unit |
Variable Name | Variable Label |
STUDYID | Study Identifier |
DOMAIN | Domain Abbreviation |
USUBJID | Unique Subject Identifier |
VISITNUM | Visit Number |
VISIT | Visit Name |
SVSTDY | Study Day of Start of Visit |
Variable Name | Variable Label |
STUDYID | Study Identifier |
DOMAIN | Domain Abbreviation |
ARMCD | Planned Arm Code |
ARM | Name of Planned Arm |
ARMDESC | Description of Planned Arm |
ARMRULE | Population Selection Rule |
Variable Name | Variable Label |
STUDYID | Study Identifier |
DOMAIN | Domain Abbreviation |
IETEST | Inclusion/Exclusion Criterion |
IECAT | Inclusion/Exclusion Category |
The ImmPort study data generated from assays of types: HAI and Neut Ab Titer are grouped into the
Titer Assay Results Domain. The data is reformated to a custom Titer Assay Results domain model in
CDISC SDTM standards, and is a list of 2 data frames containing 1) Titer Assay Results data ZD
and 2) any supplemental Titer Assay Results data SUPP
The Trial Arms data of an ImmPort study is reformated to the CDISC SDTM Trial Arms (TA)
domain model, and is a list of 2 data frames containing 1) Trial Arms data TA
and 2) any supplemental Trial Arms data SUPP
The Trial Inclusion Exclusion Criteria data of an ImmPort study is reformated to the
CDISC SDTM Trial Inclusion Exclusion Criteria (TI) domain model, and is a list of 2 data frames
containing 1) Trial Inclusion Exclusion Criteria data TI
and 2) any supplemental Trial Inclusion Exclusion Criteria data SUPP
The Trial Summary data of an ImmPort study is reformated to the CDISC SDTM Trial Summary (TS)
domain model, and is a list of 2 data frames containing 1) Trial Summary data TS
and 2) any supplemental Trial Summary data SUPP
Information on the planned visits of an ImmPort study is reformated to the CDISC SDTM Trial Visits (TV)
domain model, and is a list of 2 data frames containing 1) Trial Visits data TV
and 2) any supplemental Trial Visits data SUPP
Trial Design class
ta_l
tv_l
Trial Visits data TA
and supplemental Trial Visits data SUPP
ti_l
Trial Inclusion Exclusion Criteria data TI
and supplemental Trial Inclusion Exclusion Criteria data SUPP
ts_l
Trial Summary data TS
and supplemental Trial Summary data SUPP
library(DBI) library(sqldf) studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort") db_dir <- file.path(studies_dir, "Db") sqlite_conn <- dbConnect(SQLite(), dbname=file.path(db_dir, "ImmPort.sqlite")) setImmPortDataSource(sqlite_conn) sdy139 <- getStudy("SDY139") ts_df <- sdy139$trial_design$ts_l$ts_df
library(DBI) library(sqldf) studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort") db_dir <- file.path(studies_dir, "Db") sqlite_conn <- dbConnect(SQLite(), dbname=file.path(db_dir, "ImmPort.sqlite")) setImmPortDataSource(sqlite_conn) sdy139 <- getStudy("SDY139") ts_df <- sdy139$trial_design$ts_l$ts_df
Variable Name | Variable Label |
STUDYID | Study Identifier |
DOMAIN | Domain Abbreviation |
TSSEQ | Sequence Number |
TSPARMCD | Trial Summary Parameter Short Name |
TSPARM | Trial Summary Parameter |
TSVAL | Parameter Value |
The following table enumerates the values in TSPARMCD and TSPARM variables
TSPARMCD | TSPARM |
TITLE | Trial Title |
DESCR | Trial Description |
INDIC | Trial Indication |
TRT | Investigational Therapy or Treatment |
HYPOTHS | Trial Hypotheses |
SSTDTC | Study Start Date |
SENDTC | Study End Date |
PLANSUB | Planned Number of Subjects |
ACTSUB | Actual Number of Subjects |
AGEMAX | Planned Maximum Age of Subjects |
AGEMIN | Planned Minimum Age of Subjects |
AGEU | Age Units |
SEXPOP | Sex of Participants |
SPONSOR | Clinical Study Sponsor |
PUBRLDAT | Public Release Date |
ISTRIAL | Study Type |
RESFOCUS | Trial Research Focus |
Variable Name | Variable Label |
STUDYID | Study Identifier |
DOMAIN | Domain Abbreviation |
VISITNUM | Visit Number |
VISIT | Visit Name |
ARMCD | Planned Arm Code |
ARM | Name of Planned Arm |
TVSTRL | Visit Start Rule |
TVENRL | Visit End Rule |
The Vital Signs data of an ImmPort study is reformated to the CDISC SDTM Vital Signs (VS)
domain model, and is a list of 2 data frames containing 1) Vital Signs data VS
and 2) any supplemental Vital Signs data SUPPVS
Variable Name | Variable Label |
STUDYID | Study Identifier |
DOMAIN | Domain Abbreviation |
USUBJID | Unique Subject Identifier |
VSSEQ | Sequence Number |
VSTEST | Vital Signs Test Name |
VSCAT | Category for Vital Signs |
VSORRES | Result or Finding in Original Units |
VSORRESU | Original Units |
VSLOC | Location of Vital Signs Measurement |
VISITNUM | Visit Number |
VISIT | Visit Name |
VSDY | Study Day of Vital Signs |
Variable Name | Variable Label |
STUDYID | Study Identifier |
DOMAIN | Domain Abbreviation |
USUBJID | Unique Subject Identifier |
ZASEQ | Sequence Number |
ZATEST | Protein Quantification Test Name |
ZACAT | Category for Protein Quantification |
ZAMETHOD | Measurement Technique |
ZAANALYT | Analyte |
ZAORRES | Result or Finding in Original Units |
ZAORRESU | Original Units |
ZASPEC | Specimen Type |
VISITNUM | Visit Number |
VISIT | Visit Name |
ZAELTM | Planned Elapsed Time from Time Point Ref |
ZATPTREF | Time Point Reference |
ZAREFID | Specimen Identifier |
ZAXFN | Raw Data File or Life Science Identifier |
Variable Name | Variable Label |
STUDYID | Study Identifier |
DOMAIN | Domain Abbreviation |
USUBJID | Unique Subject Identifier |
ZBSEQ | Sequence Number |
ZBTEST | Cellular Quantification Test Name |
ZBCAT | Category for Cellular Quantification |
ZBMETHOD | Measurement Technique |
ZBPOPDEF | Cell Population Definition |
ZBPOPNAM | Cell Population Name |
ZBORRES | Result or Finding in Original Units |
ZBORRESU | Original Units |
ZBBASPOP | Base Parent Population |
ZBSPEC | Specimen Type |
VISITNUM | Visit Number |
VISIT | Visit Name |
ZBELTM | Planned Elapsed Time from Time Point Ref |
ZBTPTREF | Time Point Reference |
ZBREFID | Specimen Identifier |
ZBXFN | Raw Data File or Life Science Identifier |
Variable Name | Variable Label |
STUDYID | Study Identifier |
DOMAIN | Domain Abbreviation |
USUBJID | Unique Subject Identifier |
ZCSEQ | Sequence Number |
ZCTEST | Nucleic Acid Quantification Test Name |
ZCCAT | Category for Nucleic Acid Quantification |
ZCMETHOD | Measurement Technique |
ZCENTRZD | Entrez Gene ID |
ZCGENNAM | Gene Name |
ZCGENSYM | Gene Symbol |
ZCORRES | Result or Finding in Original Units |
ZCORRESU | Original Units |
ZCSPEC | Specimen Type |
ZCREFID | Specimen Identifier |
VISITNUM | Visit Number |
VISIT | Visit Name |
ZCELTM | Planned Elapsed Time from Time Point Ref |
ZCTPTREF | Time Point Reference |
Variable Name | Variable Label |
STUDYID | Study Identifier |
DOMAIN | Domain Abbreviation |
USUBJID | Unique Subject Identifier |
ZDSEQ | Sequence Number |
ZDTEST | Titer Assay Results Test Name |
ZDCAT | Category for Titer Assay Results |
ZDMETHOD | Measurement Technique |
ZDSTRAIN | Virus Strain |
ZDORRES | Result or Finding in Original Units |
ZDORRESU | Original Units |
ZDSPEC | Specimen Type |
ZDREFID | Specimen Identifier |
VISITNUM | Visit Number |
VISIT | Visit Name |
ZDELTM | Planned Elapsed Time from Time Point Ref |
ZDTPTREF | Time Point Reference |
ZDXFN | Raw Data File or Life Science Identifier |