buildNewSqliteDb: buildNewSqliteDb

Description Usage Arguments Value Examples

View source: R/ImmPortSqlite.R

Description

The function buildSqliteDb builds a sqlite db of ImmPort study data. It takes in as input the study files in the TSV (Tab) format.

Usage

1
buildNewSqliteDb(data_dir, db_dir)

Arguments

data_dir

File directory where the study TSV files are stored

db_dir

File directory where the sqlite database will be stored

Value

The SQLite database name

Examples

1
2
3
4
5
6
7
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) 

rdshankar/RImmPort documentation built on May 27, 2019, 3:07 a.m.