buildNewSqliteDb {RImmPort} | R Documentation

## buildNewSqliteDb

### 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

    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

    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)

[Package RImmPort version 1.12.0 Index]